Erik, I had similar issues with the DatePicker for various reasons. After some help from Nick and Igor I built a 3 dropdown component for choosing date similar to what you describe below. Check out my blog entry for details on it: basically you want to create a DateModel which holds a Date object passed in to your component and override getObject to return the appropriate value based on the field you want, MONTH, DAY_OF_MONTH, YEAR. override setObject to set each field in a Calendar object so that when the form submits, all fields in a Calendar are set one-by-one, and can return a valid date. The Model's are nice because all you have to do is pass in a Date, and the rest is done. If you search in the feature enhancements on wicket's sf.net page, I believe I submitted the code there. validation would probably be easiest just to use some client-side _javascript_. Cheers, andrew On Sep 7, 2006, at 2:29 AM, Erik Brakkee wrote:
To our success! Andrew Lombardi: Mystic Coders, LLC - Coding Magic contact | [EMAIL PROTECTED] - 714-697-8046 | aim - nlpjunke This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user