tell me more icon Creating a JSF Page

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

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

  • The New Gallery
  • The JSF navigation diagrammer

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

page icon

In the Create JSF Page dialog, the Render in Mobile Device checkbox is selected by default when you create a JSF page in a project that uses Mobile technology.

Create JSF Page dialog

Note: Mobile JSF pages should use Apache MyFaces Trinidad components only. In the Create JSF Page dialog, the Initial Page Layout and Content section is disabled because those options add ADF Faces libraries to a project, which are not needed in a mobile application.

Upon creating the new page using the dialog, the page icon on the diagram will change to indicate that a physical file is associated with the page icon:

created page icon

When you create a new JSF page as an XML document ( .jspx), JDeveloper automatically creates a starter page structure with jsp:root as the root element with the namespaces for the Trinidad and JSF tag libraries. The other elements included in the starter file are elements for laying out a page, specifically everything else within <f:view> and </f:view>:

                                <?xml version='1.0' encoding='windows-1252'?> <jsp:root xmlns:jsp="#" version="2.1"           xmlns:f="#"           xmlns:h="#"           xmlns:trh=""           xmlns:tr=""           xmlns:dvtt="">   <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"               doctype-system=""               doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>   < contentType="text/html;charset=windows-1252"/>   <f:view>     <trh:html>       <trh:head title="br-o">         <meta http-equiv="Content-Type"               content="text/html; charset=windows-1252"/>       </trh:head>       <trh:body>         <h:form></h:form>       </trh:body>     </trh:html>   </f:view>   <!--oracle-jdev-comment:deviceCategory:pda--> </jsp:root>

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

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