[richfaces-issues] [JBoss JIRA] (RF-10456) rich:messages displays messages multiple times [clone]
burak sarac (JIRA)
jira-events at lists.jboss.org
Tue Feb 7 17:32:48 EST 2012
[ https://issues.jboss.org/browse/RF-10456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664915#comment-12664915 ]
burak sarac commented on RF-10456:
----------------------------------
Hi All, I had small temporary workaround for this issue. Maybe it can help:
http://stackoverflow.com/a/9184935/706695
> rich:messages displays messages multiple times [clone]
> ------------------------------------------------------
>
> Key: RF-10456
> URL: https://issues.jboss.org/browse/RF-10456
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-validators
> Affects Versions: 4.0.0.Milestone5
> Reporter: Ilya Shaikovsky
> Assignee: Alexander Smirnov
> Priority: Critical
> Fix For: 4.0.0.Final
>
>
> Clonned 3.3.x issue.
> code used:
> <h:form>
> <rich:graphValidator value="#{userBean}">
> <rich:panel header="Change password" style="width:500px">
> <rich:messages/>
> <h:panelGrid columns="3">
> <h:outputText value="Enter new password:" />
> <h:inputSecret value="#{userBean.password}" id="pass" />
> <rich:message for="pass" />
> <h:outputText value="Confirm the new password:" />
> <h:inputSecret value="#{userBean.confirm}" id="conf" />
> <rich:message for="conf" />
> </h:panelGrid>
> <h:commandButton value="submit" action="#{userBean.storeNewPassword}" />
> <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() {
> return password.equals(confirm);
> }
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list