You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Milan Milanovic <mi...@yahoo.com> on 2008/07/24 16:28:28 UTC
[s2] How to force validation to combobox field
Hi,
does anyone know how I can force user to choose value from a combo box by
using S2 validation ?
Now, when he submit the form combobox is empty and the next time when he
submit error my occur if he don't choose anything from combox box.
--
Thx, Milan
--
View this message in context: http://www.nabble.com/-s2--How-to-force-validation-to-combobox-field-tp18633012p18633012.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [s2] How to force validation to combobox field
Posted by Laurie Harper <la...@holoweb.net>.
No, it isn't. A 'combobox' results in a request parameter just like any
other input. It can be validated in the same way as any other input.
L.
Milan Milanovic wrote:
> So, comboxbox in Struts 2 cannot be validated, is it true ?
>
>
>
> Milan Milanovic wrote:
>> Hi,
>>
>> does anyone know how I can force user to choose value from a combo box by
>> using S2 validation ?
>> Now, when he submit the form combobox is empty and the next time when he
>> submit error my occur if he don't choose anything from combox box.
>>
>> --
>> Thx, Milan
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [s2] How to force validation to combobox field
Posted by Milan Milanovic <mi...@yahoo.com>.
So, comboxbox in Struts 2 cannot be validated, is it true ?
Milan Milanovic wrote:
>
> Hi,
>
> does anyone know how I can force user to choose value from a combo box by
> using S2 validation ?
> Now, when he submit the form combobox is empty and the next time when he
> submit error my occur if he don't choose anything from combox box.
>
> --
> Thx, Milan
>
--
View this message in context: http://www.nabble.com/-s2--How-to-force-validation-to-combobox-field-tp18633012p18651197.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org