[richfaces-issues] [JBoss JIRA] (RF-11864) selectOneMenu with converter inside collapsiblePanel does not show correct value when switchType is ajax
Andrew Wheeler (Created) (JIRA)
jira-events at lists.jboss.org
Fri Jan 6 20:39:09 EST 2012
selectOneMenu with converter inside collapsiblePanel does not show correct value when switchType is ajax
--------------------------------------------------------------------------------------------------------
Key: RF-11864
URL: https://issues.jboss.org/browse/RF-11864
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.Final
Environment: Linux, 7.0.2.Final, Seam 3.1.Final (faces, solder and persistence)
Reporter: Andrew Wheeler
If the panel contents contain a selectOneMenu with a custom converter and the switchType is "ajax" then the correct option is not shown. If the switchType is changed to "client" then the correct option is displayed. In both instances the converter function getAsString returns the correct value but it appears this is not used to mark the option as selected.
{code:xml}
<rich:collapsiblePanel id="addressPanel" header="Address" switchType="ajax" expanded="false">
<h:panelGroup id="addresses" layout="block">
<ui:repeat value="#{personHome.addressable.addresses}" var="address" id="addressRepeat">
<h:panelGroup id="addressBlock" layout="block">
<h:panelGroup styleClass="property" layout="block">
<h:outputLabel for="addressType" id="addressTypeLabel" value="Type:"/>
<h:selectOneMenu id="addressType" value="#{address.addressType}" hideNoSelectionOption="true" required="true" converter="identityConverter" label="Address type">
<f:selectItem itemValue="" itemLabel="Please select..." noSelectionValue="true"/>
<f:selectItems value="#{addressTypes}" var="t" itemLabel="#{t.description}"/>
</h:selectOneMenu>
<h:message for="addressType" styleClass="property-error"/>
</h:panelGroup>
.
.
.
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list