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: 146
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.4.2 + JSF 2.1.4 + Tomcat 7.0.14


Posts: 14364
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: 3490
Location: Netherlands
Ronald van Kuijk
______________________________
PrimeFaces 3.5.7/4.0-SNAPSHOT Jboss 7.2.0 | Mojarra 2.1.18
Fedora 16, Firefox 22.0
Read the forum posting rules


Posts: 146
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.4.2 + JSF 2.1.4 + Tomcat 7.0.14


Return to General