]
Nick Belaevski updated RF-7634:
-------------------------------
Original Estimate: (was: 30 minutes)
Remaining Estimate: (was: 30 minutes)
Component/s: component-output
(was: component)
Fix Version/s: 3.3.2.CR1
Assignee: Alex Kolonitsky
UIRichMessages doesn't render global messages when globalOnly is
false
----------------------------------------------------------------------
Key: RF-7634
URL:
https://jira.jboss.org/jira/browse/RF-7634
Project: RichFaces
Issue Type: Bug
Components: component-output
Affects Versions: 3.3.0, 3.3.1
Reporter: Michael Seghers
Assignee: Alex Kolonitsky
Fix For: 3.3.2.CR1
Taken following code snippet from the UIRichMessages.getMessages(FacesContext)
if (isGlobalOnly()) {
addMessagesForId(context, null, severenities);
} else if (null != forInputId) {
UIComponent componentFor = RendererUtils.getInstance()
.findComponentFor(context, this, forInputId);
if (null != componentFor) {
addMessagesForId(context, componentFor.getClientId(context), severenities);
}
} else {
Iterator<String> clientIdsWithMessages = context.getClientIdsWithMessages();
while (clientIdsWithMessages.hasNext()) {
addMessagesForId(context, clientIdsWithMessages.next(), severenities);
}
}
This means that the call to addMessagesForId(context, null, severenities) is only called
in when globalOnly is true, but it should also be called in the last else part, where all
messages should be rendered.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: