To insert a listOfValues component:
The listOfValues node is inserted and highlighted under the expanded parent node.
Note: To use data binding, see Data Binding a Component Attribute.
listOfValues_Dialog.uix
file, which is called from
the lovInputTest.uix
file in
Inserting a MessageLovInput.
Example: Copyright (c) Oracle Corporation 2002-2003. All Rights Reserved.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright (c) Oracle Corporation 2002-2003. All Rights Reserved. -->
<!-- @version $Name: $ ($Revision: 1.4 $) $Date: 2003/10/01 01:43:17 $ -->
<!-- This file implements the back end support for the components guide -->
<!-- LOV example demos. Some of the examples have multiple lovInput -->
<!-- fields but, for simplicity, this file only implements a single -->
<!-- listOfValues to support all of them. -->
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<contents>
<flowLayout>
<contents>
<listOfValues title="${ui:defaulting(uix.data.fieldData['current'].title,
'Available peak values')}"
id="lovHandler"
searchText="${uix.data.fieldData['current'].fieldText}"
searchAreaMode="${uix.data.generalParams.currentMode}">
<headerInstructions>
<styledText text="Choose a peak"
styleClass="OraInstructionText"/>
</headerInstructions>
<!-- Helpful text for the search area -->
<searchInstructions>
<styledText text="${uix.data.generalParams.instructions}"
styleClass="OraInstructionText"/>
</searchInstructions>
<!-- This choice just pulls out the column headers -->
<filterChoice>
<choice name="categoryChoice"
multiple="false"
selectedValue="${uix.data.generalParams.categoryChoice}">
<contents childData="${uix.data.categoryData}">
<option text="${uix.current}"/>
</contents>
</choice>
</filterChoice>
<advancedChoices>
<labeledFieldLayout width="90%"
labelWidth="18%"
columns="2">
<contents childData="${uix.data.generalParams.advSearchFields}">
<messageTextInput prompt="${uix.current.prompt}"
columns="15"
name="${uix.current.name}"
text="${uix.data.fieldData['current'][uix.current.dataName]}"/>
</contents>
</labeledFieldLayout>
</advancedChoices>
<contents>
<flowLayout>
<contents>
<!-- Here's the table definition -->
<!-- This must be a form submitted proxied table -->
<table name="lovTbl"
id="lovTbl"
width="80%"
minValue="1"
formSubmitted="true"
proxied="true"
alternateText="${uix.data.tableParams.alternateText}"
blockSize="${uix.data.tableParams.size}"
maxValue="${uix.data.tableParams.max}"
tableData="${uix.data.tableData}"
value="${uix.data.tableParams.start}"
columnHeaderData="${uix.data.categoryData}">
<tableFormat tableBanding="rowBanding"/>
<columnHeaderStamp>
<text text="${uix.current}"/>
</columnHeaderStamp>
<tableSelection>
<multipleSelection text="select an item"
selected="${uix.current.selected}"/>
</tableSelection>
<contents>
<!-- Populate with some sample peak data -->
<text text="${uix.current.peak}"/>
<text text="${uix.current.altitude}"/>
<text text="${uix.current.location}"/>
<text text="${uix.current.ascent}"/>
<text text="${uix.current.climbers}"/>
<!-- This element supplies a rowid to show how extra -->
<!-- data could be put on the form. This value will be -->
<!-- submitted with every operation on this table. -->
<formValue name="rowid" value="${uix.current.rowid}"/>
</contents>
</table>
</contents>
</flowLayout>
</contents>
</listOfValues>
</contents>
</flowLayout>
</contents>
<provider>
<data name="categoryData">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="getCategoryNames"/>
</data>
<data name="tableData">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="getDataSet"/>
</data>
<data name="generalParams">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="getGeneralParams"/>
</data>
<data name="fieldData">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="getFieldSet"/>
</data>
<data name="tableParams">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="getTableParameters"/>
</data>
</provider>
</dataScope>
</content>
<handlers>
<event name="lovFilter">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="handleLovFilterEvent" />
</event>
<event name="lovSelect">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="handleLovSelectEvent" />
</event>
<event name="goto">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="handleGotoEvent" />
</event>
<event name="lovSearchMode">
<method class="oracle.cabo.servlet.demo.ListOfValuesDemoData"
method="handleLovSearchModeEvent" />
</event>
</handlers>
</page>
About ListOfValues
About the LovOpenWindowAction Client Action
About MessageLovInput
Inserting a MessageLovInput
Working with Layout Components
Copyright © 1997, 2004, Oracle. All rights reserved.