jsf 2 - Add html content to faces message from Backing Bean -


this question has answer here:

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -