JBoss.comEnterprise Documentation

Chapter 4. JBoss Tools Palette

4.1. Palette Options
4.1.1. Palette Editor
4.1.2. Show/Hide
4.1.3. Import
4.2. Using the Palette
4.2.1. Inserting Tags into a JSP File
4.2.2. Adding Custom JSF Tags to the JBoss Tools Palette
4.3. Rich Faces Support

This chapter will introduce you to the functionality provided by JBoss Tools Palette. The Palette allows you to quickly and easily create your JSP or JSF pages. Now you can do it more faster without additional knowledge.

The JBoss Tools Palette allows you to:

The JBoss Tools Palette contains a developer's project tag libraries and provides possibility to add any tag libraries to it. Also you can choose a necessary one from the list of already existed tag libraries:

Default View of The JBoss Tools Palette

Figure 4.1. Default View of The JBoss Tools Palette


By default the Palette is represented in Web Development Perspective with four groups. If you can't see it, select Window > Show View Other... > JBoss Tools Web > JBoss Tools Palette from the menu bar.

To facilitate your work, you can configure the Palette in your own way, by selecting the corresponding icon on the Palette toolbar.

There is a possibility to configure the JBoss Tools Palette:


JBoss Tools Palette contains existing libraries of tags, thus the Palette editor is intended to work with them or create your new one, as well.

To open the editor, click on the Palette Editor icon:


The window has two parts. There is a reflected grouped list of components on the left side of the palette editor. Each group is divided into multiple groups, every of which is a tag library. The right side of the palette editor is an editing window where it's possible to change values of group or tag library attributes that you've chosen on the left part of the window.

It can also be done by right click and using Edit… option.

For example, JSF group consists of Core, Facelets, HTML tag libraries and the attributes as name, description and hidden which are available for editing:


The Palette Editor provides the following possibilities when working with existing tags or icons:

There are two ways to add any custom or 3rd party tag library to the JBoss Tools 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.

The same you can do with Import button. You can see this button at the top right side of the JBoss Tools Palette.


By clicking on the Import button you will see the Import Tag window a similar like in the Drag-and-Drop method. Set the name and prefix of the library and Library URL. Also you need to set the Group name to which you'd like to add your tag library. And like in the previous method you can add it to an existing Group or create a new one. On this Import Tag form you can use Browse... button to locate the tag library that you want to add:


JBoss Developer Studio comes with a tight integration with Rich Faces component framework. Rich Faces and Ajax4jsf in JBoss Tools Palette always exist, this palette is not dynamic and is not changed from file to file. JBoss Tools Palette supports only the last version of the Rich Faces components.

Rich Faces components, as well, as Ajax4jsf ones are already on the JBoss Tools Palette: