Re: ListView in a Form -- issue with properties

2010-07-08 Thread always_rick

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ListView in a Form -- issue with properties

2010-07-07 Thread Trevor Baker
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

2010-07-07 Thread Jeremy Thomerson
Try with just value.Required

On Wed, Jul 7, 2010 at 11:57 AM, Trevor Baker amoebawo...@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