I cannot see how to get the input converted into a Date. The other way round seems clear to me, but how do I get "all" or "today" into a Date with a renderer? Isn't the renderer just for rendering like it's name suggests? Or am I missing something here?

Am 07.07.2009 um 16:32 schrieb James Carman:

So, why wouldn't a renderer work for you?  You could use a map-based
renderer if you wish.

On Tue, Jul 7, 2009 at 9:16 AM, Christoph Drießen <[email protected]> wrote:

James,

I'm not sure if this approach will solve my problem. This is what I try to
do:

I'd like to display a drop down with the choices "today", "yesterday" and "all". Depending on the user's selection the model object's property which is of type Date shall be filled with either a Date object or null (upon "all" selection). The choice is connected to the model object through a
PropertyModel.

Cheers,
c


Am 07.07.2009 um 14:01 schrieb James Carman:


Try using an IChoiceRenderer rather than a converter.

On Tue, Jul 7, 2009 at 7:45 AM, Christoph Drießen <[email protected]> wrote:

Hi all,

I'm trying to use a Converter with a DropDownChoice overriding the
getConverter(Class type) method. Unfortunately this method never gets
called.
Any ideas?

Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to