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 2004/02/13 14:52:08 UTC
DO NOT REPLY [Bug 26914] New: -
not value created in option list if value is equal to key
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=26914>.
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=26914
not value created in option list if value is equal to key
Summary: not value created in option list if value is equal to
key
Product: Taglibs
Version: unspecified
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Input Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: m.ferrario@reply.it
Hi,
this is the problem:
I created a Map of number; every key is equal to value.
Using this map inside the <input:select> tag I saw that no values are created.
Looking at the tablib source code I have noticed that there is an explicit line
of code (approx line 222 of org.apache.taglibs.input.java) where test if key
equals value, in this cause value is not written.
This, in my opinion, could generate problem if there is, in jsp page, a
javascript validation funciont related to select box.
No problem, instead, if I submit the form without validation.
This is a piece of my code:
Map m = new Hashtable();
m.put("1","1");
m.put("2","2");
m.put("3","3");
<input:select name="choice" options="<%= m %>"/>
Thanks in advance for suggestion to solve this problem.
Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org