blob: 58e80c6baee5cfbab939c4542c526dcf67fedc48 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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.
-->
<ui:composition template="/main.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<tc:section label="Input Type Range">
<tc:range label="0 to 100" min="0" max="100" value="#{rangeController.one}"/>
<tc:range label="0 to 100 step 10" min="0" max="100" step="10" value="#{rangeController.two}"/>
<tc:label value="without label"/>
<tc:range value="#{rangeController.three}" />
<tc:button label="Submit"/>
Values on server:
"#{rangeController.one}" (Integer), "#{rangeController.two}" (Double), "#{rangeController.three}" (int)
</tc:section>
<tc:section>
<f:facet name="label">Input Type Range with Datalist <tc:badge value="Not implemented yet!" markup="warning"/></f:facet>
<input type="range" list="datalist" class="form-control-range"/>
<datalist id="datalist">
<option value="0" label="0 %"/>
<option value="25" label="25 %"/>
<option value="50" label="50 %"/>
<option value="75" label="75 %"/>
<option value="100" label="100 %"/>
</datalist>
</tc:section>
</ui:composition>