
|
If you were logged in you would be able to see more operations.
|
|
|
|
The validator fires for an h:inputText that isn't rendered.
This is what I have on my page:
<h:outputText value="Last Name:"/>
<h:outputText value="#{sessionScope.visit.user.lastName}"
style="font-weight:bold;"
rendered="#{!members$myAccount.editName}"/>
<h:inputText id="lastName" value="#{sessionScope.visit.user.lastName}"
rendered="#{members$myAccount.editName}"
binding="#{members$myAccount.lastNameInput}"
required="true">
<s:commonsValidator type="required"
arg="Last name"
server="true"
client="true"/>
<h:message for="lastName" errorClass="errorText"/>
</h:inputText>
The inputText boxes are not rendered unless the user clicks a "Update
Name" button that changes the boolean "editName" property. The problem
is that the Update Name button is triggering the validation on the
un-rendered InputText control.
I suppose the form's onSubmit event caller assumes the existence of
the Input boxes.
|
|
Description
|
The validator fires for an h:inputText that isn't rendered.
This is what I have on my page:
<h:outputText value="Last Name:"/>
<h:outputText value="#{sessionScope.visit.user.lastName}"
style="font-weight:bold;"
rendered="#{!members$myAccount.editName}"/>
<h:inputText id="lastName" value="#{sessionScope.visit.user.lastName}"
rendered="#{members$myAccount.editName}"
binding="#{members$myAccount.lastNameInput}"
required="true">
<s:commonsValidator type="required"
arg="Last name"
server="true"
client="true"/>
<h:message for="lastName" errorClass="errorText"/>
</h:inputText>
The inputText boxes are not rendered unless the user clicks a "Update
Name" button that changes the boolean "editName" property. The problem
is that the Update Name button is triggering the validation on the
un-rendered InputText control.
I suppose the form's onSubmit event caller assumes the existence of
the Input boxes.
|
Show » |
|