Re: Problem using BeanEditForm with a POJO

2009-05-06 Thread Otho
It will work if you use legacy mode, aka a ContextLoaderListener as in 5.0. If you use the new 5.1 mode, Spring beans are no longer exposed as services. As far as I understood that was necessary to enable the injection of Tapestry services into spring beans. But it really only pops up on type confl

Problem using BeanEditForm: empty form

2009-05-06 Thread Anton Marchenkov
Hi! I have the a TariffData.java object that I'm trying to use the BeanEditForm component with. Tapestry does not return any errors, but the form is empty: only Create/Update button, no edit fields, no labels... In doing so, the logs shows that the Tapestry is requesting and receiving data:

Re: [ANN] Javamail service in Tapestry 5.x IoC

2009-05-06 Thread Christian Edward Gruber
Apparently the older version 0.5 has made it to the central maven repository, but v0.6 has not - it should be synced by tonight or tomorrow morning. In the mean-time, feel free to use http://repo.israfil.net/maven2 until it syncs. It's best to use 0.6, since 0.5 had an error in the auto-l

T5.1 AppEngine progress

2009-05-06 Thread Imants Firsts
Has anyone made this to work? I tried repackaging Stax and Woodstox so that they don't use javax.xml.stream package. The quickstart application works in the eclipse, it fails with the NoClassDefFoundError in the Loop component in the local AppEngine environment like people already have posted h

Re: t5components/TabSet

2009-05-06 Thread Fernanda C. Carmo
Thank you, Thiago!!! You solved my problem. I'm going to study more about binding parameters ;) Thiago H. de Paula Figueiredo wrote: > > Em Wed, 06 May 2009 15:56:59 -0300, Fernanda C. Carmo > escreveu: >> tml: panelIds="listPanelIds" > > Try panelIds="prop:listPanelIds". That will prob

Re: t5components/TabSet

2009-05-06 Thread Thiago H. de Paula Figueiredo
Em Wed, 06 May 2009 15:56:59 -0300, Fernanda C. Carmo escreveu: tml: panelIds="listPanelIds" Try panelIds="prop:listPanelIds". That will probably solve the problem. Looking at the component source, I find this: @Parameter(required = true, defaultPrefix = "list") private List panelIds; The d

Re: t5components/TabSet

2009-05-06 Thread Thiago H. de Paula Figueiredo
Em Wed, 06 May 2009 15:56:59 -0300, Fernanda C. Carmo escreveu: Hi, Hi, Fernanda! But it didn't work :( This description of what happened is a little vague for us to help you. Please elaborate more. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and inst

[ANN] Javamail service in Tapestry 5.x IoC

2009-05-06 Thread Christian Edward Gruber
Hey all, I just released an early version (0.6) of israfil-mail-service - a simple mail sending service with a pluggable transport (currently implemented using javax.mail). You build a javax.mail.Session in your app module and as long as such exists, the JavaMailTransportService will

t5components/TabSet

2009-05-06 Thread Fernanda C. Carmo
Hi, Given t5components/TabSet: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/TabSet.html In the example, we have panelIds="list:'stuff1','stuff2','stuff3'". But I'm trying to do the TabSet with dynamic "panelIds" parameter. The "panelIds" par

Re: New module: tapx-plainmessage

2009-05-06 Thread Howard Lewis Ship
I built it recently, so it's designed to work with 5.1. I believe you can use tapx-datefield and tapx-plainmessage with 5.0. On Wed, May 6, 2009 at 9:55 AM, Julian Wood wrote: > Is all of tapx designed to work with 5.0.18? Or did you just mean > tapx-plainfield? > > http://tapestry.formos.com/ni

Re: New module: tapx-plainmessage

2009-05-06 Thread Julian Wood
Is all of tapx designed to work with 5.0.18? Or did you just mean tapx- plainfield? http://tapestry.formos.com/nightly/tapx/tapx-datefield/ says it only works with 5.1 or higher. Thanks, J On May 4, 2009, at 6:13 PM, Howard Lewis Ship wrote: It's not something everyone needs. It was create

Re: [T5.1] How do you advise ClassNameLocator?

2009-05-06 Thread Steve Eynon
Arr, yes, thanks Igor. The JavaDocs for ClasspathURLConverter even states it exists for OSGi (Eclipse) apps: > This is a hook for supporting OSGi, allowing "bundleresource" and > "bundleentry" protocols to be converted to "jar:" or "file:". The default implementation currently returns the URLs

Re: Problem using BeanEditForm with a POJO

2009-05-06 Thread mraible
With 5.0.x, I was able to solve this by adding an @Service("beanName") annotation. Will this not work in 5.1? Otho wrote: > > Nice :) > > But I would suggest you start using Tapestry 5.1. The new spring > integration > is very convenient and enables you for example to inject tapestry services

Re: Problem using BeanEditForm with a POJO

2009-05-06 Thread Otho
Nice :) But I would suggest you start using Tapestry 5.1. The new spring integration is very convenient and enables you for example to inject tapestry services into spring beans. The only thing which you should look for is that if you have two beans which can be assigned to the same type, you cann

Re: new NumericTranslator limits decimal points to 3

2009-05-06 Thread Ulrich Stärk
That would indeed be great. But until you find the time to do this, could you consider to implement this workaround? On a side note: While browsing NumericTranslatorSupportImpl's source code, on line 152 I found the following code: 152if (type.equals(BigDecimal.class)) 153

Re: new NumericTranslator limits decimal points to 3

2009-05-06 Thread Howard Lewis Ship
I've been thinking that translators need to be configurable, like validators, so that you can specify the desired precision. On Wed, May 6, 2009 at 5:45 AM, Ulrich Stärk wrote: > Hi, > > the new local-aware numeric translator acquires a NumberFormat instance by > calling NumberFormat.getNumberIns

loop and ajax

2009-05-06 Thread kace
Hi fellas, I am looking to update a loop triggered by a change event from a select component. sniipet from tml ${object.name} and from javascript function onCompleteSelectCha

Re: Protocol Buffers RPC Server Implemention based on Tapestry(5.1.0.4),Mina(2.0-M5) and Protobuf(2.0.3)

2009-05-06 Thread Christian Edward Gruber
Nice! On 6-May-09, at 07:32 , Jun Tsai wrote: I had implementd a RPC server based on Tapestry(5.1.0.4),Mina(2.0- M5) and Protobuf(2.0.3).I hope useful for you。 http://github.com/bitiboy/fepss-rpc/tree/t5 t5 branch. -- regards, Jun Tsai Christian Edward Gruber e-mail: christianedwardgru..

new NumericTranslator limits decimal points to 3

2009-05-06 Thread Ulrich Stärk
Hi, the new local-aware numeric translator acquires a NumberFormat instance by calling NumberFormat.getNumberInstance(locale). That way a DecimalFormat is returned that limits the number of decimal places to 3. If a user enters more than 3 decimal places these get stored correctly but aren't

Re: automatic zone update

2009-05-06 Thread Michael Dukaczewski
That is exactly what I was looking for. Thank you! This mailing list is great. Andy Pahne schrieb: > > Tapestry 5.1 has this lazy loading included as component: check the > ProgressiveDisplay component. > > Andy > > > > Alfie Kirkpatrick schrieb: >> I made a simple "LazyZone" component which

Antwort: Injecting logger into custom validator

2009-05-06 Thread Kristian Marinkovic
if you use the ObjectLocator service do instantiate your validator you can inject the Logger interface through your constructor: contributeFieldValidatorSource(map... ObjectLocator locator) { map.add("forbiddenusername", locator.autobuild(ForbiddenUserName.class) } another option is to in

Protocol Buffers RPC Server Implemention based on Tapestry(5.1.0.4),Mina(2.0-M5) and Protobuf(2.0.3)

2009-05-06 Thread Jun Tsai
I had implementd a RPC server based on Tapestry(5.1.0.4),Mina(2.0-M5) and Protobuf(2.0.3).I hope useful for you。 http://github.com/bitiboy/fepss-rpc/tree/t5 t5 branch. -- regards, Jun Tsai

Injecting logger into custom validator

2009-05-06 Thread Borut Bolčina
Hi, I have a class which extends AbstractValidator and is contributed in my AppModule public static void contributeFieldValidatorSource(MappedConfiguration configuration, ComponentClassResolver componentClassResolver) { configuration.add("forbiddenusername", new ForbiddenUsername(comp

Re: t5: strategy for caching html output of component

2009-05-06 Thread Britske
yeah that's true in general . Good catch. However, I have a sessionid strippping filter in place so it doesn't effect me luckily. Andreas Andreou-4 wrote: > > As a note, one sideeffect i can think of would occur if the first > user (when cache doesn't yet exist) has cookies disabled (and thu

Re: automatic zone update

2009-05-06 Thread Andy Pahne
Tapestry 5.1 has this lazy loading included as component: check the ProgressiveDisplay component. Andy Alfie Kirkpatrick schrieb: I made a simple "LazyZone" component which ajax loads the zone after the page load. Should be simple enough to add a timer to it. You provide a block as a param

Re: [T5] How to listen/trigger event in componentA from component B ?

2009-05-06 Thread Peter Stavrinides
Hi CG, >can we listen to an event and act in ajax way Of course, it is not uncommon to return a JSON object from an event. It is not exactly clear to me exactly what you are trying to do, and how your UI glues together but you should be able to do exactly what you require, read up a little on

RE: automatic zone update

2009-05-06 Thread Alfie Kirkpatrick
I made a simple "LazyZone" component which ajax loads the zone after the page load. Should be simple enough to add a timer to it. You provide a block as a parameter to the component... LazyZone.java - @IncludeJavaScriptLibrary("lazyZone.js") public class LazyZone extends Zone {

Re: [T5] How to listen/trigger event in componentA from component B ?

2009-05-06 Thread CG
thanks DH and Peter for the reply .. Peter, you have gave me some hints , I think I know which approach should I use then ... By the way , there is one more question , can we listen to an event and act in ajax way, meaning without refresh the whole page ? For example, when I click "New record" i