Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Jonathan Carlson
ericht->Van: Eelco Hillenius >Verzonden: woensdag 2 februari 2005 11:37>Aan: wicket-user@lists.sourceforge.net>Onderwerp: Re: [Wicket-user] is this approach correct?>>No, what I meant is that the converters were initially copied (and >slightly altered) from the BeanUti

Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Eelco Hillenius
;Just my 2 cents. > >Maurice > > >-Oorspronkelijk bericht- >Van: Eelco Hillenius >Verzonden: woensdag 2 februari 2005 11:37 >Aan: wicket-user@lists.sourceforge.net >Onderwerp: Re: [Wicket-user] is this approach correct? > >No, what I meant is that th

Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Eelco Hillenius
7 Aan: wicket-user@lists.sourceforge.net Onderwerp: Re: [Wicket-user] is this approach correct? No, what I meant is that the converters were initially copied (and slightly altered) from the BeanUtils package. As they lacked the possibility of formatting (BeanUtils uses one-way converters only), I

RE: [Wicket-user] is this approach correct?

2005-02-02 Thread Gili
>Maybe you will never need the Object, but if you do you will be sorry if >you only got a string to work with. > >Just my 2 cents. > >Maurice > > >-Oorspronkelijk bericht- >Van: Eelco Hillenius >Verzonden: woensdag 2 februari 2005 11:37 >Aan: wicket-user@li

RE: [Wicket-user] is this approach correct?

2005-02-02 Thread Maurice Marrink
2005 11:37 Aan: wicket-user@lists.sourceforge.net Onderwerp: Re: [Wicket-user] is this approach correct? No, what I meant is that the converters were initially copied (and slightly altered) from the BeanUtils package. As they lacked the possibility of formatting (BeanUtils uses one-way converters

Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Eelco Hillenius
Juergen Donnerstag wrote: I'm not very deep in that piece of code, but I like the idea of having just one interface to format and convert the data. Pattern: would it be used to temporarily replace a default pattern (e.g. Date)? Not nescesarily replace. The converter could (optionally!) use this

Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Juergen Donnerstag
I'm not very deep in that piece of code, but I like the idea of having just one interface to format and convert the data. Pattern: would it be used to temporarily replace a default pattern (e.g. Date)? ConversionContext: Would it be automatically created and initialized with lets say the current

Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Eelco Hillenius
No, what I meant is that the converters were initially copied (and slightly altered) from the BeanUtils package. As they lacked the possibility of formatting (BeanUtils uses one-way converters only), I added support for formatting whilst not breaking the compatibility with BeanUtils by adding a

Re: [Wicket-user] is this approach correct?

2005-02-02 Thread Juergen Donnerstag
> So, as that's a legacy thing > now, we could just as well loose the difference. Sorry, it is probably only my english. Our current implementation isn't better nore worse than what JSF (and may be others) offer. And because there are "standard" packages out there to that job, the idea is to move

Re: [Wicket-user] is this approach correct?

2005-02-01 Thread Eelco Hillenius
That makes sense; it would then be like the converters in JSF. These converters came from another project (Baritus) which had them largely based on the commons BeanUtils package. So, as that's a legacy thing now, we could just as well loose the difference. If everyone (devs) are +1 with this, I

Re: [Wicket-user] is this approach correct?

2005-02-01 Thread Jonathan Carlson
Thanks Eelco.  It was not clear to me that a Formatter is the opposite of a Converter but your info helps.     I wonder if this could all be more intuitive.  My first reaction is that it might be less confusing if Converters did both directions and the Formatter concept went away.  Maybe ICo

Re: [Wicket-user] is this approach correct?

2005-02-01 Thread Eelco Hillenius
Ooops: 'Because I added a type converter, ...' should have been: 'Because I added a TypeValidator, ...'. Eelco Eelco Hillenius wrote: Yep. That's the nicest way to do it. You probably want to use this setting (false by default): settings.setPropertyModelDefaultApplyFormatting(true); as then the c

Re: [Wicket-user] is this approach correct?

2005-02-01 Thread Eelco Hillenius
Yep. That's the nicest way to do it. You probably want to use this setting (false by default): settings.setPropertyModelDefaultApplyFormatting(true); as then the converting works both ways. If you take a look at the forminput example (CVS HEAD), you'll see: TextField dateInput = new Text

[Wicket-user] is this approach correct?

2005-02-01 Thread Jonathan Carlson
I want to have a text form field that converts to a Date attribute on a bean (using the -MM-DD string format).   It looks like I would create a DateConverter implementation of IConverter and register it with the ConverterRepository so that the PropertyModel instance can convert it appropr