Created
October 27, 2015 12:38
-
-
Save solomax/832efd4e11c94accac9b to your computer and use it in GitHub Desktop.
NPE in wicket 7.1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.myproject; | |
import org.apache.wicket.ajax.AbstractAjaxTimerBehavior; | |
import org.apache.wicket.ajax.AjaxRequestTarget; | |
import org.apache.wicket.devutils.debugbar.DebugBar; | |
import org.apache.wicket.markup.html.WebPage; | |
import org.apache.wicket.markup.html.basic.Label; | |
import org.apache.wicket.request.mapper.parameter.PageParameters; | |
import org.apache.wicket.util.time.Duration; | |
public class HomePage extends WebPage { | |
private static final long serialVersionUID = 1L; | |
private final DebugBar dev; | |
public HomePage(final PageParameters parameters) { | |
super(parameters); | |
add(new Label("version", getApplication().getFrameworkSettings().getVersion())); | |
add(dev = new DebugBar("dev")); | |
dev.setOutputMarkupId(true); | |
// TODO Add your page's components here | |
add(new AbstractAjaxTimerBehavior(Duration.ONE_SECOND) { | |
private static final long serialVersionUID = 1L; | |
@Override | |
protected void onTimer(AjaxRequestTarget target) { | |
target.add(dev); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment