The WicketStuff version of the JavaScript file was out of date. After I fixed the JavaScript both the thumbnail and full image displayed. The close image icon still wasn't showing, so I just rolled my own version from I think all that needs to be done to fix WicketStuff is to copy down the resource files and to add the data-lightbox attribute to onComponentTag in LightboxLink.


On 07/14/2014 10:37 AM, Jered Myers wrote:
I am having trouble getting the wicketstuff Lightbox2 plugin integration working. I am using the basic example with image resources at the bottom of The thumbnail displays just fine, but when I click on the thumbnail only the mask for the page shows up and the image is missing. Does anybody have this plugin working? The examples don't seem to work for me either (6.15.0). I tried adding "data-lightbox" attribute per the ( website, but it didn't seem to help. Here is my code where res is an instance of a class that holds the ResourceReferences:

add(new LightboxLink("imageLink", res.getFullImage()) {
    private static final long serialVersionUID = 1L;

    protected void onComponentTag(ComponentTag tag)
        tag.put("data-lightbox", getMarkupId());
}.add(new Image("imageFile", res.getThumbnail())));

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to