Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Vaadin Hibernate (hbncontainer) example as a Liferay 6 portlet using Maven

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 pom.xml
README.md

Vaadin Hibernate Portlet Example

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.

Quickstart

This is only quick if you've done most of it already and know what you are doing, and assumes *nix.

Download/Install Prerequisites

  1. Java (JDK)
  2. Maven
  3. Git
  4. Liferay

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 

Get a Local Copy of the Source Code Repository

cd ~
git clone git://github.com/garysweaver/vaadin-hibernate-portlet.git

Build the Portlet

cd ~/vaadin-hibernate-portlet
mvn clean install

Start Liferay

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

Deploy the Portlet

cp ~/vaadin-hibernate-portlet/target/vaadin-hibernate-portlet.war ~/liferay-portal-6.0.6/tomcat-6.0.29/deploy/

Verify Deployment

tail -f ~/liferay-portal-6.0.6/tomcat-6.0.29/catalina.out

Login to Liferay

  1. Go to: http://localhost:8080/

  2. Login as the default Liferay user: username: bruno@7cogs.com password: bruno

Add the Portlet to Your View

  1. Click Add at the very top left and then below that choose More...

  2. Click Vaadin

  3. Click to add vaadin-hibernate-portlet

License

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.

Something went wrong with that request. Please try again.