WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Programmaticly adding composite component with myfaces

Re: Programmaticly adding composite component with myfaces

by Leonardo Uribe :: Rate this Message:

| View in Thread

Hi

That is outside JSF 2.0 spec, so it is implementation specific.

The problem with that strategy is PSS algorithm. It is better to use
<ui:include src="#{}"> or <c:if ...> or <c:when ...> to achieve some
dynamic behavior over component tree, and let MyFaces take care of the
details behind PSS algorithm (mark initial state, store information
about dynamic behavior, ....).

regards,

Leonardo Uribe

2012/4/16 Stephen More <stephen.more@...>:

> Here is an example how Mojarra can add composite components
> programmaticly:
> http://maven-examples.googlecode.com/svn/trunk/jsf-dynamic-component/
> ( Built from http://stackoverflow.com/questions/5370184/how-to-programmatically-or-dynamically-create-a-composite-component-in-jsf-2
> )
>
> Can this same process be done in MyFaces ? If so is there any code
> snippets I could use to build a working example ?
>
>
> -Thanks

 « Return to Thread: Programmaticly adding composite component with myfaces