ADF Facesドキュメント・タグについて

ADF Facesのdocumentタグは、クライアント・ページのルート・タグを生成します。たとえば、HTMLページでは、標準HTMLのpage要素である<html><head>および<body>を生成します。

<f:view>
  <af:document>
    <af:form> ... </af:form>
  </af:document>
</f:view>     

ドキュメント全体にメタデータとしてレンダリングされるコンテンツを追加(たとえば、headセクションにメタデータを追加)するには、af:documentmetaContainerファセットを使用します。

次の各コード・スニペットでは、同じ出力が作成されます。

サンプル1: HTMLおよび非HTMLページに使用可能

<f:view>
  <af:document title="Title 1">
    <h:form>
      <h:commandButton value="commandButton1"/>
    </h:form>
    <f:facet name="metaContainer">
      <f:verbatim>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>test</title>
      </f:verbatim>
    </f:facet>
  </af:document>
</f:view>    

サンプル2:

<f:view>
  <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
      <title>test</title>
    </head>
    <body>
      <h:form>
        <h:commandButton value="commandButton1"/>
      </h:form>
    </body>
  </html>
</f:view>    

ADF Facesのafh:bodyタグと同様に、af:documentタグは部分ページ・レンダリングを自動的にサポートします。


ADF Facesのhtml、headおよびbodyタグについて
その他のADF Facesコンポーネントの概要