How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Charles Moulliard
I use a DateTextField to check if a user encode date according to the Date pattern format defined. DateTextField textfieldFromDate = new DateTextField(fromDate, MMdd ); Question 1 : Is it possible in the message displayed by Wicket after the validation in the feedbackPanel to show the

Re: How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Pedro Santos
about question 1, yes: http://static.ddpoker.com/javadoc/wicket/1.4-rc2/org/apache/wicket/util/convert/ConversionException.html#setResourceKey%28java.lang.String%29 On Mon, Sep 28, 2009 at 10:57 AM, Charles Moulliard cmoulli...@gmail.comwrote: I use a DateTextField to check if a user encode

Re: How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Matthias Keller
Hi Charles About Question 1: The validation message seems to have its origin in FormComponent#convertInput(): It will try either IConverter.date class simple name or IConverter and the used pattern will be available as the variable format (or ${format} as used in the string resources).