Home

Awesome

Build Status Coverage Status Dependency Status

wicket-console

Wicket Console for JVM 1.8+

Key features:

  1. Very small size (<35Kb)
  2. Ajax enabled
  3. Contextual
  1. Embeddedable into your wicket pages
  2. Available throught Wicket DebugBar panel
  1. Pluggable architecture for script engines: you can write your own!

Installation

To use wicket console library in your code add following into your pom.xml

		<dependency>
		      <groupId>ru.ydn.wicket.wicket-console</groupId>
		      <artifactId>wicket-console</artifactId>
		      <version>1.x</version>
		</dependency>

Then you should either enable Wicket DebugBar in your code.

public class MyPage extends WebPage {

	public MyPage(final PageParameters parameters) {
		super(parameters);
...
		add(new DebugBar("debugBar"));
    }
}

or you can add WicketConsolePanel on a required page

public class MyPage extends WebPage {

	public MyPage(final PageParameters parameters) {
		super(parameters);
...
    add(new WicketConsolePanel("console"));
    }
}

Demo

Build project:

cd wicket-console
mvn clean install

Run demo:

cd wicket-console-demo
mvn jetty:run

Then goto http://localhost:8080/

Examples

Print all properties of application

for(var p in org.apache.wicket.Application.get())
{
   println(p);
}

Math calculation

1+Math.sin(1)*2

Multiply last results by 2

$result*2