Slider Component

Description

This component allows you create a slider in a form. A range slider is a slider that is mapped to a property value. This components actually creates a Tapestry textfield component and enhanced its behaviour by adding a slider.
This field is are hidden by default.

Links

The value to be read and updated. This value is passed to the textfield.

params

false

JSONObject

prop

The slider parameters (please refer to jquery-ui documentation)

zone

false

String

literal

The zone to update when changes occure on the slider. An 'action' event is triggered on the server. You can catch it on your page with @OnEvent(value=EventConstants.ACTION, component='sliderZone').

displayTextField

false

Boolean

prop

false

A boolean indicating whether to display the textfield on the client (default is false).

First example : the simple slider

This is a simple slider, the value is updated on submit, associated textfield is hidden

The value is 0 (updated on submit)

<h2>First example : the simple slider</h2>
This is a simple slider, the value is updated on submit, associated textfield is hidden<br/>
<t:jquery.slider t:value="val" t:params="params"/>
<br/>
The value is ${val} (updated on submit)
<br/>