struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17676] New: - <html:option> tag ignores tag body when key is not specified
Date Wed, 05 Mar 2003 16:22:31 GMT
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: struts-dev@jakarta.apache.org
        ReportedBy: tim.downey@workscape.com


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: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message