Tapestry

Tapestry5 jQuery provides jQuery Components and can fully replace Prototype and Scriptaculous by jQuery

jQuery Slider

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

Parameters
Name Required Java Type Default Prefix Default Value Description
value trueObjectpropThe value to be read and updated. This value is passed to the textfield.
paramsfalseJSONObjectpropThe slider parameters (please refer to jquery-ui documentation)
zone falseStringliteralThe 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').
displayTextFieldfalseBooleanpropfalseA 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)

Second example : the simple slider, that updates a zone


0