Buy me a coffee :)

Wicket - jQuery UI

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

Snippet Plugin (sample) - the widget

<h1>H1 tag!</h1>
<iframe src="index.html"></iframe>
<div id="foo">
<h3>H3 html is awesome!</h3>
<span class="bar">Womp.</span>
<!-- comment -->
click here

Components / Samples



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

import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LoadableDetachableModel;

import com.googlecode.wicket.jquery.core.Options;
import com.googlecode.wicket.jquery.ui.plugins.SnippetLabel;

public class WidgetSnippetPage extends AbstractSnippetPage
	private static final long serialVersionUID = 1L;

	 * @return the Model to be used as source for the SnippetLabel
	private static IModel<String> newSnippetModel()
		return new LoadableDetachableModel<String>() {

			private static final long serialVersionUID = 1L;

			protected String load()
				return	"<h1>H1 tag!</h1>\n" +
					"<iframe src=\"index.html\"></iframe>\n" +
					"<div id=\"foo\">\n" +
					"<h3>H3 html is awesome!</h3>\n" +
					"<span class=\"bar\">Womp.</span>\n" +
					"<!-- comment -->\n" +
					"click here\n" +

	public WidgetSnippetPage()
		Options options = new Options();
		options.set("style", Options.asString("ide-eclipse"));

		this.add(new SnippetLabel("code", "html", newSnippetModel(), options));
<!DOCTYPE html>
<html xmlns:wicket="">
	<title>Wicket jQuery UI: plugin / snippet</title>
	<pre wicket:id="code"></pre>