Hi,
I have a file containing form and submit button. Some of the input fields of the form are required ("required= true").
if I submit all data (and all is valid) - everthing is great.
But if I submit partial data, get "validation: field required" error, and then go to another page and go back to the form - the displayed data in the form holds the values I got validation error on, even though this is not the values of the attached managed bean.
If I change the form and the submit button to non-ajax components, everything works fine.
does anyone knows why?
<f:subview id="content">
<a4j:form id="profileForm" ajaxSubmit="false" reRender="profileForm,resultMsg,content:profileForm" >
...
<h:inputText id="firstName" value="#{UserManager.userDetailsBean.firstName}" required="true">
<f:validateLength maximum="25"/>
</h:inputText>
...
<a4j:commandButton action="#{UserManager.changeProfile}" id="changeProfile" type="submit" image="app/images/continue0.gif"
reRender="internalPanel" />
</a4j:form>
</f:subview>