DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31365>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31365

Add initValue attribute to html:radio tags





------- Additional Comments From [EMAIL PROTECTED]  2004-09-28 14:38 -------
Niall wrote:
> <html:radio property="gender" value="male" initValue="male"/>
> <html:radio property="gender" value="female"/>
> 
> ...and presumably if the "gender" property is null, the initValue would be
> used rather than the property?

Yes, that sounds correct.

Joe wrote:
> from my first look at the suggested JSP syntax, it seems to require a lot
> of repetition

I believe someone else proposed a "radiogroup" tag which would reduce the
repeating the same values again:

<html:radioGroup property="gender" initValue="male">
  <html:radio value="male"/>
  <html:radio value="female"/>
</html:radioGroup>

However, this prevents people from sequentially "mixing" radio buttons for
different properties as you can in HTML, i.e. the following would be impossible:

<radio name="param1" value="foo">
<radio name="param2" value="bar">
<radio name="param1" value="bar">

> Where Ricardo indicates that creating and populating the form before
> sending the user to the view is "duplicating the work of the Struts
> Framework," I'd say that we should be making it straightforward to
> do this step.  It's a very common issue and users shouldn't be required
> to re-solve it.

I agree the above should be done, but I feel that it would still not resolve the
user's reasonable expectation that, like other HTML taglib elements, the values
of an html:radio tag can be initialised in the JSP view.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to