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





------- Additional Comments From [EMAIL PROTECTED]  2003-02-25 01:15 -------
We could certainly do this. I had been pondering if this was truely a useful bug
until I came up with the following (potentially common) use case:

  <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>

The PhoneType is retrieved from the database and the description is not a
required field. So in the case where this is null or empty, we return an empty
string. In that case the, the stack trace would still be reported when the
description has not been supplied in the database.

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

Reply via email to