myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Punz <we...@gmx.at>
Subject Re: How to create JSF pages on the fly?
Date Wed, 28 Dec 2005 22:33:57 GMT
Matthias Kahlau wrote:
> Hi all!
> 
> 
> I have a use case which demands some JSF pages to be created on the fly. Can
> you share experiences and thoughts about this use case?
> 
> I can imagine two different solutions:
> 
> 1) Writing the hole JSF pages from scratch by using the Servlet API. Not
> really satisfying, I think - bad to maintain etc.
> 
> 2) Creating the JSF pages by using fragments of partial pages and JSF EL,
> JSTL or some other utilities to dynamically create the components of the
> pages dependent on some parameters.
> 
> 
> I already read that creating components in JSTL loops isn't possible,
> because the JSF components to render have to be known before the JSTL is
> executed.
> 
Easier...
do a blank page, write a backend bean, and do the rendering on code 
level there.
JSF has a full blown component tree facility, which allows such things.


Mime
View raw message