About the Document Element and MetaContainer Named Child

The document element is automatically added for you when you create any UIX XML page in JDeveloper. The preferred components to insert into document are body and pageLayout.

The document element generates the root tags for a page, e.g., in HTML, it generates the<html> element. The document element must be used as the outermost element of a Java-built tree.

The metaContainer named child of document is the content to be rendered as the meta data for the entire document. This will almost always be a UIX head component.


Example:

<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      expressionLanguage="el">
  <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
      <provider>
        <!-- Add DataProviders (<data> elements) here -->
      </provider>
      <contents>
        <document>
          <metaContainer>
            <!-- Set the page title -->
            <head title="Document title"/>
          </metaContainer>
          <contents> 
            <body>
              <contents>
                <pageLayout/> 
              </contents>
            </body>
          </contents>
        </document>
      </contents>
   </dataScope>
  </content>
</page>    

Using the Document Element and MetaContainer Named Child
Working with Simple and Miscellaneous Components

 

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