struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martin.coo...@tumbleweed.com
Subject Re: radio select
Date Wed, 22 Aug 2001 19:33:46 GMT
I'm not sure I understand your warning. For a set of radio buttons, there
should not be an array in the form bean, just a simple string property,
since only one radio button from a set can be selected at any time.

--
Martin Cooper


----- Original Message -----
From: "SUPRIYA MISRA" <supriya_misra@hotmail.com>
To: <struts-user@jakarta.apache.org>
Sent: Wednesday, August 22, 2001 6:35 AM
Subject: Re: radio select


> suggestion:-you may need to reset the value in the form bean
>
>
> WARNING: In order to correctly recognize cases where none of the
associated
> radios are selected, the ActionForm bean associated with this form must
> include a statement setting the corresponding array to zero length in the
> reset() method.
>
>
>
>
> >From: "Bille Madsen" <bmadsen@nordija.com>
> >Reply-To: struts-user@jakarta.apache.org
> >To: <struts-user@jakarta.apache.org>
> >Subject: radio select
> >Date: Wed, 22 Aug 2001 11:35:14 +0200
> >
> >
> >Hi,
> >
> >I have the following code:
> >
> ><html:radio property="radioBtn" value="mail" />
> >
> ><html:radio property="radioBtn" value="credit" />
> ><html:errors property="radioBtn" />
> >
> >Just two normal radiobuttons, have do I use the 'selected'-option which
> >html
> >provide?
> >If the user select one the radio-buttons and come back to the page later,
> >none of the radio-buttons are selected, but all other info is still
> >presented(struts text-fields and so on).
> >By the way, I get the values correct in the formbean, so no problem
> >there...
> >
> >Anyone having a answer?
> >
> >Thanks
> >
> >Bille
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>



Mime
View raw message