Closed GoogleCodeExporter closed 9 years ago
From the javadoc:
http://wiki.omnifaces.googlecode.com/hg/javadoc/1.3/org/omnifaces/util/Messages.
html
> Note that all of those shortcut methods by design only sets the message
summary and ignores the message detail (it is not possible to offer varargs to
parameterize both the summary and the detail). The message summary is exactly
the information which is by default displayed in the <h:message(s)>, while the
detail is by default only displayed when you explicitly set the
showDetail="true" attribute.
> To create a FacesMessage with a message detail as well, use the
Messages.Message builder as you can obtain by create(String, Object...).
The showcase has also one example:
https://showcase-omnifaces.rhcloud.com/showcase/utils/Messages.xhtml
In your particular case, you can use e.g.
new ValidatorException(Messages.create("This is a summary String:
").error().detail("This is the detail String").get());
Original comment by balusc
on 19 Feb 2013 at 10:48
Original issue reported on code.google.com by
fressqui...@gmail.com
on 19 Feb 2013 at 12:02