Page 1 of 1

Dynamic Forms with Primefaces

Posted: 11 Aug 2011, 22:39
by GuitarBrasil
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?

Re: Dynamic Forms with Primefaces

Posted: 11 Aug 2011, 23:18
by cagatay.civici
Sure, check out user's guide, each component documents the component class and component type. I suggest using Application.createComponent api.

Re: Dynamic Forms with Primefaces

Posted: 12 Aug 2011, 01:29
by kukeltje

Re: Dynamic Forms with Primefaces

Posted: 12 Aug 2011, 02:23
by GuitarBrasil
i liked that metawidget i'll try something with it.

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

obrigado!