Are there any drawbacks of using technology JSP(instead XHTML) in JSF-2.0?

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 used to working with JSP as view technology. But with JSF-2.0, the new push is for developers to use Facelets as their templating technology. But whether this is a serious matter? Will I lose anything if i will continue to use the JSP for views in JSF? Than exactly this technology is better? Is there any fundamental differences between the work XHTML and JSP? I would be very grateful if someone could answer it! Thank you

profilepic.png
manpreet 2 years ago

New view scope and the inclusion of Facelets is major improvements of JSF along with support ajax and annotations. This technology is a very important and powerful property in the JSF 2.0. So I would not recommend ignore it without having a necessity.

JSP is discouraged from JSF 2.0, because Facelets provide with a much clearer and flexible mechanism for developing user interfaces than legacy JSP. Facelets are far better for several basic reasons:

  • Facelets tags don't need declaration in a tag library descriptor file(TLD).
  • Attributes in a tag are dynamic and they automatically get mapped to a properties. This is one of the main features not available in JSP is page.
  • Very usable page-templating feature. You define a template that defines a generic layout to all the view pages with the scope for customization.
  • JSP-side of the JSF specification is standing still. None of the new features that involve new tags (composite components, ajax, system events, etc…) are exposed through JSP.
  • In addition, Facelets are faster in execution than JSPs.

In general, JSP as view technology in JSF 2.0 is considered more trouble and difficult to maintain


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.