title: JSF 2.0 - Embed html into the XHTML page
body: <p>I need to develop a page that is being used by multiple user groups. The requirement is that each User group wants a customized look and feel when they access the page (with a distinguishing parameter). The Users want to dump the html that they need in a database table and the page (facelet or jsp) will determine the User group and they display the corresponding html. Any pointers on how this can be done?</p>
  
  <p>Example: if User group 1 access the url abc.com/xyz?param=aaa, then the page should display the html that is stored in the database corresponding to UserGroup1. similarly, abc.com/xyz?param=bbb should render the html stored for UserGroup2.</p>
  
  <p>html for Group 1:</p>
  
  <p>hello, user 1 
  html for Group 2:</p>
  
  <p>hello, user 2 
  How does my JSP get this html code from Servlets or any other classes?</p>
  
  <p>Any JSF 2.0 suggestions ? How can I write a backing bean that spits (or binds or creates) the html that is with me in the method to the facelet page?</p>
  
  <p>The above example code might sound simple, but in reality the entire layout, images, borders, tables, content will be different completely.</p>
  
  <p>I have asked a similar question for jsp alternative as well at 
  <a href="https://stackoverflow.com/questions/9879566/jsp-how-to-render-htmlor-jsp-code-from-database">JSP - how to render html(or jsp) code from database</a></p>