Updated plugin - Visual Web Woodstock Component Theme Builder

I have updated Visual Web Woodstock Component Theme Builder to work with Netbeans  releases. The updated  plugins available are for

For details on how to install and use the  plugin read my previous blog

Creating Netbeans 6.0 Visual Web Components Custom Theme Using Theme Builder

As I mentioned in that blog, you can directly add the jar created using Theme Builder project to any Visual Web Application. Interestingly, if you change CSS or messages in the Theme Builder project, just build the project to create the jar and refresh the page in the Web application that uses that jar. The changes should be  reflected  immediately in that page.  

Note: I noticed that the project build might fail if there are spaces in the project path. Try to create the project with out spaces in the path.


Perfect timing! I'll be using this in a day or two at work. Thanks!

Posted by Ryan de Laplante on November 04, 2007 at 12:04 AM PDT #

What a difference this Theme Builder plugin makes over creating a new theme by hand from the default theme! I'm very pleased with it and think it should be included as part of Visual Web in a future NB release. I don't know for sure, but I doubt other JSF component sets have an IDE plugin for creating custom themes.

I did encounter two issues. First I created a new theme project, made my changes and did a build. Next I went to library manager and changed the existing GuttedTheme library's jar file from my old nb551 custom theme to the new jar. I had to restart the IDE before GuttedTheme would show in the Themes node of my Visual Web projects. This is probably just an odd case.

The second issue is an old one. I created a ticket for it back in NB 5.5.1 and it is still an issue with NB6 build 200710291200.


Posted by Ryan de Laplante on November 04, 2007 at 11:57 PM PST #

@THEME_CSS@ for the html templates hasn't been replaced with the them names correctly.

Posted by guest on November 22, 2007 at 12:14 AM PST #

I installed the theme builder in RC2 and opened a project that I created in NB6 Oct 29 daily with this same plugin nbm file. When I build I get this error:

Building jar: D:\\dev\\libs\\GuttedThemeNB6\\dist\\GuttedThemeNB6.jar
java.lang.NoClassDefFoundError: com/sun/webui/theme/ResourceBundleTheme
Exception in thread "main"
D:\\dev\\libs\\GuttedThemeNB6\\nbproject\\build-impl.xml:240: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Do I need to create a new theme from scratch using the latest woodstock files? Or are the woodstock files built into the theme builder nbm?

Posted by Ryan de Laplante on November 22, 2007 at 12:42 AM PST #

I thought I responded to my question earlier but apparently not. I re-created the theme from scratch and it works now.

Posted by Ryan de Laplante on November 22, 2007 at 06:03 AM PST #

I tried this plugin but the theme that is created does not work the way the theme bundled with NB 6.0 works. My applications look different and things like the ProgressBar no longer work correctly.

Basically what I did was install the plugin and created a new theme project. I made no changes to the theme and immediately built the theme. I then created a Theme Library and added the produced theme jar file as the jar of the library.

I then set this new theme as the active theme for my application. I shutdown Glassfish and performed a clean and build and then deployed my application.

So in effect, I should have a custom theme that is exactly equivalent to the default theme. But the application does not look or work the same. It looks close, but some of my UI components are now positioned incorrectly. Also, my ProgressBar which uses Ajax is no longer working.

Any ideas? Also, where do the sources for the theme come from? Are they extracted from the Netbeans bundled woodstock jars or are they part of the plugin?

Posted by Brett Bergquist on December 03, 2007 at 11:45 PM PST #

Hi Winston,

This plug-in is very promising - great job! However, I'm having problems creating the jar files. When I build a theme project it gives me the following error:

[echo] compressJavascript
[echo] test
[java] js: "C:\\projects\\my-theme\\build\\theme\\javascript_uncompressed\\addRemove.js", line 741: Invalid assignment left-h
and side.
[java] js: }
[java] js: \^
[java] js: "C:\\projects\\my-theme\\build\\theme\\javascript_uncompressed\\addRemove.js", line 1: Compilation produced 1 synt
ax errors.

C:\\projects\\my-theme\\nbproject\\build-impl.xml:208: The following error occurred while executing this line:
C:\\projects\\my-theme\\nbproject\\build-impl.xml:551: Java returned: 3

Seems to be a problem with Rhino?

Posted by Allan Lykke Christensen on December 29, 2007 at 05:27 PM PST #

Dear Mr. Prakash

I have installed your Theme builder plugin. As I can see it, it does not work with my Netbeans 6.0. It throws exceptions on startup, and the IDE will not delete projects created with the plugin. Also, theme projects fails to build. My system is:

Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows 2000 version 5.0 running on x86; Cp1252; no_NO (nb)

I noticed that you plugin is for Beta version 2. Does this plugin support my installation?


Posted by Oddvard Myrnes on January 16, 2008 at 03:13 AM PST #

Hi Winston,

very minor correction to build-impl.xml needs the following line correcting for Linux

<jar manifest="META-INF/MANIFEST.MF"

<jar manifest="META-INF/manifest.mf"

Worked well on my machine Linux FC7, x86_64, JRE 1.6.0_04. I am just now looking forward to Netbean6.1 in the hope the lack of stability and performance have been improved.. like being back in Creator2 days \*joke\*.. well not really, just not as stable as 5.5.1

For 12 months+ your blog I feel has the best examples for VWP. Thanks for that.


Posted by James A R Brown on February 04, 2008 at 04:16 AM PST #

Ack displayed in the ide fine, built fine, but spoke too soon. Without editing anything just built the jar and added to my project, but my page only partially displays or on some pages does not display.
Any ideas? on NB6, Linux, Firefox

Posted by James A R Brown on February 07, 2008 at 06:38 AM PST #

Hello Winston,

One problem with the build project for theme with the plugin; i´m using the release version of Netbeans 6.0, available in netbeans.org.
The error message :
14/02/2008 15:15:52 com.sun.webui.theme.ThemeLogger log
SEVERE: WEBUITHEME001: No theme name or version specified and no default theme resource available.
Exception obtaining Theme instance 'teste2'.
No theme name or version specified and no default theme resource available.

Thank you
C:\\tmp\\Teste2\\nbproject\\build-impl.xml:240: Java returned: -1
BUILD FAILED (total time: 3 minutes 29 seconds)

Posted by Davi de O Custodio on February 14, 2008 at 01:24 AM PST #

Hello Davi:
I have the same problem when i build my theme project...
have you able to solve the problem?
Product Version: NetBeans IDE 6.0.1 (Build 200801291616)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; es_ES (nb)

Posted by Alex Thut on February 19, 2008 at 08:16 AM PST #

Hello Winston,
Unfortunately not yet found the solution.
Please tell me any news.

Posted by Davi on February 19, 2008 at 08:05 PM PST #

Hey Davi & Alex,

I'm having the same problem now in both 6.0.1 and 6.1 beta. Did either of you find a solution?


Posted by Sean on April 07, 2008 at 09:37 AM PDT #

Sean, Davi & Alex, I updated the themebuilder for NB 6.0.1 couple of days ago. Did you tried the latest?

I'm still working on for NB 6.1. Lots have changed in Woodstock components theme to improve performance.

Posted by guest on April 07, 2008 at 10:47 AM PDT #

Thanks for the response Winston. In hindsight, I think I was using the 6.0 version; trying it in both 6.0.1 and 6.1beta. My current project is already pretty built up in 6.1 so I will just have to work with themes the old fashioned way for now I suppose.
A little work never hurt anyone =)

Good lookin' out on all this,

Posted by Sean on April 08, 2008 at 01:47 AM PDT #


Very nice plugin.
It seems that the woodstock calendar style is different in a custom theme (built with the woodstock component theme builder) than in the default theme. It is displayed in the page, not as a popup even if I have not modified anything in the new theme.

Does anyone know a workaroud to this?

Posted by Cristina on May 21, 2008 at 12:58 AM PDT #

Great plugin! 'works smoothly with my Netbeans 6.0.1, even in brazilian portuguese!! I'm eagerly waiting for the 6.1 version. It's worth saying that I didn't migrate to Netbeans 6.1 solely because it lacks this plugin's support...

Posted by Francisco Piragibe on May 26, 2008 at 05:41 AM PDT #

Is the 6.1 release of this tool ready?

Posted by guest on June 07, 2008 at 02:35 AM PDT #

Hi Winston,

Any ideas of when 6.1 Woodstock Theme plug-in Editor will be relased?


Posted by guest on July 27, 2008 at 12:40 AM PDT #


I appreciate the responsibility you took on by providing your module to the community. I know it takes time and effort to appease the masses for all the support and updates expected.

As for the last question, I too share the same curiosity vis-a-vis the Netbeans 6.1 release. Any timeframe?

Also, is it possible to publish a template of the source required to generate such a theme? For the time being, while waiting for your NB 6.1 release, I could manually edit, compile and assemble a jar from the various sources and resource files so to create my own custom theme jar file. Could you build one called "custom-theme" (as in "custom-theme.jar") and post it somewhere on your website?

Can anyone who has Winston's module installed on their version of Netbeans construct a default theme and post the sources?


Posted by Torin Walker on October 15, 2008 at 12:41 AM PDT #


I am new to Java and I have a web project that I "played with". In the projects view pane within my projects detail tree there is an entry for "Project Woodstock Themes". I cannot remove it! Could you tell me how to remove the theme manager details from my project? I also have references to component Libraries and Data Source References all of which are not part of this project any more. I.e. its a very simple JSP application. If this is not the right place to post asking for help please let me know where I should go for it.

Posted by Andy on October 23, 2008 at 08:47 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

« July 2016