Buy me a coffee :)

Wicket - jQuery UI

jQuery UI integration in Wicket 6.x, Wicket 7.x , Wicket 8.x & Wicket 9.x



Components / Samples


The Slider is a form component, having a IModel<Integer>.
Additionally a Label could be used to dynamically display the value as it's changing


package com.googlecode.wicket.jquery.ui.samples.jqueryui.slider;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.model.Model;

import com.googlecode.wicket.jquery.core.resource.StyleSheetPackageHeaderItem;
import com.googlecode.wicket.jquery.ui.form.button.AjaxButton;
import com.googlecode.wicket.jquery.ui.form.button.Button;
import com.googlecode.wicket.jquery.ui.form.slider.Slider;
import com.googlecode.wicket.jquery.ui.panel.JQueryFeedbackPanel;

public class DefaultSliderPage extends AbstractSliderPage
	private static final long serialVersionUID = 1L;

	public DefaultSliderPage()
		final Form<Integer> form = new Form<Integer>("form", Model.of(15));

		// FeedbackPanel //
		form.add(new JQueryFeedbackPanel("feedback"));

		// Sliders //
		final Label label = new Label("label", form.getModel()); // the supplied model allows the initial display

		form.add(new Slider("slider", form.getModel(), label)); // will use the html markupId

		// Buttons //
		form.add(new Button("submit") {

			private static final long serialVersionUID = 1L;

			public void onSubmit()
			{, form);

		form.add(new AjaxButton("button") {

			private static final long serialVersionUID = 1L;

			protected void onSubmit(AjaxRequestTarget target)
			{, form);

	// Methods //

	public void renderHead(IHeaderResponse response)

		response.render(new StyleSheetPackageHeaderItem(DefaultSliderPage.class));

	private void info(Component component, Form<?> form)
	{ + " has been clicked");"The model object is: " + form.getModelObject());
<!DOCTYPE html>
<html xmlns:wicket="">
	<title>Wicket jQuery UI: slider</title>
	<div id="demo-panel">
		<form wicket:id="form">
					<td style="width: 240px;">
						<div wicket:id="slider"></div>
					<td style="width: 100px;">
						<span wicket:id="label" id="label"></span>
			<button wicket:id="submit" type="submit">Submit</button>
			<button wicket:id="button">Ajax Button</button>
			<div wicket:id="feedback" style="width: 360px;"></div>
th, td {
	padding: 5px;

table {
	width: 340px;