JSP vs Facelets as view technology for JSF

General Tech Technology & Software 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 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.

profilepic.png
manpreet 2 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.