Table of contents
There is a lot of discussion around how to develop portlets using Wicket.
If you download a Wicket distribution package, there is the "Wicket Examples" webapplication WAR enclosed.
This package is not only a webapplication, but can also be deployed as a (collection of) portlets.
Here is how to run the examples as portlets:
- Download Wicket (e.g. apache-wicket-1.4.3.zip)
- Unzip the package
- The Wicket Examples package enclosed is e.g. "wicket-examples-1.4.3.war"
Liferay
Deployment
- Login as portal admin (e.g. bruno@7cogs.com/bruno)
- Welcome Menu - Control Panel - Server - Plugins Installation - Install More Portlets
- Plugin Installer - Upload File - Browse...: add wicket-examples-1.4.3.war
- Optional context for deployment: wicket-examples
- Install
After deployment you can see the Wicket portlets listed:
- Wicket Ajax Example, Package: wicket-examples (wicket-examples), ajax
- Wicket Authentication Example, Package: wicket-examples (wicket-examples), authentication
- Wicket Authorization Example, Package: wicket-examples (wicket-examples), authorization
- Wicket BreadCrumb Example, Package: wicket-examples (wicket-examples), breadcrumb
- Wicket Captcha Example, Package: wicket-examples (wicket-examples), captcha
- Wicket ComponentReference Example, Package: wicket-examples (wicket-examples), compref
- Wicket CustomResourceLoading Example, Package: wicket-examples (wicket-examples), custom template loading
- Wicket Dates Example, Package: wicket-examples (wicket-examples), dates
- Wicket Echo Example, Package: wicket-examples (wicket-examples), echo
- Wicket FormInput Example, Package: wicket-examples (wicket-examples), forminput
- Wicket GuestBook Example, Package: wicket-examples (wicket-examples), guestbook
- Wicket Hangman Example, Package: wicket-examples (wicket-examples), hangman
- Wicket HelloBrowser Example, Package: wicket-examples (wicket-examples), hellobrowser
- Wicket HelloWorld Example, Package: wicket-examples (wicket-examples), helloworld
- Wicket Images Example, Package: wicket-examples (wicket-examples), images
- Wicket Kitten Captcha Example, Package: wicket-examples (wicket-examples), kitten-captcha
- Wicket Library Example, Package: wicket-examples (wicket-examples), library
- Wicket Linkomatic Example, Package: wicket-examples (wicket-examples), linkomatic
- Wicket Navomatic Example, Package: wicket-examples (wicket-examples), navomatic
- Wicket Nested Example, Package: wicket-examples (wicket-examples), nested
- Wicket NiceUrl Example, Package: wicket-examples (wicket-examples), niceurl
- Wicket Portlet Examples, Package: wicket-examples (wicket-examples), wicket examples
- Wicket Pub Example, Package: wicket-examples (wicket-examples), pub
- Wicket Quice Example, Package: wicket-examples (wicket-examples), guice
- Wicket Repeaters Example, Package: wicket-examples (wicket-examples), repeaters
- Wicket SignIn Example, Package: wicket-examples (wicket-examples), signin
- Wicket SignIn2 Example, Package: wicket-examples (wicket-examples), signin2
- Wicket Spring Example, Package: wicket-examples (wicket-examples), spring
- Wicket Stateless Example, Package: wicket-examples (wicket-examples), stateless
- Wicket StaticPages Example, Package: wicket-examples (wicket-examples), staticpages
- Wicket StockQuote Example, Package: wicket-examples (wicket-examples), stockquote
- Wicket Template Example, Package: wicket-examples (wicket-examples), template
- Wicket UnicodeConverter Example, Package: wicket-examples (wicket-examples), unicode converter
- Wicket UploadMulti Example, Package: wicket-examples (wicket-examples), upload multi
- Wicket UploadSingle Example, Package: wicket-examples (wicket-examples), upload single
- Wicket VelocityTemplate Example, Package: wicket-examples (wicket-examples), velocity
- Wicket Wizard Example, Package: wicket-examples (wicket-examples), abacadabra
Usage
If you want to use a portlet in a page, follow these steps:
(* Create a page: "Add Page"-Link)
- Welcome-Menu - Add Application - Undefined - Wicket Echo Example: Drag and Drop the portlet into the page
Problem: Portlet does not show up...
Solution: This might help: http://issues.liferay.com/browse/LPS-1911