Re: validators on form components that don't directly get input from the request

2007-05-01 Thread Eelco Hillenius
protected Object convertValue(String[] value) { // we can ignore passed in value, but what we do instead is create an object based on child components LocalTime time=(LocalTime)timepicker.getconvertedinput(); DateTime datetime=time.withDate ((LocalDate)datepicker.getConvertedInput());

Re: validators on form components that don't directly get input from the request

2007-05-01 Thread Igor Vaynberg
On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: protected Object convertValue(String[] value) { // we can ignore passed in value, but what we do instead is create an object based on child components LocalTime time=(LocalTime)timepicker.getconvertedinput(); DateTime

validators on form components that don't directly get input from the request

2007-04-30 Thread Eelco Hillenius
Hi, I have an interesting issue to be solved, which is the fact that the way our form(component) processing currently works pressumes that all form components get their input from request parameters. But a component like DateTimeField (or any FormComponentPanel probably) doesn't work like that,

Re: validators on form components that don't directly get input from the request

2007-04-30 Thread Igor Vaynberg
this is already possible, and is very elegant! all you have to do is something like this protected Object convertValue(String[] value) { // we can ignore passed in value, but what we do instead is create an object based on child components LocalTime