[ http://issues.apache.org/jira/browse/MYFACES-13?page=all ]
     
Martin Marinschek closed MYFACES-13:
------------------------------------

     Resolution: Fixed
    Fix Version: 1.0.8 beta

Has been fixed by me some time ago (it is not enough to just render out the id, 
you need to make sure that the id needs to be rendered, you only do that if the 
id is set by the user). Thanks to Brett Langston for his suggestion.

> Attribute "id" is dropped from <h:selectOneMenu>
> ------------------------------------------------
>
>          Key: MYFACES-13
>          URL: http://issues.apache.org/jira/browse/MYFACES-13
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.7 beta
>  Environment: Linux, Tomcat 5.0.28, J2SE 5.0
>     Reporter: 
>     Assignee: Martin Marinschek
>     Priority: Minor
>      Fix For: 1.0.8 beta

>
> I have the following tag in a form:
>     <h:selectOneMenu id="questionnaireType" 
> onchange="questionnaireTypeChanged();" >
> This gets rendered incorrectly as:
>     <select name="questionnaireType" size="1" 
> onchange="questionnaireTypeChanged();">
> Notice that the "id" attribute is missing, although the "name" attribute has 
> been created with the desired value.  I think that the preferred result would 
> be for both the "id" and "name" attributes to be created.  That's what 
> happens with this other tag in the same form:
>     <h:inputText id="lastName" maxlength="40" />
> This gets rendered correctly as:
>     <input id="lastName" name="lastName" type="text" value="" maxlength="40"/>
> Notice that both the "id" and "name" attributes get created in this case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to