Gatein Portlets Plugin

  • Tags: portlets, jsr-168, jboss, jsr-286
  • Latest: 0.3
  • Last Updated: 01 October 2012
  • Grails version: 2.0 > *
  • Authors: null
0 vote
Dependency:
compile ":portlets-gatein:0.3"

 Documentation

Summary

Generate JSR-286 compliant portlet war to use it in GateIn portal 3.x. Based on original Grails portlets plugin.

Installation

grails install-plugin portlets-gatein

Description

The plugin-aims to provide a simple way of deploying Grails portlets to GateIn 3.x Portal. It is based on Portlets Plugin but updated to work with Grails 1.3.7+ and spring-mvc-portlet 3.0.5.

Create portlet

Create an grails application

grails create-app GateInTest

Install portlets plug-in

grails install-plugin portlets-gatein

Create your portlet

grails create-portlet com.myself.MyFirst

You can edit your portlet file to change its visible name etc

vi grails-app/portlets/com/myself/MyFirstPortlet.goorvy

generate portles views

grails generate-portlet-views com.myself.MyFirst

Prepare war for Jboss/GateIn

The plug-in will do all the job for you. See http://jira.codehaus.org/browse/GRAILS-6778 and http://blog.saddey.net/2010/03/06/how-to-deploy-a-grails-application-to-jboss-5 for additional info and on how to deploy a Grails application to Jboss 5.x

So just make you war and copy it in you deployment folder

grails prod war