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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -