title: JSF2: Building JSF2 views (whole component trees) at runtime
body: <p>Currently I'm trying JSF 2.0 and still learning the more advanced features.<br>
  JSF2 is comfortable when having to deal with <em>pre-defined</em> views (fixed component trees) whose widgets are completely known at compile time -- of course with the exception of repeating data list/table entries and light dynamic modification of forms via the DataTable "trick" (as I read here, especially under <a href="https://stackoverflow.com/questions/3409053/jsf2-can-i-add-jsf-components-dynamically">JSF2, can I add JSF components dynamically?</a> and <a href="https://stackoverflow.com/questions/3510614/how-to-create-dynamic-jsf-1-2-form-fields">How to create dynamic JSF 1.2 form fields</a>). </p>
  
  <p>Now I'm wondering about the realization of completely dynamic JSF2 component trees, where a web user, for each given content type (e.g. 'Person', 'PersonList' but also 'PersonalManagementPanel'), can choose one from a list of content-type compatible widgets (=JSF custom components).<br>
  As result, this user will always see the "Personal Manager Page" rendered with his/her prefered "PersonalManagerPanel", which in turn also renders its nested components ('Person', 'PersonList') with the user's preferred variants.</p>
  
  <p>Obviously, the goal is to get a selectively configurable/customizable JSF Page -- at runtime.</p>
  
  <ol>
  <li><p>Is this scenario realizable in JSF2? -- How could this be done?</p></li>
  <li><p>Are there more appropriate Java technologies for this requierement? <br/>
  -- One possible alternative I'm thinking of is XML plus XSLT.</p></li>
  </ol>
  
  <p>Thank you very much for your help and suggestions.</p>
  
  <p>Best regards<br>
    Martin</p>