Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validating my understanding of JSF

 
Parag Shah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have been reading some tutorials on JSF. This is my initial understanding.

In JSF, the view is created from JSF tags which are placed in JSP pages. I understand they can be put in Facelets or in .jspx (xml compliant jsp page) pages as well. When put in .jspx we do not define tags, but namespaces.

Usually the point of entry into a JSF application is a JSP page that forwards to another page that is actually processed by the FacesServlet and rendered on the browser.

Is it true that the real purpose of the JSP page is to allow Faces Servlet to build a View Root for that page on the server side. Once the View Root is created it (and not the JSP page) renders the html to the browser. When a user submits a form or clicks on a button, the Faces Servlet updates the View Root for that component, which further renders the resulting view on the browser.

Is my understanding of how the view is rendered in a JSF application correct?

Thanks
Parag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic