private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
WebApplication webApplication = (WebApplication)Application.get();
webApplication.getRequestLoggerSettings().setRequestsWindowSize(500);
boolean enabled = webApplication.getRequestLoggerSettings()
.isRequestLoggerEnabled();
webApplication.getRequestLoggerSettings().setRequestLoggerEnabled(!enabled);
}
};
link.add(new Label("toggletext", new Model<String>()
{
private static final long serialVersionUID = 1L;
@Override
public String getObject()
{
WebApplication webApplication = (WebApplication)Application.get();
IRequestLogger requestLogger = webApplication.getRequestLogger();
if (requestLogger == null)
{
return "Enable request recording";
}
else