Skip to content

PhantomYdn/wicket-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • ScriptContext is stored on server side: you can write function and then call from subsequent commands
  1. Embeddedable into your wicket pages
  2. Available throught Wicket DebugBar panel
  • Dependency to wicket-devutils is optional
  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