I am working with primefaces 4.0.
I'm testing double combo example as is shown in http://www.primefaces.org/showcase/ui/pprSelect.jsf, because we have a similar requirement.
The example works very well, except when first selectOneMenu is required.
<p:selectOneMenu id="city" value="#{bean.city}" required="true">
<f:selectItem itemLabel="Select City" itemValue="" />
<f:selectItems value="#{bean.cities}" />
<p:ajax update="suburbs" listener="#{bean.handleCityChange}"/>
</p:selectOneMenu>
when city selectOneMenu is required and "Select City" is selected, selectOneMenu of suburbs remain with values of last valid city. Even handleCityChange() method isn't invoke by p:ajax...
Has anyone is having the same issue? Is there a way to clean the suburbs? We need the first selectOneMenu as required...
Thanks in advance