facelet - nested <ui:insert>

Posted by user321350 on Stack Overflow See other posts from Stack Overflow or by user321350
Published on 2010-04-20T13:50:26Z Indexed on 2010/04/20 13:53 UTC
Read the original article Hit count: 147

Filed under:

I have multiple templates which differs with each other only by few containers. The most complex one contains superset of all containers used in all other one thus to avoid creating multiple templates I created the most complex one in following format some layout stuff (div and all)

defining nested insert for each container and content.

Now in client template based on what is needed I turn off container which is not needed as

else if container is needed, just define content as doSomething

Please let me know if you guys see any issues with this approach, any potential problem or alternate approach for similar scenario.

thanks a lot.

Maddy

© Stack Overflow or respective owner

Related posts about facelets