Providing a theme to a Visual Web JSF Project

In this recipe, you will see how to add a theme JAR file to a Visual Web JSF Project.

Getting ready

As you probably know, a Visual Web JSF Project is developed under NetBeans IDE (you can use NetBeans IDE 6.7, for example).

Note

"The Visual Web JSF interface is too unstable to be included in 6.8. 6.7.1 is the last version that supports it." —Jeff Rubinoff, from the NetBeans team on the NetBeans forum.

How to do it...

The necessary steps to accomplish our task are:

  1. From the Tools main menu, select Libraries.
  2. In the bottom-left of the Library Manager, click New Library.
  3. In the New Library wizard, enter the theme name and choose Theme Libraries as the library type.
  4. In the Classpath tab of the Library Manager, click Add JAR/Folder.
  5. Navigate to the theme JAR file, and then click Add JAR/Folder.
  6. In the Library Manager, click OK to add the new theme library.

To set the current theme:

  1. In the Projects panel, open the ${project_name} | Themes node.
  2. Right-click the theme and choose Set As Current Theme.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset