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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22219

<html:select tag/DynaActionForm doesn't assign default value properly

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Summary|<html:select tag doesn't    |<html:select
                   |assign default value        |tag/DynaActionForm doesn't
                   |properly                    |assign default value
                   |                            |properly



------- Additional Comments From [EMAIL PROTECTED]  2003-08-12 04:36 -------
Have installed and run with RC1 final and get same results.
The issue does not appear to be browser based - I get the same result in at leat
2 different browsers. 
The issue must be related to more than just the <html:select> tag as I do also
get the correct html  as per Steve Raeburn's test (i.e. there is no 'selected'
attribute in the option tags).

The form is of type 'org.apache.struts.validator.DynaValidatorForm' so perhaps
the bug is in that code.  I have defined an action class which extends
DynaValidatorForm and overrides the initialize() method as per the JavaDoc for
DynaAction (see USAGE NOTE).  

Only those values for which the <html:select> tag has a "size" attribute get set
to the default values (as specified in the struts-config.xml) file when the user
makes no choice.  Those with no "size" attribute are set = 1 (the value of the
option displayed on the form) even if the user makes no choice.

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

Reply via email to