You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Trevor Baker <am...@gmail.com> on 2010/07/07 18:57:07 UTC

ListView in a Form -- issue with properties

Hi,

I have a form that has an ListView (wicket:id=”valueListView”) of a bunch of
required text fields (wicket:id=”value”).

In my WebApplication.properties, I have:

form.valueListView.value.Required=Please enter the Value

However when I submit the form, in my error feedback if the field is blank
it always displays the default: Field 'value is required.

What is the proper way to write the property so it displays my custom error
feedback message?

Thanks,
Trev

Re: ListView in a Form -- issue with properties

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Try with just value.Required

On Wed, Jul 7, 2010 at 11:57 AM, Trevor Baker <am...@gmail.com> wrote:

> Hi,
>
> I have a form that has an ListView (wicket:id=”valueListView”) of a bunch
> of
> required text fields (wicket:id=”value”).
>
> In my WebApplication.properties, I have:
>
> form.valueListView.value.Required=Please enter the Value
>
> However when I submit the form, in my error feedback if the field is blank
> it always displays the default: Field 'value is required.
>
> What is the proper way to write the property so it displays my custom error
> feedback message?
>
> Thanks,
> Trev
>



-- 
Jeremy Thomerson
http://www.wickettraining.com

Re: ListView in a Form -- issue with properties

Posted by always_rick <sh...@hotmail.com>.
hi, just add the form wicket id in property file.

e.g.
wicket:id="xxxForm"
-wicket:id="valueListView"
 -wicket:id="value"

xxxForm.valueListView.value.Required=please enter the value




Trevor Baker-2 wrote:
> 
> Hi,
> 
> I have a form that has an ListView (wicket:id=”valueListView”) of a bunch
> of
> required text fields (wicket:id=”value”).
> 
> In my WebApplication.properties, I have:
> 
> form.valueListView.value.Required=Please enter the Value
> 
> However when I submit the form, in my error feedback if the field is blank
> it always displays the default: Field 'value is required.
> 
> What is the proper way to write the property so it displays my custom
> error
> feedback message?
> 
> Thanks,
> Trev
> 
> 

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-in-a-Form-issue-with-properties-tp2281199p2282008.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