Last updated by admin 3 years ago
Last updated by narenlog 6 months ago
Wicket Plugin
If you want to use the
Wicket framework as an alternative view rendering technology on top of GORM then this plug-in is for you
Supports wicket version 1.4.9Plugin is up-to-date for Grails 1.3 using Groovy 1.7Anonymous inner classes support was added in Groovy 1.7 making it possible to use pure Wicket syntax without any workarounds.
Features
The plug-in provides the following features:
- Hot reloading of the WicketApplication class
- Hot reloading of Wicket Pages and views
- Integration with GORM and the underlying Spring container
Installing the Plug-in
The plug-in is available from the Grails central repository and can be installed with:
grails install-plugin wicket
The installation process will create a class called WicketApplication at the location grails-app/conf/WicketApplication.groovy
Pages and Views
The plug-in provides a new directory under grails-app/pages where you should create your Wicket page classes which should end in the convention "Page" if you want hot reloading to happen. For example:
import org.apache.wicket.markup.html.WebPage
import org.apache.wicket.markup.html.basic.Label
import org.apache.wicket.PageParameterspublic class HelloPage extends WebPage
{
public HelloPage(final PageParameters parameters) {
add(new Label("message", "If you see this message wicket is properly configured and running!"));
}
}
Now define the view in grails-app/views:
<html>
<body>
<span wicket:id="message">Message goes here</span>
</body>
</html>Running the Application
Start-up your app with grails run-app then access
http://localhost:8080/wicket-example/app
Download Sample Wicket Application
Follow instructions on this page to download working code :
http://grailslog.posterous.com/download-sample-wicket-grails-appHistory
Version 0.1 by Graeme Rocher :
http://graemerocher.blogspot.com/2007/05/grails-wicket-wonders-of-grails-plug-in.htmlGrails wicket discussion on upgrades :
http://grails.1312388.n4.nabble.com/Wicket-plugin-and-Grails-1-1-td1383756.htmlInstructions for upgrading the plugin to the latest version
http://grailslog.posterous.com/how-to-upgrade-grails-wicket-plugin
Last updated by admin 3 years ago
Last updated by admin 3 years ago