tell me more icon Creating JSF Pages

The JSF pages you create for your application using JavaServer Faces can be JSP pages (which have file extension .jsp) or JSP documents (which have file extension .jspx).

You can create JSF pages with the Create JSF Page dialog, opening it from:

  • The New Gallery
  • The JSF navigation diagrammer
  • The ADF task flow diagrammer (available only in the Studio edition of JDeveloper)

To open the Create JSF Page dialog from the JSF navigation diagrammer, you will double-click a JSF page icon:

page icon

In the Create JSF Page dialog, you can specify whether and how you want to bind the components on the page to a backing bean. You can also optionally define some aspects of the look and feel for the new page. In the example, you will not use a page template, a quick start layout, or choose to let JDeveloper automatically use a backing bean for the page.

Create JSF Page dialog

Upon creating the new JSF page, the page icon on the navigation diagram will change to indicate that a physical file is associated with the page icon.

created page icon

When you create the new JSF page as a JSP page (with file extension .jsp), JDeveloper automatically creates a starter page structure with a JSP page directive, and two taglib directives for the JSF Core and HTML tag libraries. The other elements included in a starter file are elements for laying out a page, specifically everything else within <f:view> and </f:view>.

                                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"                                 
""> <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib uri="#" prefix="f"%> <%@ taglib uri="#" prefix="h"%> <f:view> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> <title>Login</title> </head> <body> <h:form></h:form> </body> </html> </f:view>

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,