Time for action – creating the dept.jspx file
Right-click on the Web Content section of the
viewController
project. This will display the New Gallery window.Navigate to the JSF/Facelets section under the Web Tier section and select the Page option from the items.
Provide the name as
dept.jspx
, and the location for the page can be located in the Directory section.Select Document Type as the JSP XML file to have the extension
.jspx
, facelets will have the extension.jsf
.Select WebPageTemplate that we created in the Page Layout section by selecting the Page Template option.
Managed beans can be added to the page in the Managed Bean section. Right now, we will have one backing bean associated with the page. Select the Automatically Expose UI components in a New Managed Bean option only if you have a strong reason to bind each of the UI components to the bean, otherwise we do not need to select this option now. Usage of a backing bean rather than a managed bean is applicable if you are creating...