[
https://issues.jboss.org/browse/RF-11415?page=com.atlassian.jira.plugin.s...
]
Pavol Pitonak updated RF-11415:
-------------------------------
Steps to Reproduce:
There are Metamer pages to simulate this:
http://localhost:8080/metamer/faces/components/richMessages/jsr303.xhtml
http://localhost:8080/metamer/faces/components/richMessages/jsfValidator....
http://localhost:8080/metamer/faces/components/richMessages/csv.xhtml
Steps:
1. open any of pages listed above
2. set @for='', and @globalOnly=false
3. click "Generate Msgs" button
4. expected messages in area with label: "Messages2 - without 'for' but
'globalOnly' attribute instead" are 6:
* Generated error message without binding to any component (global)
* Generated warning message without binding to any component (global)
* Generated error message for Input 1
* Generated warning message for Input 1
* Generated error message for Input 2
* Generated warning message for Input 2
but in fact, only first message is displayed. Rest of them are missing.
was:
There are Metamer pages to simulate this:
faces/components/richMessages/jsr303.xhtml
faces/components/richMessages/jsfValidator.xhtml
faces/components/richMessages/csv.xhtml
Steps:
1. open any of pages listed above
2. set @for='', and @globalOnly=false
3. click "Generate Msgs" button
4. expected messages in area with label: "Messages2 - without 'for' but
'globalOnly' attribute instead" are 6:
* Generated error message without binding to any component (global)
* Generated warning message without binding to any component (global)
* Generated error message for Input 1
* Generated warning message for Input 1
* Generated error message for Input 2
* Generated warning message for Input 2
but in fact, only first message is displayed. Rest of them are missing.
Metamer: rich:messages: doesn't display all messages
(@globalOnly, WARNING messages missing at all)
---------------------------------------------------------------------------------------------------
Key: RF-11415
URL:
https://issues.jboss.org/browse/RF-11415
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: cdk
Affects Versions: 4.1.0.Milestone2, 4.3.0.M1
Environment: RichFaces 4.1.0.20110910-M2
r.0d4276b62c8366e0eaa1b7cd1c350d373e65ed79
Metamer 4.1.0.20110910-M2 r.unknown
Mojarra 2.1.2-FCS
Apache Tomcat 7.0.19
Java(TM) SE Runtime Environment 1.6.0_26-b03 @ Linux
Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0
Reporter: Ján Jamrich
Assignee: Pavol Pitonak
Labels: ci_issue
Example page for rich:messages contains 2 messages (ok, really there are 3 messages
components).
First with @for, second with @globalOnly (to avoid interference between functionality of
each of them). Then third rich:messages component is without any attribute set.
Next, there is button on page which set couple of FacesMessages in actionListener
method.
Following FacesMessages are added to FacesContext:
- 1 with SEVERITY_ERROR and without binding to any component (global)
- 1 with SEVERITY_WARN and without binding to any component (global)
- 2 with SEVERITY_ERROR, and bound to input1 and (second) to input2
- 2 with SEVERITY_WARN and bound to input1 and (second) to input2
When set attributes to following values:
- @globalOnly=false
- @for=''
and click on button which generates FacesMessages, then expect in second messages (with
attribute @globalOnly, and without @for attribute) all messages displayed (all messages
bound to component + global messages since @globalOnly=false tells that we are not
expecting only global messages).
But in fact, there is displayed only one message - without binding to component (global).
It mean we are missing all messages bound to some component, and secondly, we are missing
messages with SEVERITY_WARN at all!
What is important, in third rich:messages component without any attributes (except ID)
are not displayed these messages as well.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira