Hi Eeclo,
thanks for pointing this out. Ive come to a solution and created a
MultiPatternDateConverter - it accepts long/Long, Date and DateTime
(joda). Maybe you can use it for wicket-datetime.
Code is here: http://pastebin.com/m43b5e339
Let me know what you think, its based on the original PatternDateConverter.
best,
Korbinian
On 9/8/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
So wicket-extensions shouldnt be used for dates now?
You can, and there is another DateTextField in that project. The
question was where the DateLabel component resides, which is in
wicket-datetime.
If so, how can I pursuade the DateTextField from there to use a long
(classic unix timestamp) instead of a Date inside a model? (without
overiding getModelObject/ setModelOject as its an inner class and I cant
have the model beeing final?)
In that case, you should use that particular component. Or provide a
patch so that it works with both (another outstanding issue is to let
it work with DateTime objects from yoda time).
Eelco
---------------------------------------------------------------------
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]