vincenzo strawberry
vincenzo strawberry

Reputation: 175

Add new components to component tree during PreRenderView event of postback

Is it possible to create new UIComponents and add it to component tree during the PreRenderView event of a postback? If so, how can I do it using public void onPreRenderEvent(@Observes PreRenderViewEvent e) in Seam 3?

Upvotes: 2

Views: 1074

Answers (1)

Richard Kennard
Richard Kennard

Reputation: 1325

Yes. I have been working with both the Mojarra team and the MyFaces team to establish the 'accepted' way of doing this. I have blogged their conclusions here:

http://blog.kennardconsulting.com/2010/10/safely-manipulating-component-tree-with.html

The JSF EG are also looking at formalizing this in their spec:

http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1007

Upvotes: 2

Related Questions