Board index JavaServer Faces General RequiredValidation does not work with p:selectOneListbox

RequiredValidation does not work with p:selectOneListbox

Components, Ajax Framework, Utilities and More.


Posts: 9
It seems required validation does not work for p:selectOneListbox in 3.0.M4:
<p:selectOneListbox required="true" value="#{myBean.property}">
   <f:selectItems value="#{myBean.selectItems}" />
</p:selectOneListbox>

But it works for vanilla jsf tags:
<h:selectOneListbox required="true" value="#{myBean.property}">
   <f:selectItems value="#{myBean.selectItems}" />
</h:selectOneListbox>
PrimeFaces 3.2.RC1, Mojarra 2.1.4, JBoss EAP 5.1

Return to General