• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynamic generation of UI ????

 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic