Oracle Fusion Middleware Tag Reference for Oracle ADF Faces
11g Release 1 (



facetRef facet ref

Used in a page template definition to reference a facet that was defined in the page template usage. This tag can only be used inside of pageTemplateDef.

Example page template definition:

<?xml version='1.0' encoding='utf-8'?>
<jsp:root xmlns:jsp=""
  <af:pageTemplateDef var="attrs">
      <component xmlns="">
        This component will show weather forecasts in a box.
          <description>This child draws out the summary forecast</description>
          <description>This child draws out the detailed forecast</description>
          <description>The Zip code of the area</description>
          <description>The city/state of the zip code </description>
    <af:panelHeader text="Weather Forecast for Zip: #{}, #{attrs.description}">
      <af:facetRef facetname="forecastSummary"/>
        <af:facetRef facetname="forecastDetail"/>

Example page template usage:

<af:pageTemplate id="weather" viewid="pagefragments_weatherBox_jspx">
  <f:attribute name="zip" value="94065"/>
  <f:attribute name="description" value="Redwood Shores, CA"/>
  <f:facet name="forecastSummary">
    <af:outputText value="Partly Cloudy"/>
  <f:facet name="forecastDetail">
    <af:panelGroupLayout layout="vertical">
      <af:outputText value="72 Degrees F"/>
      <af:outputText value="Partly Cloudy"/>
      <af:outputText value="Wind: W at 16 mph"/>
      <af:outputText value="Humidity: 46%"/>


Name Type Supports EL? Description
facetName String No Identifies the facet that should be referenced.