jsf 2 - Add html content to faces message from Backing Bean -
this question has answer here:
- how add html code jsf facesmessage 4 answers
i need add html content when method returns wanted result (any method, result) jsf page primefaces .
html add simple :
<div class="alert alert-success" role="alert"> <strong>well done!</strong> read important alert message. </div>
but can't find way cleanly, i've read many posts how return html managed bean in jsf? bean need insert html when user doing e.g. submitting form result.
also : there way save , show in case of redirection primefaces context.getexternalcontext().getflash().setkeepmessages(true);
why not using h:messages tag ? customizable in terms of design , can affect styles , class without turn-around
source : http://www.jsftoolbox.com/documentation/help/12-tagreference/html/h_messages.html
Comments
Post a Comment