I am trying to run this simple jsf application with ajax4jsf support. On change of the option in the options list, I would like to update the label. Trouble is that the label only updates after 2 or 3 options are selected.
Anyone got any ideas why this might be happeing?
Here is the code.
<h:selectOneMenu value="#{nontermCourseBean.type}" > <f:selectItem itemLabel="Organization" itemValue="Organization" /> <f:selectItem itemLabel="Master Course" itemValue="Master Course" /> <f:selectItem itemLabel="Test" itemValue="Test" /> <a4j:support event="onchange" reRender="orgnamelabel" ajaxSingle="true" /> </h:selectOneMenu> <br /> <h:outputLabel id="orgnamelabel" value="#{nontermCourseBean.type} Name"></h:outputLabel>
<managed-bean> <managed-bean-name>nontermCourseBean</managed-bean-name> <managed-bean-class> edu.umd.elms.nontermcourses.model.NonTermCourseRequestBean </managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>type</property-name> <property-class>java.lang.String</property-class> <value>Organization</value> </managed-property> </managed-bean>