blob: 4a0ca74a708a18b96e9085dccf12d00e188b13d9 [file] [log] [blame]
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:trh="http://myfaces.apache.org/trinidad/html"
xmlns:tr="http://myfaces.apache.org/trinidad" >
<jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
<f:view>
<trh:html>
<trh:head title="Test of selectItemSupport"/>
<trh:body>
<tr:form>
<tr:panelFormLayout rows="5" maxColumns="3">
<tr:selectOneChoice label="Explicit selectItem">
<f:selectItem itemValue="foo" itemLabel="Foo"/>
<f:selectItem itemValue="bar" itemLabel="Bar"/>
<f:selectItem itemValue="baz" itemLabel="Baz"/>
</tr:selectOneChoice>
<tr:selectOneChoice label="Bound selectItem">
<f:selectItem value="#{selectItemTest.oneItem}"/>
<f:selectItem value="#{selectItemTest.itemList[1]}"/>
<f:selectItem value="#{selectItemTest.itemList[2]}"/>
</tr:selectOneChoice>
<tr:selectOneChoice label="selectItems at list">
<f:selectItems value="#{selectItemTest.itemList}"/>
</tr:selectOneChoice>
<tr:selectOneChoice label="selectItems at array">
<f:selectItems value="#{selectItemTest.itemArray}"/>
</tr:selectOneChoice>
<tr:selectOneChoice label="selectItems at map">
<f:selectItems value="#{selectItemTest.itemMap}"/>
</tr:selectOneChoice>
<tr:selectOneListbox label="Explicit selectItem">
<f:selectItem itemValue="foo" itemLabel="Foo"/>
<f:selectItem itemValue="bar" itemLabel="Bar"/>
<f:selectItem itemValue="baz" itemLabel="Baz"/>
</tr:selectOneListbox>
<tr:selectOneListbox label="Bound selectItem">
<f:selectItem value="#{selectItemTest.oneItem}"/>
<f:selectItem value="#{selectItemTest.itemList[1]}"/>
<f:selectItem value="#{selectItemTest.itemList[2]}"/>
</tr:selectOneListbox>
<tr:selectOneListbox label="selectItems at list">
<f:selectItems value="#{selectItemTest.itemList}"/>
</tr:selectOneListbox>
<tr:selectOneListbox label="selectItems at array">
<f:selectItems value="#{selectItemTest.itemArray}"/>
</tr:selectOneListbox>
<tr:selectOneListbox label="selectItems at map">
<f:selectItems value="#{selectItemTest.itemMap}"/>
</tr:selectOneListbox>
<tr:selectOneRadio label="Explicit selectItem">
<f:selectItem itemValue="foo" itemLabel="Foo"/>
<f:selectItem itemValue="bar" itemLabel="Bar"/>
<f:selectItem itemValue="baz" itemLabel="Baz"/>
</tr:selectOneRadio>
<tr:selectOneRadio label="Bound selectItem">
<f:selectItem value="#{selectItemTest.oneItem}"/>
<f:selectItem value="#{selectItemTest.itemList[1]}"/>
<f:selectItem value="#{selectItemTest.itemList[2]}"/>
</tr:selectOneRadio>
<tr:selectOneRadio label="selectItems at list">
<f:selectItems value="#{selectItemTest.itemList}"/>
</tr:selectOneRadio>
<tr:selectOneRadio label="selectItems at array">
<f:selectItems value="#{selectItemTest.itemArray}"/>
</tr:selectOneRadio>
<tr:selectOneRadio label="selectItems at map">
<f:selectItems value="#{selectItemTest.itemMap}"/>
</tr:selectOneRadio>
</tr:panelFormLayout>
<tr:selectOrderShuttle>
<f:selectItems value="#{selectItemTest.itemList}"/>
</tr:selectOrderShuttle>
<tr:commandButton text="Submit"/>
</tr:form>
</trh:body>
</trh:html>
</f:view>
</jsp:root>