You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by freak182 <em...@gmail.com> on 2008/10/09 11:16:36 UTC
how to customize error message of requiredtextfield inside listview
Hello,
My problem is how to customize error message of requiredtextfield inside
listview? here is the scenario: i have a requiredtextfield in the listview,
of course the listview is inside the form. actually it is dynamic question &
answer that came from DB. now if the user did not answer the question number
1 provided it should display an error "Please answer the Question for number
1" and so on...And suppose i have 5 question how i can determine which
question is not answered.
i already do this: arcotForm.qasetup.3.question.Required=Please enter
Question 4
when there is 2 question that left empty the error displayed: Please enter
Question 4 (2x)
Thanks a lot.
Cheers.
--
View this message in context: http://www.nabble.com/how-to-customize-error-message-of-requiredtextfield-inside-listview-tp19895203p19895203.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: how to customize error message of requiredtextfield inside
listview
Posted by freak182 <em...@gmail.com>.
Thanks igor it works. :)
Thanks a lot.
Cheers.
igor.vaynberg wrote:
>
> Required=${label} is required
>
> textfield.setlabel(new model("question "+item.getindex()));
>
> -igor
>
> On Thu, Oct 9, 2008 at 2:16 AM, freak182 <em...@gmail.com> wrote:
>>
>> Hello,
>>
>> My problem is how to customize error message of requiredtextfield inside
>> listview? here is the scenario: i have a requiredtextfield in the
>> listview,
>> of course the listview is inside the form. actually it is dynamic
>> question &
>> answer that came from DB. now if the user did not answer the question
>> number
>> 1 provided it should display an error "Please answer the Question for
>> number
>> 1" and so on...And suppose i have 5 question how i can determine which
>> question is not answered.
>>
>> i already do this: arcotForm.qasetup.3.question.Required=Please enter
>> Question 4
>>
>> when there is 2 question that left empty the error displayed: Please
>> enter
>> Question 4 (2x)
>>
>> Thanks a lot.
>>
>> Cheers.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-customize-error-message-of-requiredtextfield-inside-listview-tp19895203p19895203.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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/how-to-customize-error-message-of-requiredtextfield-inside-listview-tp19895203p19910696.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: how to customize error message of requiredtextfield inside listview
Posted by Igor Vaynberg <ig...@gmail.com>.
Required=${label} is required
textfield.setlabel(new model("question "+item.getindex()));
-igor
On Thu, Oct 9, 2008 at 2:16 AM, freak182 <em...@gmail.com> wrote:
>
> Hello,
>
> My problem is how to customize error message of requiredtextfield inside
> listview? here is the scenario: i have a requiredtextfield in the listview,
> of course the listview is inside the form. actually it is dynamic question &
> answer that came from DB. now if the user did not answer the question number
> 1 provided it should display an error "Please answer the Question for number
> 1" and so on...And suppose i have 5 question how i can determine which
> question is not answered.
>
> i already do this: arcotForm.qasetup.3.question.Required=Please enter
> Question 4
>
> when there is 2 question that left empty the error displayed: Please enter
> Question 4 (2x)
>
> Thanks a lot.
>
> Cheers.
>
> --
> View this message in context: http://www.nabble.com/how-to-customize-error-message-of-requiredtextfield-inside-listview-tp19895203p19895203.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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org