• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic generation of UI ????

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

what is best-practice to get a dynamic generation of UI-Components like selectBoolean, Checkboxes, tables and so on.
Now, I do heavily use tags such as c:forEach or ui:repeat to create my Components dynamically. I use Facelets, JSF and I know, I should avoid using such tags from JSTL..but how should I do it else? I know the framework SMILE but I do not want to use it..

Is there a good tutorial to learn how to dynamically create such views?
I looked at the GWT..all UI are developed by JAVA and not by XHTML or JSF. SO whats best practice for JSF??

Thanks for help!!
 
Srinivas Krishnamoorthy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Best way to use the JSF tags like h:selectBooleanCheckbox, h:dataTable in the JSP to render the components.

You can also create components in the pagebean (like HtmlSelectBooleanCheckbox, HtmlDatatable) and add them as children of the view tag in the jsp and you will get the components without putting the tag in the jsp, but the data in the screen will not bind back to the bean because, the data binding functionality us written in the setProperty method of the respective TagHandler classes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic