简体   繁体   中英

JSF PRIMEFACES 4.0 dynamic UI Component injection

I need to create ui components dynamically in jsf page using managed bean. I have ui types(inputText,textArea,Calender etc...) stored in the database. So using these data i want to create ui components such as textfields on jsf page.

Is it possible,if yes then how to do this.

Thanks in advance.

You may want to consider Metawidget for this task, as it does much of the hard work around dynamically creating components (including PrimeFaces components) for you.

If you'd rather roll your own implementation, here is the correct way to create dynamic components in JSF: http://blog.kennardconsulting.com/2010/10/safely-manipulating-component-tree-with.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM