[seam-issues] [JBoss JIRA] Commented: (SEAMINTL-55) Support summary and details text for messages
Sebastian Sachtleben (JIRA)
jira-events at lists.jboss.org
Sat Sep 10 06:48:26 EDT 2011
[ https://issues.jboss.org/browse/SEAMINTL-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627674#comment-12627674 ]
Sebastian Sachtleben commented on SEAMINTL-55:
----------------------------------------------
We could extend message api:
Message should get new method:
String getDetail();
BundleTemplateMessage should get two new methods:
public BundleTemplateMessage detail(final BundleKey text)
public BundleTemplateMessage detailParams(final Object... textParams);
Seam Faces MessageAdapter need a change here:
event.getFacesContext().addMessage(m.getTargets(), new FacesMessage(getSeverity(m.getLevel()), m.getText(), null));
to
event.getFacesContext().addMessage(m.getTargets(), new FacesMessage(getSeverity(m.getLevel()), m.getText(), m.getDetail()));
I think its a nice solution. The current behavior doesn't change but we get the opportunity to add additional the detail message. I could take it and make a pull request for both projects.
> Support summary and details text for messages
> ---------------------------------------------
>
> Key: SEAMINTL-55
> URL: https://issues.jboss.org/browse/SEAMINTL-55
> Project: Seam International
> Issue Type: Bug
> Components: Messages
> Affects Versions: 3.1.0.Beta1
> Reporter: Sebastian Sachtleben
> Assignee: Ken Finnigan
>
> Currently the messages api in International Module and MessageAdapter in Seam Faces Module doesnt support summary and details text for faces messages.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list