You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by jp...@mchsi.com on 2009/08/17 15:56:00 UTC
ListView Validation
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?
Re: ListView Validation
Posted by Major Péter <ma...@sch.bme.hu>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: ListView Validation
Posted by jpalmer1026 <jp...@mchsi.com>.
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?
>>
>>
>
>
--
View this message in context: http://www.nabble.com/ListView-Validation-tp25007136p25009325.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: ListView Validation
Posted by jWeekend <jw...@cabouge.com>.
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?
>
>
--
View this message in context: http://www.nabble.com/ListView-Validation-tp25007136p25007438.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org