Form is not submitting in JSF while using two SelectOneMenu
Form is not submitting in JSF while using two SelectOneMenu
I am working on JSF 1.2 version, As per requirement i am populating two drop down list in JSP but the problem is my action is not executing while submitting the page, it is just refreshing the page in same window.
Interesting part is: its working fine if i am using any one of the drop down list separately, but not while using both together.
Please help..
Here is the code:
view plaincopy to clipboardprint?
Note: Text content in the code blocks is automatically word-wrapped
<tr><td class="register_step1_lbl1">
<h:outputText id="componentLabelCountryName" value="C.Code"/>
</td>
<td>
<h:selectOneMenu id="countrySelect" binding="#{newuserregistration.countryCodeSelect}">
</h:selectOneMenu>
</td></tr>
<tr>
<td class="register_step1_lbl1">
<h:outputText id="componentLabelConfirmCountryName" value="Cnf.C.Code"/>
</td>
<td>
<h:selectOneMenu id="confirmCountrySelect" binding="#{newuserregistration.confirmCountryCodeSelect}">
</h:selectOneMenu>
</td>
</tr>
Ask yourself how will the form know what "value" the user selected? Something is missing in the selectOneMenu