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();
input.setId("test");

form.getChildren().add(input);

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


Posts: 15103
Location: Cybertron

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

kukeltje Expert Member

Posts: 6724
Location: Netherlands
Ronald van Kuijk
______________________________
PrimeFaces 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/


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!

obrigado!
PrimeFaces 3.5 + JSF 2.1.4 + Tomcat 7.X


Return to General