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 2003/02/20 19:23:28 UTC
DO NOT REPLY [Bug 17254] New: -
html:option tag with an empty body content
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=17254>.
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=17254
html:option tag with an empty body content
Summary: html:option tag with an empty body content
Product: Struts
Version: 1.1 Beta 3
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: tkv@landacorp.com
The html:option tag attempts to lookup a message in the message resource bundle
when the body content is empty. This results in an exception being thrown. We do
this in places where the selection list is tied to an optional field...
Notice the first html:option entry.
<html:select property="currentAddress.phone2Type">
<html:option value=""></html:option>
<logic:iterate id="type" name="addressChange" property="phoneTypes"
type="AddressChangeForm.PhoneType">
<html:option value="<%=
((AddressChangeForm.PhoneType)type).getCode()%>"><bean:write name="type"
property="description"/>
</html:option>
</logic:iterate>
</html:select>
We can fix this problem by doing this instead...
<html:option value=""> </html:option>
But it still probably should be valid to have an empty string here.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org