Yes, with the setReuseItems(true) you just enabled that, the list won't
forget the contents on validation fail.
If you would like to use custom validation messages, check out the
Application.properties file in wicket.jar, there you can see the
original messages, and also the format of message keys.
If you have an PatternValidator on a TextField in a form with wicket:id
'form', then you need this line in your properties file:
form.textfieldwicketid.PatternValidator='${input}' does not match
pattern '${pattern}'.
for example.
Hope this helps.
Peter
2009-08-17 17:51 keltezéssel, jpalmer1026 írta:
I have setReuseItems set to true but I'm still only seeing the generic Wicket
validation messages and not the custom validation messages that I created.
Is there a way to display custom validation messages to items in a ListView?
jWeekend wrote:
see setReuseItems on ListView.
Regards - Cemal
jWeekend
OO& Java Technologies, Wicket Training and Development
http://jWeekend.com
jpalmer1026 wrote:
I'm trying to display a validation message for an item contained in a
list view but the validation message isn't getting displayed. Is there
something special that needs to be done to display validation messages
for list view items?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]