This is an attempt to port the Vaadin hibernate example application to a Liferay portlet and ported to be built using Maven. For more info, see the original project in Vaadin incubator, Developing Vaadin Applications as Liferay Portlets, Using Vaadin with Maven, and you might also want to look at the Portlets in Action samples if you are interested in using Spring 3 Portlet MVC with Liferay 6.
This example now uses the HbnContainer Vaadin Add-on.
This portlet currently will deploy but not work. To see what should be working examples of related portlets, see sample-hibernate-portlet in Liferay 6.0.6 or vaadin-mail-portlet in trunk of Liferay.
Feel free to contact me via GitHub about it/submit issues to this GitHub project or leave a note on this Vaadin forum thread.
This is only quick if you've done most of it already and know what you are doing, and assumes *nix.
For the purposes of this example, we'll assume you extract Liferay to your home directory:
cd ~
unzip liferay-portal-tomcat-6.0.6-20110225.zip
cd ~
git clone git://github.com/garysweaver/vaadin-hibernate-portlet.git
cd ~/vaadin-hibernate-portlet
mvn clean install
cd ~/liferay-portal-6.0.6/tomcat-6.0.29/
./startup.sh
This may open up a browser, when it is done. Otherwise, verify portal started correctly or "fix" and repeat:
tail -f ~/liferay-portal-6.0.6/tomcat-6.0.29/catalina.out
cp ~/vaadin-hibernate-portlet/target/vaadin-hibernate-portlet.war ~/liferay-portal-6.0.6/tomcat-6.0.29/deploy/
tail -f ~/liferay-portal-6.0.6/tomcat-6.0.29/catalina.out
-
Go to: http://localhost:8080/
-
Login as the default Liferay user: username: [email protected] password: bruno
-
Click Add at the very top left and then below that choose More...
-
Click Vaadin
-
Click to add vaadin-hibernate-portlet
All modifications to the original application are released under the copyright (c) 2011 Gary S. Weaver, released under the MIT license. The original application's license is unknown but is open source and probably falls under the Apache 2.0 license. Vaadin is released under the Apache 2.0 license.