Best strategy to do custom server side validations and add errors

2007-11-06 Thread rkalsi
I need to do some validations across fields (e.g comparing password and retypePassword fields on server). At the moment, I inject a validationTracker into form using @Environment annotation. And, then use it in onValidate method, to add errors using recordError method. Is this the correct way,

Re: Getting BigDecimal Translator to work

2007-11-05 Thread rkalsi
Right, I wasnt aware that the contribute methods need to be placed in AppModule.java in order to be discovered by Tapestry. That seems to be the issue. Thanks. rkalsi wrote: > > I have written a BigDecimal translator which converts String -> > BigDecimal, but It doesnt seem to w

Getting BigDecimal Translator to work

2007-11-02 Thread rkalsi
I have written a BigDecimal translator which converts String -> BigDecimal, but It doesnt seem to work. In my class, I have added the following: public static void contributeTranslatorDefaultSource( MappedConfiguration configuration) { configuration.add(BigDecimal.class