| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2004, 2005 The Apache Software Foundation |
| |
| Licensed 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. |
| --> |
| |
| <!DOCTYPE component-specification PUBLIC |
| "-//Apache Software Foundation//Tapestry Specification 4.0//EN" |
| "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd"> |
| |
| <component-specification class="org.apache.tapestry.workbench.table.LocaleList" |
| allow-body="no" allow-informal-parameters="yes"> |
| |
| <bean name="rowClass" class="org.apache.tapestry.bean.EvenOdd"/> |
| |
| |
| <!--property name="currentLocale"/--> |
| |
| <property name="selectedLocales" persist="session" initial-value="new java.util.HashSet()"/> |
| |
| <component id="form" type="Form"> |
| <!--binding name="listener" value="listeners.formSubmit"/--> |
| </component> |
| |
| <component id="checkboxGroup" type="contrib:CheckboxGroup"/> |
| |
| <component id="controlCheckbox" type="contrib:ControlCheckbox"/> |
| |
| <component id="checkbox" type="contrib:ControlledCheckbox"> |
| <binding name="value" value="checkboxSelected"/> |
| </component> |
| |
| <component id="submitButton" type="Submit"> |
| <binding name="listener" value="listener:selectLocales"/> |
| </component> |
| |
| <component id="tableView" type="contrib:TableView"> |
| <binding name="source" value="@java.util.Locale@getAvailableLocales()"/> |
| <binding name="columns">literal: |
| * locale:toString(), language:displayLanguage, country:displayCountry, |
| variant:displayVariant, isoLanguage:ISO3Language, isoCountry:ISO3Country |
| </binding> |
| </component> |
| |
| <component id="tableColumns" type="contrib:TableColumns"/> |
| |
| <component id="tableFormRows" type="contrib:TableRows"> |
| <binding name="row" value="currentLocale"/> |
| <binding name="keyExpression" value="literal:toString()"/> |
| <binding name="class" value="beans.rowClass.next"/> |
| </component> |
| |
| <component id="tableValues" type="contrib:TableValues"/> |
| |
| </component-specification> |