How to make useage of GWiki with the Apache Wicket Framework.
GWiki and Wicket can be combined to make parts of normal Wicket applications editable online.
You need the gwiki-wicket sample web/jar.
Create a normal web application with GWiki Servlet and Wicket filter.
In your application class - in the sample above HelloWorldApplication add following initialization:
The GWikiLocalizer accepts multiple localization pageIds.
If an key cannot be found in the GWiki, GWikiLocalizer delegates to the Wicket Localizer.
To use HTML fragments inside Wicket, which are served from the GWiki, you can use the GWikiLabel class.
Inside the HTML Template just define:
The HTML templates used by Wicket normally are stored in the class path of the controler class.
To manage and edit these HTML files with GWiki you can overwrite the resolving of these resources
in the init method of Application class:
TODO describe creating page.