[richfaces-issues] [JBoss JIRA] Created: (RF-6711) Message & Messages: summary of the message instead of details is shown inside tooltip.
Alexander Dubovsky (JIRA)
jira-events at lists.jboss.org
Mon Apr 6 11:18:22 EDT 2009
Message & Messages: summary of the message instead of details is shown inside tooltip.
--------------------------------------------------------------------------------------
Key: RF-6711
URL: https://jira.jboss.org/jira/browse/RF-6711
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: 3.3.1.BETA3
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Attachments: 55.png
Page:
<h:form>
<rich:messages tooltip="true" showDetail="true" />
<h:inputText id="text" value="#{editor.value}"
validator="#{editor.validate}" label="textField" />
<rich:message for="text" tooltip="true" showSummary="true" />
<br />
<h:commandButton value="GO" />
</h:form>
Bean:
public void validate(FacesContext context, UIComponent component,
Object value) throws ValidatorException {
String selectedValue = (String) value;
String clientId = component.getClientId(context);
if (selectedValue.equals("a")) {
FacesMessage message = new FacesMessage();
message.setSummary("=SUMMARY=");
message.setDetail("=DETAIL=");
context.addMessage(clientId, message);
}
}
# Open page. Type "a" into input
# Press GO button
Result: details of the message is displayed on the page and summary displayed inside tooltip.
According to the documentation behaviour should be vice versa.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list