grepping the wicket source I found in file src/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.properties:
IConverter='${input}' is not a valid ${type}. but I don't know if you can specify a separate message for type Date.. Goran Novak wrote: > > Hi, > > I'm using the org.apache.wicket.datetime.markup.html.form.DateTextField > component for my date fields. > > When I enter some random string in the text field in the feedback panel, > "'asdfasdf' is not a valid Date." message appears. > > I would like to customize that message, but I can't find which key I need > to insert in the properties file. > > SomePage.properties --> > ... > dateTextField.<NameOfValidator> = The date is not valid custom message. > ... > <-- > > Does somebody know what do I need to insert instead of the > <NameOfValidator> string. > > I searched the javadoc for the component and the web but didn't find the > validator name. > > The component is defined as follows in the java file: > > SomePage.java --> > ... > DateTextField dateTextField= new DateTextField("dateTextField", new > PropertyModel(model, "propertyName"), new > PatternDateConverter("dd.MM.yyyy",true)); > > dateTextField.add(new DatePicker()); > add(dateTextField); > ... > <-- > > Thanks, > Goran > > -- View this message in context: http://www.nabble.com/DateTextField%2C-format-not-valid%2C-message-key-tp20069519p20071815.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]