It's not a secret anymore!*
The moose likes JSF and the fly likes Validating my understanding of JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Validating my understanding of JSF" Watch "Validating my understanding of JSF" New topic
Author

Validating my understanding of JSF

Parag Shah
Greenhorn

Joined: Jan 23, 2002
Posts: 26
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


http://diycomputerscience.com
Do It Yourself Computer Science
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validating my understanding of JSF