Forums Register Login

JSF + EJB (Need to define templates)

+Pie Number of slices to send: Send
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.

Regards,
Irfan
+Pie Number of slices to send: Send
Welcome to the Javaranch, Irfan!

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.
+Pie Number of slices to send: Send
Hi Irfan.

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
+Pie Number of slices to send: Send
Hi All,

Thank you very much for your help/inputs.

I am using JSF1.2 in my project.

Can you please help in letting me know what are advantages/disadvantages of using Tiles2.0/Facelets.

I appreciate your valuable inputs.

Thanks in advance.

Reagrds,
Irfan
I am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1367 times.
Similar Threads
Is there anything similar to Twitter Bootstrap for JSF scaffolding?
RichFaces with Tiles?
Benefit o using TILES
JSF layout templates
struts and java server faces (for the author)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:07:43.