Board index JavaServer Faces General Dynamic Forms with Primefaces

Dynamic Forms with Primefaces

Components, Ajax Framework, Utilities and More.

Post 11 Aug 2011, 22:39

Posts: 221
Hey, is that a way to dynamicly create ui components using primefaces components?

I know that using pure jsf it's possible! Like this bellow:

form = new HtmlForm();

UIInput input = new HtmlInputText();


Can I do this on similar way using Primefaces components?
PrimeFaces 3.5 + JSF 2.1.4 + Tomcat 7.X

Posts: 17226
Location: Cybertron

Sure, check out user's guide, each component documents the component class and component type. I suggest using Application.createComponent api.

kukeltje Expert Member

Posts: 8394
Location: Netherlands
Ronald van Kuijk
PrimeFaces 5.2, PrimeFaces plus 0.0.2 | JbossWildfly 8.1| Mojarra 2.2.8
Fedora 21, Firefox 'most recent'
Read the forum posting rules

Posts: 221
i liked that metawidget i'll try something with it.

About the docs i'll see too what i can have from it!

PrimeFaces 3.5 + JSF 2.1.4 + Tomcat 7.X

Return to General