• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF + EJB (Need to define templates)

 
Irfan Kapadiya
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18108
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Irfan Kapadiya
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic