[
https://jira.jboss.org/jira/browse/RF-6788?page=com.atlassian.jira.plugin...
]
Mikhail Vitenkov closed RF-6788.
--------------------------------
Assignee: Nick Belaevski (was: Mikhail Vitenkov)
Verified at 3.3.1.CR2
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
Priority: Minor
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