The Red Hat Palette contains all your project tag libraries and allows you to:
Insert tags into a JSP page with one click
Add custom and 3rd party tags. How to add
We will also show how to configure options for the palette.
The palette becomes active when you open any JSP page. If you can't see the palette, select Window/Show View/Other.../Red Hat Developer Studio/Red Hat Palette from the menu bar.
The palette shown lists various tags orginized by groups. You can see JSF, JSTL and Struts tag groups.
To insert a new tag is very simple. Place the cursor in the JSP page where you want to add a tag and then click the tag in the palette. In the example below, the commandButton tag has been inserted. Notice also that if you place the cursor over any tag, a balloon tip is shown with all the tag attributes.
There are a number of ways you can configure Red Hat Palette options. There are three buttons at the top right corner:
Palette Editor
Show/Hide
Import
This allows you to edit the tags on the palette.
Show/Hide is a very useful feature that allows you to control the number of tag groups that are shown on the palette.
The Import button lets you add a custom or 3rd party tag library to Red Hat Palette. Learn how to import.
There are two ways to add any custom or 3rd party tag library to the Red Hat Palette:
Drag-and-drop from the Web Projects view
The Import button on the Red Hat Palette
Before you can add your custom component library, you need to make sure it is included in your project. Either place the .tld file or the .jar that includes your tag library under the lib folder in your project. Restart Eclipse.
The best way to add any custom library is by using the Custom Capability feature. It is also possible to just copy the Jar file directly under project WEB-INF\lib directory.
Switch to the Web Projects view and expand the Tag Libraries folder. If the view not active, select Window/Show View/Web Projects from the menu bar.
Also make sure that the Red Hat Palette is open. Select the tag library that you want to add and simply drag-and-drop it on to the Red Hat Palette.
You will see the following dialog window. As you can see Red Hat Developer Studio takes care of all the details. You just need to set the Group name to which to add this tag library. You can either add this tag library to an existing Group or just create a new one.
Once you are finished, you will see the new tag library added to the Red Hat Palette.