Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF and JSP  RSS feed

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see one of the reason for using XHTML facelets as opposed to JSPs for your view technology is because JSPs can give cryptic error messages. Can someone give a good example.

Also, is it ok to use XHTML templates with JSF 1.2? Or is there anything I should be made aware of.

Thanks
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP-based JSF views essentially report errors as raw stack traces. Facelets is JSF-aware and it prepares a more useful display with things like the view structure and variable values displayed. It would be enough for me if that's all it did, but I must admit that its ability to do tiling is the other one of the top 2 reasons why I use it.

Most of my facelets-based webapps are JSF 1.2. I haven't converted them to JSF2 yet.
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:JSP-based JSF views essentially report errors as raw stack traces. Facelets is JSF-aware and it prepares a more useful display with things like the view structure and variable values displayed. It would be enough for me if that's all it did, but I must admit that its ability to do tiling is the other one of the top 2 reasons why I use it.

Most of my facelets-based webapps are JSF 1.2. I haven't converted them to JSF2 yet.


Great answer Tim. Yes I worked on a project was JSF 1.2 and used facelets before but wasn't involved in the Web Tier really.

Anyone else want to add anything?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!