Dynamic Forms with Primefaces

UI Components for JSF
Post Reply
GuitarBrasil
Posts: 221
Joined: 04 Aug 2011, 22:00

11 Aug 2011, 22:39

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Aug 2011, 23:18

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: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

12 Aug 2011, 01:29


GuitarBrasil
Posts: 221
Joined: 04 Aug 2011, 22:00

12 Aug 2011, 02:23

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests