In the Confirm Add Subview Element dialog, click Yes.

19-10 Web User Interface Developers Guide for Oracle Application Development Framework At design time, page developers using the template can insert content into the appCopyright facet, using the f:facet tag, as shown in Example 19–8 Example 19–8 Using Page Templates Facets in a JSF Page af:pageTemplate id=fe viewId=fileExplorertemplatesfileExplorerTemplate.jspx f:attribute name=documentTitle value={explorerBundle[global.branding_name]} f:attribute name=headerSize value=70 f:attribute name=navigatorsSize value=370 . . . f:facet name=appCopyright -- Copyright info about File Explorer demo -- af:outputFormatted value={explorerBundle[about.copyright]} f:facet . . . af:pageTemplate At runtime, the inserted content is displayed in the right location on the page, as indicated by af:facetRef facetName=appCopyright in the template definition. Page template attributes specify the component properties for example, headerGlobalSize that can be set or modified in the template. While facet element information is used to specify where in a template content can be inserted, attribute element information is used to specify what page attributes are available for passing into a template, and where in the template those attributes can be used to set or modify template properties. For the page template to reference its own attributes, the pageTemplateDef tag must have a var attribute, which contains an EL variable name for referencing each attribute defined in the template. For example, in the fileExplorerTemplate template, the value of var on the pageTemplateDef tag is set to attrs. Then in the layout section of the template, an EL expression such as {attrs.someAttributeName} is used in those component attributes where page authors are allowed to specify their own values or modify default values. For example, the fileExplorerTemplate template definition defines an attribute for the header size, which has a default int value of 100 pixels as shown in Example 19–9 . Example 19–9 Page Template AttributeDefinition attribute description Specifies the number of pixels tall that the global header content should consume. description attribute-nameheaderGlobalSizeattribute-name attribute-classintattribute-class Note: You cannot run a page template as a run target in JDeveloper. You can run the page that uses the page template.