You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2003/02/04 12:08:40 UTC

DO NOT REPLY [Bug 16753] New: - Select gives no option value if key.equals(value)

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

Select gives no option value if key.equals(value)

           Summary: Select gives no option value if key.equals(value)
           Product: Taglibs
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Input Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: sveffa@yahoo.com


Given a map o with the following values
Map o;
o.put("one", "1");
o.put("2", "2");

comes out in the html as
<option value="1">one</option>
<option>2</option>

Which is quite unhandy if you wish to submit the form...

I've looked at the sources and I am confused by the following code snippet:

private void outputOption(...){
...
if (!value.equals(key))
  out.print(" value=\"" + Util.quote(value) + "\"");
...

It looks very intentional so maybe I am missing some important aspect?

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org