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=17676>.
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=17676

<html:option> tag ignores tag body when key is not specified

           Summary: <html:option> tag ignores tag body when key is not
                    specified
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

It seems odd that this bug wouldn't have been caught, so hopefully it is not me.

Here is an example:

        <html:select property="parentRoleID" size="1">
                <html:optionsCollection property="parentRoles"
                                          value="dataKey"
                                          label="roleDescription"/>
                <html:option value="NONE"></html:option>
        </html:select>

In this case, the <html:option> tag should produce an option with a value of
"NONE" and a blank label in the drop down.  Instead, I'm getting NONE in the
drop down.

According to the tag API docs, if 'key' is not specified, the text to be
displayed is taken from the body content of this tag.

This doesn't seem to work.

Thanks
-tim

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

Reply via email to