/
decodetest.xhtml
145 lines (118 loc) · 4.87 KB
/
decodetest.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!--
Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<html xmlns:f="jakarta.faces.core" xmlns:h="jakarta.faces.html">
<head>
<title>decodetest</title>
</head>
<body>
<f:view>
<h:form id="form1">
<h:selectManyListbox id="listbox1">
<f:selectItem id="box1Item1"
itemLabel="foo"
itemValue="red" />
<f:selectItem id="box1Item2"
itemLabel="bar"
itemValue="green" />
<f:selectItem id="box1Item3"
itemLabel="again"
itemValue="blue" />
</h:selectManyListbox>
<h:commandButton id="button1" value="Submit"/>
</h:form>
<h:form id="selectmany01">
<p>
Array Values
</p>
<h:selectManyListbox id="array" value="#{select01.arrayValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Null List Values
</p>
<h:selectManyListbox id="list" value="#{select01.listValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Null Set Values
</p>
<h:selectManyListbox id="set" value="#{select01.setValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Null Sorted Set Values
</p>
<h:selectManyListbox id="sortedset" value="#{select01.sortedSetValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Null Collection Values
</p>
<h:selectManyListbox id="collection" value="#{select01.collectionValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<!-- ///////////////////////////////////////////////////////////// -->
<p>
Initially Non-Null List Values
</p>
<h:selectManyListbox id="ilist" value="#{select01.initialListValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Non-Null Set Values
</p>
<h:selectManyListbox id="iset" value="#{select01.initialSetValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Non-Null Sorted Set Values
</p>
<h:selectManyListbox id="isortedset" value="#{select01.initialSortedSetValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Non-Null Collection Values
</p>
<h:selectManyListbox id="icollection" value="#{select01.initialCollectionValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<!-- ///////////////////////////////////////////////////////////// -->
<p>
Initially Null Collection Values using f:attribute hint (java.lang.String)
</p>
<h:selectManyListbox id="hintString" value="#{select01.collectionFromHintValues}">
<f:attribute name="collectionType" value="java.util.LinkedList"/>
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
Initially Null Collection Values using f:attribute hint (java.lang.String)
</p>
<h:selectManyListbox id="hintClass" value="#{select01.collectionFromHintValues2}">
<f:attribute name="collectionType" value="#{select01.collectionType}"/>
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<!-- ///////////////////////////////////////////////////////////// -->
<p>
Initially Null Object type field
</p>
<h:selectManyListbox id="object" value="#{select01.someValues}">
<f:selectItems value="#{select01.possibleValues}"/>
</h:selectManyListbox>
<p>
<h:commandButton id="command" value="Submit" />
</p>
</h:form>
<h:message id="messages" for="selectmany01"/>
</f:view>
</body>
</html>