[richfaces-issues] [JBoss JIRA] Commented: (RF-11021) rich:select atribute selectFirst doesn't work

Jay Balunas (JIRA) jira-events at lists.jboss.org
Fri Jun 10 12:09:59 EDT 2011


    [ https://issues.jboss.org/browse/RF-11021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607886#comment-12607886 ] 

Jay Balunas commented on RF-11021:
----------------------------------

We did not have time to discuss in team meeting, but I think there is an issue here.  It is not selectFirst - that is doing what it is supposed to.  

The issue is that if "defaultLabel" is not set then the first entry from the selectItems should be shown as it is for h:selectOneMenu.  

So for example in the showcase page http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=select&skin=emeraldTown
  - the first select should have "option 1" showing because it does not set defaultLabel.



> rich:select atribute selectFirst doesn't work
> ---------------------------------------------
>
>                 Key: RF-11021
>                 URL: https://issues.jboss.org/browse/RF-11021
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 4.0.0.Final
>         Environment: GAE, Win7-64
>            Reporter: Ara Minosian
>            Assignee: Jay Balunas
>              Labels: richfaces
>
> This code does not display first value. Id displays emty item.
> {code:xml} 
> <rich:select id="unitSelect" value="#{editBean.paramEditor1.unitKeyWithRange}" selectFirst="true">
>     <f:selectItems value="#{editBean.paramEditor1.availableUnits}"/>
> </rich:select>
> {code} 
> This code dispays first value
> {code:xml} 
> <h:selectOneMenu id="unitSelect" value="#{editBean.paramEditor1.unitKeyWithRange}">
>     <f:selectItems value="#{editBean.paramEditor1.availableUnits}"/>
> </h:selectOneMenu>
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list