Hi Guys,
I need some help.
I'm unable to resolve a strange issue with <h:selectOneMenu and a4j:support - SelectOneMenu dropdown items are dynamically created with backing beans and it displays properly. The enclosing form also has few other selectOneMenu components. for some reason, the issue below doesnot occur for one of the selectOneMenus, but occurs on all others - When I select an item from dropdown, the display changes. Problem is , an a4j:support component inside the selectOneMenu fails to pickup the selected value - I've verified that the backing bean is correctly creating both display value and the key correctly for all dropdown items. The code snippet is as below -
<c:if test="#{entity.typeLookup}"> <h:selectOneMenu id="#{fieldName}#{idattach}Lookup" value="#{entity.currentSelectionString}" converter="#{entity.converter}" converterMessage="Test Convert Message" > <f:selectItems value="#{entity.selectOptionsList}" /> <a4j:support event="onchange" onsubmit="alert(this.value)" ajaxSingle="true" action="#{entity.dummy}"></a4j:support> </h:selectOneMenu> <a4j:outputPanel> <h:message id="#{fieldName}#{idattach}MessageLookup" style="color: red;" for="#{fieldName}#{idattach}Lookup" /> </a4j:outputPanel> </c:if>