Skip to content

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

License

Notifications You must be signed in to change notification settings

garysweaver/vaadin-hibernate-portlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: [email protected] 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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages