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
- Host: GitHub
- URL: https://github.com/phantomydn/wicket-console
- Owner: PhantomYdn
- License: apache-2.0
- Created: 2014-05-02T03:58:47.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-10-10T02:17:56.000Z (over 5 years ago)
- Last Synced: 2024-11-17T13:02:50.227Z (over 1 year ago)
- Topics: apache-wicket, console, developer-tools, java, wicket
- Language: Java
- Homepage:
- Size: 112 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/PhantomYdn/wicket-console) [](https://coveralls.io/r/PhantomYdn/wicket-console) [](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
```