In this recipe, we will demonstrate how to use JSF ID Generator. This is an Eclipse plug-in that generates customizable and unique component IDs for JSF tags. It is very useful when you write large JSF pages, and you are sick and tired of manually specifying the id
attribute.
First, you have to download the JSF ID Generator plug-in from the address http://sourceforge.net/projects/jsfidgenerator/.
We start by installing the new plug-in in Eclipse. For this, follow the given steps:
Create a folder named
/links
inside theeclipse
folder.Create a new file inside the
/links
folder and name it as sayjsf.link
(notice that you can provide any other name, only the extension is mandatory).Assuming that we have copied the JSF ID Generator into
C:\Packt\JSFKit\ID
, the contents ofjsf.link
has to be this:path=C:\Packt\JSFKit\ID
The path should point to a directory that has a
/eclipse
folder, which in turn has/features
and/plugins
as subfolders. For example, in this...