JSP vs Facelets as view technology for JSF

General Tech Technology & Software 3 years ago

3.11K 2 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

 


I'm not 100% percent what's the difference between JSP and Facelets, when it comes to JSF view technology.
I searched on google and everybody explains the difference (some by just copying others) in the same way.
I want to know what is the difference if I have a JSP page (document style, with jsp:root, so no scriptlets) or a Facelets page, when a reuqest comes in, and when in RenderResponse each JSF tag is executed.
Also what's the difference between ui:include and jsp:include. I understand JSP/Servlet very good, but not that much the JSF internals.
Thanks, and I hope you won't see this question like all other JSP vs Facelets questions.

ps: a small fraction of response I found is that Facelets isn't transformed in Java Servlet Class, like JSPs are (which this makes it faster), but instead uses a SAX parser, which I don't understand what it does in its callback methods.

0 views
0 shares

profilepic.png
manpreet 3 years ago

The point is that in JSP you code pages. In JSF you code components rather than pages. That's the main difference.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum