[
https://issues.jboss.org/browse/RF-10456?page=com.atlassian.jira.plugin.s...
]
Ilya Shaikovsky edited comment on RF-10456 at 3/3/11 9:48 AM:
--------------------------------------------------------------
At first it's shows 4 messages again instead of two ones with rich:messages.
So setting critical as regression and because one more problem appeared:
in demo global messages declaration now changed from just
<rich:messages/>
to
<rich:messages for="gv"/>
<rich:messages globalOnly="true"/>
so them should NOT appear if just concrete input validators fails. Only <r:message>
should works in that case.
But now them appears together with "r:message for"
That's either should be fixed or new issues should be created, or should be considered
in docs if some kind of restriction when wrapping inputs to GV.
was (Author: ilya_shaikovsky):
setting critical as regression and because one more problem appeared:
in demo global messages declaration now changed from just
<rich:messages/>
to
<rich:messages for="gv"/>
<rich:messages globalOnly="true"/>
so them should NOT appear if just concrete input validators fails. Only <r:message>
should works in that case.
But now them appears together with "r:message for"
That's either should be fixed or new issues should be created, or should be considered
in docs if some kind of restriction when wrapping inputs to GV.
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-tree, qe
Affects Versions: 3.3.1.SP3
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
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.
For more information on JIRA, see:
http://www.atlassian.com/software/jira