[
https://jira.jboss.org/jira/browse/RF-6711?page=com.atlassian.jira.plugin...
]
Nick Belaevski resolved RF-6711.
--------------------------------
Resolution: Rejected
Compare:
<h:form>
<rich:messages tooltip="true" showDetail="true" />
<br />
<h:messages tooltip="true" showDetail="true" />
<h:inputText id="text" label="textField" >
<f:convertNumber integerOnly="true"/>
</h:inputText>
<rich:message for="text" tooltip="true"
showSummary="true" />
<br />
<h:message for="text" tooltip="true" showSummary="true"
/>
<br />
<h:commandButton value="GO" />
</h:form>
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