Using Include to Insert UIX XML Content

To insert UIX XML content using the include component:

  1. In the Design Structure Window of the desired file, locate the node in which you wish to insert an external UIX XML file (e.g., globalButtons).
  2. In the Component Palette, select Include Components from the dropdown list, and then drag and drop the include component to the parent node of your choice.

    The include node is inserted and highlighted under the expanded parent node.

  3. In the Property Inspector, set the following attribute for the include component:

Note: To use data binding, see Data Binding a Component Attribute.

Examples (UIX XML)

This is the file that has the include component:

...
<pageLayout title=""> 
  ...
  <globalButtons>
    <include node="gbInclude.uix"/>
  </globalButtons>
  ...
  <contents>
    <!-- Define the main content of the page here --> 
  </contents>
</pageLayout>
...    
This is the included file gbInclude.uix:

<?xml version="1.0" encoding="windows-1252"?>
  <globalButtonBar xmlns="http://xmlns.oracle.com/uix/ui">
    <contents>
      <globalButton text="Help" source="images/help.gif"/>
    </contents>
  </globalButtonBar>    

This is an example that uses data binding in the include component:


...
<globalButtons>
  <include node="${uix.data.someSource.gbInclude}"/>
</globalButtons>
...    

About Include
About ServletInclude
About UrlInclude

Using ServletInclude to Insert JSP and Servlets
Using UrlInclude to Insert HTML Content
Working with Include Components

 

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