David Leangen wrote:
> One suggestion: what about having a date pojo like:
> 
> public class MyDate
> {
>   get/setMonth()
>   get/setDay()
>   get/setYear()
> 
>   public Date getDate()
>   {
>      // translate object state into a Date object
>   }
> }
> 
> 
> Then use PropertyModel to get/set the individual fields:
> 
> Component myComponent = new WhateverComponent( "id", new
> PropertyModel( myDate, "fieldOfDate" );
> 
> 
> That should work.
> 
> 
> Maybe more experienced people know of a more elegant way, though this
> way's not so bad.
> 
> 
> Cheers,
> Dave

That's how I would do it.

DR

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to