GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Lightbox2 Plugin Integration

Lightbox2 Plugin Integration

Jump to bottom
Martijn Dashorst edited this page Nov 22, 2026 · 3 revisions

Deprecated: this page is no longer maintained. The current documentation is at wicketstuff.org/modules/lightbox2/.

Overview

(from http://www.jqplot.com/)

Lightbox is a simple, unobtrusive script used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers

Example:

Java Code:

add(new LightboxPanel("lightbox", "images/image-1.jpg", "images/thumb-1.jpg"))

HTML:

<wicket:container wicket:id="lightbox"></wicket:container>

With Resource Reference:

Java Code:

ResourceReference image = new PackageResourceReference(HomePage.class,
			"resources/image-1.jpg");
ResourceReference thumbnail = new PackageResourceReference(HomePage.class,
			"resources/thumb-1.jpg");
add(new LightboxLink("link", image).add(new Image("image", thumbnail)));

HTML:

<a wicket:id="link" href="images/image-1.jpg" rel="lightbox" title="Lightbox with ResourceReference"> 
	<img wicket:id="image" alt="ResourceReference" />
</a>

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.