You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Steve Hiller <sh...@bellsouth.net> on 2009/09/08 03:48:10 UTC

Using java.util.Date class with CompoundPropertyModel

Hi All,

I have created a very simple class that includes a property based on the java.util.Date class.
This model is used with a simple WebPage and a Label component is used to present the
date. For some reason, only the time part of the underlying Date object is being displayed.
I'm using v1.3.7 of Wicket. Any ideas on what I am doing wrong?

Thanks,
Steve

Re: Using java.util.Date class with CompoundPropertyModel

Posted by shetc <sh...@bellsouth.net>.
Thanks Igor! You pointed me in the right direction, as usual.
-- 
View this message in context: http://www.nabble.com/Using-java.util.Date-class-with-CompoundPropertyModel-tp25338777p25346526.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Using java.util.Date class with CompoundPropertyModel

Posted by Igor Vaynberg <ig...@gmail.com>.
i believe the default converter will format the date to time only, you
can override getconverter() on the label and return your own, or
install your own converter globally.

-igor

On Mon, Sep 7, 2009 at 6:48 PM, Steve Hiller<sh...@bellsouth.net> wrote:
> Hi All,
>
> I have created a very simple class that includes a property based on the java.util.Date class.
> This model is used with a simple WebPage and a Label component is used to present the
> date. For some reason, only the time part of the underlying Date object is being displayed.
> I'm using v1.3.7 of Wicket. Any ideas on what I am doing wrong?
>
> Thanks,
> Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org