Bjørn T Johansen wrote:
I thought the reason for setting this property to true, was so the submit would
skip the
validation phase, but that doesn't work for me...
I have the following...:
<h:selectOneMenu accesskey="D" value="#{bean.domainID}" immediate="true"
onchange="submit();">
<f:selectItems value="#{selectMain.listDomain}"/>
</h:selectOneMenu>
<h:inputText id="text" value="#{bean.name}" size="40" maxlength="40"
required="true">
<f:validateLength minimum="3" maximum="30" />
</h:inputText>
But when I change a value in the drop down box, the validation still occurs...
Does anyone know why?
Regards,
BTJ
Does not work that way... but I just had the same problem, there is a
simple workaround to the validation problem, if you want some kind of
cancel functionality, just bind the controls which you have to turn off
to the backend bean and if you want to bypass validation turn off
the validation on the controls directly, that way I could get a nice
cancel functionality although several fields of my form were
set to required...
Werner