[richfaces-issues] [JBoss JIRA] Updated: (RF-6788) Cannot select null value with rich:inplaceSelect

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed Apr 22 15:30:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-6788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-6788:
-------------------------------

    Fix Version/s: 3.3.1
         Assignee: Nick Belaevski


> Cannot select null value with rich:inplaceSelect
> ------------------------------------------------
>
>                 Key: RF-6788
>                 URL: https://jira.jboss.org/jira/browse/RF-6788
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.3.0, 3.3.1
>         Environment: RichFaces 3.3.0 or 3.3.1 Beta 3, Sun Glassfish Enterprise Server
>            Reporter: John Leed
>            Assignee: Nick Belaevski
>             Fix For: 3.3.1
>
>
> Using rich:inplaceSelect with a SelectItems array with a null value as the first entry to make the selection optional. The rest of the SelectItems are objects and a label with a JSF converter on the class. If the value on the backing bean is not null when the page is first rendered and if the null (value="") item is selected, the bean value does not change on postback.
> Example:
> <h:outputText value="District:"/>
> <rich:inplaceSelect label="District" id="district" value="#{store.currentEntity.district}"
>     defaultLabel="Click to select" >
>     <f:selectItems value="#{district.selectOneItems}"/>
> </rich:inplaceSelect>
> The following works perfectly fine:
> <h:outputText value="District:"/>
> <h:selectOneMenu label="District" id="district" value="#{store.currentEntity.district}">
>     <f:selectItems value="#{district.selectOneItems}"/>
> </h:selectOneMenu>

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

        



More information about the richfaces-issues mailing list