This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes dynamic generation of UI ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "dynamic generation of UI ????" Watch "dynamic generation of UI ????" New topic
Author

dynamic generation of UI ????

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
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

Joined: Jul 28, 2008
Posts: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic generation of UI ????
 
Similar Threads
Why JSF?
Multiple Actions issue in JSF
Can I add JSF components through Ajax?
Adding an action listener to an entire class
Need Help