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/27 07:07:41 UTC

DO NOT REPLY [Bug 17465] New: - html:select el tag does not work for preset 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=17465>.
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=17465

html:select el tag does not work for preset value

           Summary: html:select el tag does not work for preset value
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: walter.tam@openwave.com


for the following usage;

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
...
<html:select property="filesubcategory" size= "1" value='<%=(String)
request.getAttribute("selectedSubcategory")%>'>
  <html:options collection="selectedSubcategories" property="value" 
labelProperty="label"/>
</html:select>

work correctly to highlight the value in the list corresponding to "value=xxx"
being selected.

When the same code is changed to use

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el" prefix="html" %>

The list remains unselected.


The example use a scriptlet so the same code runs in both regular and el 
version of HTML tags for comparison.

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