-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Critical
-
Resolution: Done
-
Affects Version/s: 4.0.0.Milestone5
-
Fix Version/s: 4.0.0.Final
-
Component/s: component-validators
-
Labels:None
Clonned 3.3.x issue.
code used:
<h:form>
<rich:graphValidator value="#
">
<rich:panel header="Change password" style="width:500px">
<rich:messages/>
<h:panelGrid columns="3">
<h:outputText value="Enter new password:" />
<h:inputSecret value="#
" id="pass" />
<rich:message for="pass" />
<h:outputText value="Confirm the new password:" />
<h:inputSecret value="#
" id="conf" />
<rich:message for="conf" />
</h:panelGrid>
<h:commandButton value="submit" action="#
<a4j:commandButton value="Store changes"
action="#{userBean.storeNewPassword}
" />
</rich:panel>
</rich:graphValidator>
</h:form>
and
@ManagedBean
@RequestScoped
public class UserBean {
@Size(min = 5, max = 15, message="Wrong size for password")
private String password;
@Size(min = 5, max = 15, message="Wrong size for confirmation")
private String confirm;
private String status = "";
@AssertTrue(message = "Different passwords entered!")
public boolean isPasswordsEquals()
public void storeNewPassword()
{ FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Succesfully changed!", "Succesfully changed!")); }after first click all the messages appears twice. After the second - looks ok.
- cloned from
-
RF-8762 rich:messages displays messages multiple times
-
- Closed
-