This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 15960
    
  19

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
 
Similar Threads
Why JSF?
JSP in JSF
Does someone know Facelest?
Are JSF 2.0 Facelets really XHTML-conform?
Can I use jsps and jsfs both in my application?