Dynamic Forms with Primefaces

Components, Ajax Framework, Utilities and More.
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

User avatar
optimus.prime
Prime
Posts: 17328
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: 8400
Joined: 17 Jun 2010, 13:34
Location: Netherlands

12 Aug 2011, 01:29

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
Beginners: https://jsf.zeef.com/bauke.scholtz

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
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 4 guests