Hi All,
My project architecture is a combination of JSF and EJB and I need to use templates.
I integrated facelets into JSF and also tried using Tiles with JSF for templating. Both worked fine but I would like to know which one is a better solution.
Please suggest.
Facelets is the preferred technology for tiling these days. My own experiences with Tiles have been very frustrating, but Facelets has always worked well for me.
JSF works well with EJB, but there is one restriction: you should avoid using EJBs as JSF backing beans. Not because you can't, but because the ways you can work with a "permanent' EJB are pretty limited, and the JSF backing beans are "permanent" in the sense that you can't swap one copy of a bean for another. So it's better to use a POJO as a facade for the actual EJB.
I agree with Tim. Facelets is a great technology for View Handler, and this is so that it became the deafult View Descriptor Language for JSF 2.0 and it's totally integrated with JSF 2.0 and the most new future in the JSF 2.0 specification (as composite components) is due the integrated use of Facelets , so I suggest you use Facelets, it's works very well .
Regards
Cesar