permaculture playing cards*
The moose likes JSF and the fly likes JSF and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF and JSP" Watch "JSF and JSP" New topic
Author

JSF and JSP

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
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.
 
subject: JSF and JSP