An open API service indexing awesome lists of open source software.

https://github.com/phantomydn/wicket-console

Web Console for Apache Wicket
https://github.com/phantomydn/wicket-console

apache-wicket console developer-tools java wicket

Last synced: 11 months ago
JSON representation

Web Console for Apache Wicket

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/PhantomYdn/wicket-console.svg?branch=master)](https://travis-ci.org/PhantomYdn/wicket-console) [![Coverage Status](https://img.shields.io/coveralls/PhantomYdn/wicket-console.svg)](https://coveralls.io/r/PhantomYdn/wicket-console) [![Dependency Status](https://www.versioneye.com/user/projects/572bd903a0ca35005084085a/badge.svg?style=flat)](https://www.versioneye.com/user/projects/572bd903a0ca35005084085a)

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
4. Embeddedable into your wicket pages
5. Available throught Wicket DebugBar panel
* Dependency to wicket-devutils is optional
6. 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
```xml

ru.ydn.wicket.wicket-console
wicket-console
1.x

```

Then you should either enable Wicket DebugBar in your code.
```java
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
```java
public class MyPage extends WebPage {

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

```

Demo
----

Build project:
```bash
cd wicket-console
mvn clean install
```
Run demo:
```bash
cd wicket-console-demo
mvn jetty:run
```
Then goto http://localhost:8080/

Examples
--------
Print all properties of application
```javascript
for(var p in org.apache.wicket.Application.get())
{
println(p);
}
```

Math calculation
```javascript
1+Math.sin(1)*2
```

Multiply last results by 2
```javascript
$result*2
```