I saw that method but the member variable dateField (having class DateTextField) within DateTimeField is private and there is no getter for it so I cannot change the pattern.
At this point it looks like I would have to clone DateTimeField so I can make the change. Unless I am missing something... Mark -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerolf Seitz Sent: Saturday, 28 July 2007 3:14 PM To: Deprecated! Please subscribe to [EMAIL PROTECTED] Subject: Re: [Wicket-user] Setting date format with the DateTimeFieldcomponent take a look at the DateTextField#forDatePattern(...) methods hth, gerolf On 7/28/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote: > > Hi all, > > How can I set the date format with the DateTimeField? Looking at the code, > the format appears to be set in DateTimeField.init() with the line: > > add(dateField = DateTextField.forShortStyle("date", new > PropertyModel(this, > "date"))); > > and there seems no simple way to override this behaviour. It defaults to > MM/dd/yyyy whereas I want yyyy/MM/dd. > > Thanks in advance > Mark > > > ------------------------------------------------------------------------- > 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 > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
