You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/09/23 21:41:15 UTC

DO NOT REPLY [Bug 31365] - Add initValue attribute to html:radio tags

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 niallp@apache.org  2004-09-23 19:41 -------
I don't follow your explanation - seems to me that if you want some initial 
value set so that the appropriate redio button is checked then you need to get 
the property in the ActionForm initialized.

Possible ways of doing that are:

* have the action that initially forwards to your jsp create and populate the 
form bean associated with the mapping for your subsequent actions and store it 
under that appropriate scope/name.

* using a Dyna ActionForm - specify an initial value in the struts-config.

* using a POJO ActionForm - set the initial value when the forms instantiated.

* use the same ActionForm for both your initial and subsequent actions and 
initialize the property in your 'initial' action.

The only other thing I'm wondering about is where the FormTag actually creates 
the ActionForm - maybe it should be calling the form's reset() method?

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org