Book Image

GateIn Cookbook

By : Ken Finnigan, Luca Stancapiano, Piergiorgio Lucidi
Book Image

GateIn Cookbook

By: Ken Finnigan, Luca Stancapiano, Piergiorgio Lucidi

Overview of this book

<p>Enterprises have websites constructed in different web frameworks and the need for them to work together cohesively. GateIn will provide the solution to effectively integrate them into a single website. GateIn is an open source website framework that does more than a web framework by letting you use your preferred one.<br /><br />This GateIn Cookbook provides solutions whether you're planning to develop a new GateIn portal, migrate a portal, or only need to answer a specific query. It is filled with bite-sized recipes for quick and easy problem resolution. From the beginning to the end it will guide you through the process of configuring and securing a portal, managing content and resources, and developing applications as you go.<br /><br />Beginning with installation and configuration, the book swiftly moves on to discussing content, users, and security. The second half covers all aspects of developing on a portal, such as portlets, gadgets, migration, and integration.<br /><br />The goal of the book is to show GateIn as an open source website framework piece by piece. Starting with simple recipes, you will see each step analyzed with code examples and images, before progressing to more advanced recipes.<br /><br />This GateIn Cookbook will help you with a quick approach to building portals.</p>
Table of Contents (19 chapters)
GateIn Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a RichFaces 4 portlet


This recipe shows how to create a new order list portlet, like the one from Using portlet events in JSF 2, but using components from RichFaces 4.

Getting ready

The following are required for this recipe:

  • Apache Maven

  • An IDE of your choice

  • GateIn-3.2.0.Final-jbossas7-preview

  • Order-JSF project from Creating a JSF 2 portlet and Using portlet events in JSF 2

How to do it...

To create a RichFaces portlet for displaying the active orders:

  1. Inside the project's pom.xml, add the following dependency management section:

      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces-bom</artifactId>
            <version>4.2.2.Final</version>
            <scope>import</scope>
            <type>pom</type>
          </dependency>
        </dependencies>
      </dependencyManagement>

    Note

    At the time of writing, the latest release of RichFaces...