Hello -
We are running JSF edition 4.2. We're having a problem with required field validation.
Consider our code:
<bjsf:panelGrid columns="1">
<bjsf:form id="userform">
<bjsf:panelGrid columns="3">
<bjsf:outputText value="#{label.username}"/>
<bjsf:inputText id="username" value="#{studentBean.editStudent.username}" required="true"/>
<bjsf:message for="username"/>
<bjsf:outputText value="#{label.password}"/>
<bjsf:inputSecret id="password" value="#{studentBean.editStudent.password}" required="true"/>
<bjsf:message for="password"/>
<bjsf:outputText value="#{label.firstName}"/>
<bjsf:inputText id="firstName" value="#{studentBean.editStudent.firstName}" required="true"/>
<bjsf:message for="firstName"/>
<bjsf:outputText value="#{label.lastName}"/>
<bjsf:inputText id="lastName" value="#{studentBean.editStudent.lastName}" required="true"/>
<bjsf:message for="lastName"/>
</bjsf:panelGrid>
</bjsf:form>
<bjsf:commandButton submitForms="userform" value="#{label.submit}" action="#{studentBean.saveStudent}" destinationId="panelRight" mode="replaceChildren"/>
</bjsf:panelGrid>
<bjsf:form id="userform">
<bjsf:panelGrid columns="3">
<bjsf:outputText value="#{label.username}"/>
<bjsf:inputText id="username" value="#{studentBean.editStudent.username}" required="true"/>
<bjsf:message for="username"/>
<bjsf:outputText value="#{label.password}"/>
<bjsf:inputSecret id="password" value="#{studentBean.editStudent.password}" required="true"/>
<bjsf:message for="password"/>
<bjsf:outputText value="#{label.firstName}"/>
<bjsf:inputText id="firstName" value="#{studentBean.editStudent.firstName}" required="true"/>
<bjsf:message for="firstName"/>
<bjsf:outputText value="#{label.lastName}"/>
<bjsf:inputText id="lastName" value="#{studentBean.editStudent.lastName}" required="true"/>
<bjsf:message for="lastName"/>
</bjsf:panelGrid>
</bjsf:form>
<bjsf:commandButton submitForms="userform" value="#{label.submit}" action="#{studentBean.saveStudent}" destinationId="panelRight" mode="replaceChildren"/>
</bjsf:panelGrid>
The problem manifests itself as follows:
1) User clicks submit, all 4 fields show validation errors
2) User enters data in username, clicks submit and remaining 3 fields show validation errors
3) User clears username field, enters data in remaining 3 fields, clicks submit
At this point the form submits even though the username field has been cleared!
Any help anyone can offer would be greatly appreciated. Thanks!

form not revalidate
23 June, 2008 - 13:47 — andysHi kvecchione,
Thank you for finding the bug. We have already added this problem into our issue tracking system. Our Developer team is investigating this issue. It will be fixed in the next release.
Thank you
Andys