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

Changing the category of a gadget


This recipe will guide you through the process of modifying the default category of an existing gadget.

Getting ready

Prepare to use the web console, XML configuration, and a few lines of Java code.

How to do it...

Follow these to change the category of a gadget:

  1. If you created the gadget from the web console, you can choose the category, instead of using the default category with name Gadgets. Simply select the created gadget from the Application Registry. You will see a red link inside the description:

  2. Click on the red link shown above to change the category. You will see the category selection form:

  3. To change the category in the configuration, you need to write to the portal/WEB-INF/conf/portal/application-registry-configuration.xml and manually add the new category and a definition of the application for the created gadget. Here is an example that adds the Skype Talk gadget definition in the Application Registry Service:

    <object-param>
       <name&gt...