Creating Netbeans 6.0 Visual Web Components Custom Theme Using Theme Builder

One of the difficult tasks of Netbeans 6.0 Visual Web Pack (VWP) application development is to create a custom theme for the bundled Java Server Faces Components (Woodstock Components). Nobody wants to see their web application visually appear similar to hundred of Web Applications developed using Netbeans 6.0 VWP. But VWP theme structure is complex and no tools are available to support creation of a new custom theme which would help to make the pages look different.

This is my modest attempt to create such tool that helps the users to create a custom theme. Once installed, the tool adds a project type called Woodstcok Components Theme Builder under the category web. A new project can be created using that project type. The created project displays lists of theme resources in the project explorer that can edited. Finally to create the edited custom jar, just build the project.

Woodstock Components Theme Builder for Netbeans 6.0 M10 can be downloaded from here.

Updates available for later releases of Netbeans

Note: I developed this tool during my spare time, so it did not go through any rigorous QA tests like other Netbeans 6.0 VWP modules.

Steps to create a custom theme using Theme Builder

  • Download and install themebuilder.nbm
    Theme Builder Autoupdate
  • Create a new project using File -> New Project -> Web -> Woodstock Components Theme Builder
    Woodstock Components Theme Builder
  • The wizard lets you specify the theme name and theme package. The created project has logical view of the theme resources such as CSS, images, JavaScript and messages. The project is filled with resources from the default theme bundled with Netbeans 6.0 VWP.
  • Modify the resources using available editors such as CSS Editor. JavaScript Editor and Message Editor.
  • Once the resources are edited using available editor, build the theme jar using the build command via the project context menu or the build icon in the toolbar. The build creates the theme jar in the distribution (dist) directory of the project.

Step to use the custom theme created using Theme Builder

  • Create a new Library under the category Theme Libraries. Browse and add the theme jar created using Theme Builder project.
  • The added theme library automatically appears in the project explorer under the Themes node in a web project. Right click the node and select menu item "Set as Current Theme". This sets the custom theme as default theme for your project.
Comments:

Great work! You should put it onto http://plugins.netbeans.org/PluginPortal/

Posted by Thomas Zillinger on August 19, 2007 at 05:11 PM PDT #

Hi..

I'm a venezuelan web developer.

Congratulations for the Theme Builder.
But there is a way to enable this theme builder on NetBeans 5.5 or 5.5.1 ?

Posted by Omer Moreno on August 19, 2007 at 11:00 PM PDT #

Wow, this is great! I thought the feature was axed for NB 6.0 because there wasn't enough time. I didn't think of having it released as a plugin separate from the official NB 6.0 release. Thanks, this feature was needed.

Posted by Ryan de Laplante on August 19, 2007 at 11:36 PM PDT #

Nice job Winston. Remember me? I was in the first Java Studio Creator Class in San Francisco and you came into the class to talk to us about the product. Back then, we discussed creating a component for JSC that did exactly this.

Thanks for following through!

Brent Ryan

Posted by Brent Ryan on August 19, 2007 at 11:49 PM PDT #

Hello,

When I try to load the plugin via the plugins screen as shown in NB 6 M10, nothing happens, the plugin never shows up in the dialog to allow me to install it. I downloaded a different plugin and it had no issues. Any help would be greatly appreciated!

Posted by Brandon Harroff on August 23, 2007 at 01:33 AM PDT #

I'm using NB6M10 and installed it fine. One small hickup in the build process where the manifest name did not match case-sensitively, but I got the standard theme to build. When adding it as a library to a project, however, it claims it is an invalid theme and won't let me set it as the theme for my project. Hm. Any ideas?

Posted by Jeff on September 12, 2007 at 05:31 AM PDT #

Great work!
But there need more fix.
Japanese JSC Project includes additional jar files,so Converter needs to copy 9 lines below from original_nbproject\\private\\private.properties
to converted_nbproject\\private\\private.properties.
file.reference.dataprovider-dt_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\dataprovider-dt_ja.jar
file.reference.dataprovider_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\dataprovider_ja.jar
file.reference.errorhandler_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\autoload\\\\ext\\\\locale\\\\errorhandler_ja.jar
file.reference.jsf-api-dt_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\jsf-api-dt_ja.jar
file.reference.jsfcl-dt_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\jsfcl-dt_ja.jar
file.reference.jsfcl_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\jsfcl_ja.jar
file.reference.sqlx_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\core\\\\locale\\\\sqlx_ja.jar
file.reference.webui-dt_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\webui-dt_ja.jar
file.reference.webui_ja.jar=C:\\\\Program Files\\\\Sun\\\\Creator2_1\\\\rave2.0\\\\modules\\\\ext\\\\locale\\\\webui_ja.jar

Posted by Sotohiro Terashima on September 25, 2007 at 02:51 PM PDT #

Hi Sotohiro, looks like you meant to put this comment at my blog about "Converting Creator Project to NB 6.0 project".

Converter should not put these localized jars in the private/private.properties. They are defined in the project.xml and project.properties as reference and when the project is opened, they should be automatically generated. In any project, if you delete the private/properties those files should be automatically created. I will investigate why the localized jars are correctly placed in the private.properties when the project is opened.

I believe, the converter may not be correctly replacing the classpath libraries in the project.properties.

Posted by Winston Prakash on September 25, 2007 at 11:48 PM PDT #

Interesting that this worked for the people above. Using NB6M10, I syntaxed. See following. Any ideas why?

Compiling 1 source file to C:\\Users\\Curtis Reinke\\Documents\\My Projects\\RKMGolfTheme\\build
C:\\Users\\Curtis Reinke\\Documents\\My Projects\\RKMGolfTheme\\src\\theme\\ThemeServiceImpl.java:24: package com.sun.webui.theme does not exist
import com.sun.webui.theme.ThemeService;
C:\\Users\\Curtis Reinke\\Documents\\My Projects\\RKMGolfTheme\\src\\theme\\ThemeServiceImpl.java:26: cannot find symbol
symbol: class ThemeService
public class ThemeServiceImpl extends ThemeService {
2 errors

Posted by Curtis J Reinke on September 26, 2007 at 05:03 AM PDT #

Lots of things have changed in the Woodstock Theme between M9 and beta1. I'm working on to provide an updated version of the module for Beta1. Stay tuned.

Posted by Winston Prakash on September 26, 2007 at 05:28 AM PDT #

hi
i have a problem. I know how to do everything for my vwp project, but I don´t know how doing my project pretty

¿where can i read about design templates for my vwp project?

¿can i use html/css designs in my vwp project? ¿how?

help me please

thanks.
sorry for my english.

Posted by javiersinnada on October 04, 2007 at 11:11 AM PDT #

> where can i read about design templates for my vwp project?

Stay tuned. I'm working on it. I will put out a plugin for Page Layouts soon.

Posted by Winston Prakash on October 04, 2007 at 01:24 PM PDT #

Hi.
thanks u for answer my last post.

in other blog u said something about download pre-created layout template. where can i find that templates ready for download?

pd: I´ll wait for the plugin layouts. I relly need that plugin.

Posted by javiersinnada on October 05, 2007 at 06:28 AM PDT #

Hi Prakash,

Its very nice to see your theme builder plugin, but unfortunately when I am trying with the latest 6.0 beta its giving the error mentioned by "Curtis J Reinke" above, If possible Can you tell us when you are planning to modify the plugin to support latest version.

Thank you.

Posted by Chandra Mouli on October 14, 2007 at 09:41 PM PDT #

Hi Chandra, unfortunately Woodstock team has modified lots of stuff in the theme, to support theme for client side rendering. Netbeans 6.0 Beta2 will be released in a week or two. I'm planning to update the ThemeBuilder plugin for Netbeans Beta2.

Posted by Winston Prakash on October 15, 2007 at 12:04 AM PDT #

Hi Winston,

Can you please let me know if there is any way to use themebuilder in Netbeans 5.5 but it cannot be installed due to dependency on Execution API> 1.10 which is currently 1.831 in my system?

Hope you find time to answer my query.

Thanks in Advance.

Posted by Amit Bachchan on October 20, 2007 at 05:19 PM PDT #

Does the version of Theme Builder currently available for download now support the new WoodStock components from NB6 Beta 2?

Thanks,
Ryan

Posted by Ryan de Laplante on October 31, 2007 at 01:14 AM PDT #

Not yet. I'm working on it. Lots of things have changed in woodstock side for performance (combining CSS, compressing Javascript etc) and I'm working on to bring those changes in to ThemeBuilder.

Posted by Winston Prakash on October 31, 2007 at 05:00 AM PDT #

The Web Application project template in Netbeans 6B2 has no Themes node...
How can Themes be changes?

Posted by Tim Davenport on November 13, 2007 at 09:47 PM PST #

Tim, if you have created a Visual Web project (selected Visual JSF framework), then theme node must appear. Try with a fresh user dir.

Posted by Winston Prakash on November 13, 2007 at 11:33 PM PST #

i am using NB6.0 ,in this some times design alignment has been changed automatically , when restart NB , how to solve?

Posted by Ashok on November 14, 2007 at 01:51 PM PST #

hi , is there themebuilder.nbm for netbeans 5.5.1

Posted by ashok on November 14, 2007 at 01:54 PM PST #

Hi Prakash, Thanks for your updated theme builder plug-in for NB6 Beta 2, but I have got the below error when I create a theme project and just build it without any modification to the files.

-------------------------------
Combined JavaScript file 'C:\\Documents and Settings\\Administrator\\My Documents\\NetBeansProjects\\MyTheme\\build\\theme\\javascript_uncompressed\\widget\\widgetBase.js'
Combined JavaScript file 'C:\\Documents and Settings\\Administrator\\My Documents\\NetBeansProjects\\MyTheme\\build\\theme\\javascript_uncompressed\\wizard.js'
compressed-js-uptodate:
compressJavascript:
js: Couldn't open file "and".
C:\\Documents and Settings\\Administrator\\My Documents\\NetBeansProjects\\MyTheme\\nbproject\\build-impl.xml:208: The following error occurred while executing this line:
C:\\Documents and Settings\\Administrator\\My Documents\\NetBeansProjects\\MyTheme\\nbproject\\build-impl.xml:549: Java returned: 4
BUILD FAILED (total time: 22 seconds)
--------------------------------------

Posted by Chandra Mouli on November 14, 2007 at 02:45 PM PST #

manifest.mf not MANIFEST.MF

Posted by guest on November 14, 2007 at 05:30 PM PST #

Hi Chandra, the problem seems to be because of space in your path. I mentioned that in the blog. I'm expecting a fix from Woodstock team.

Posted by Winston Prakash on November 14, 2007 at 11:32 PM PST #

I was talking with Dan from the woodstock team and he says that there will be an update release with a bunch of fixes, but it will be after NB 6.0 FCS. It will probably be made available through the update center.

Posted by Ryan de Laplante on November 14, 2007 at 11:34 PM PST #

Is Theme Builder available for Netbeans 5.5?

Posted by asturianu on November 19, 2007 at 08:12 PM PST #

Thanks Prakash, now I am able to modify the theme and build it using your latest themebuilder plugin for NB6B2.

Posted by Chandra Mouli on November 20, 2007 at 05:11 PM PST #

Hi Prakash, Can you please let me know whether woodstock components have hotkey or accesskey support so that user can use keyboad. Prior to NB6 or NB5.5.1, project rave components having property for it.

Thanks,
Chandra

Posted by Chandra Mouli on November 25, 2007 at 07:23 PM PST #

Instale el plugin themebuilder y todo marcha bien hasta cuando le doy build me marca un error

Compiling 1 source file to D:\\Proyectos 2007\\Web\\build
D:\\Proyectos 2007\\Web\\src\\theme\\ThemeServiceImpl.java:24: package com.sun.webui.theme does not exist
import com.sun.webui.theme.ThemeService;
D:\\Proyectos 2007\\Web\\src\\theme\\ThemeServiceImpl.java:26: cannot find symbol
symbol: class ThemeService
public class ThemeServiceImpl extends ThemeService {
2 errors
D:\\Proyectos 2007\\Web\\nbproject\\build-impl.xml:83: Compile failed; see the compiler error output for details.

Posted by Jaider Rodriguez on November 28, 2007 at 11:08 AM PST #

Hi Jaider, I don't understand what you have written, but from your error message, the problem seems to be because of space in your path. I've mentioned that in the blog.

Don't use

D:\\Proyectos 2007\\Web\\src\\theme

rather

D:\\Proyectos2007\\Web\\src\\theme

Posted by Winston Prakash on November 29, 2007 at 01:33 AM PST #

Thanks for your work on this plugin.
I am using NB 6 final and also get the build error though there seem to be no spaces in the path:

Compiling 1 source file to C:\\daten\\NetBeansProjects\\DelbancoTheme\\build
C:\\daten\\NetBeansProjects\\DelbancoTheme\\src\\theme\\ThemeServiceImpl.java:24: package com.sun.webui.theme does not exist
import com.sun.webui.theme.ThemeService;
C:\\daten\\NetBeansProjects\\DelbancoTheme\\src\\theme\\ThemeServiceImpl.java:26: cannot find symbol
symbol: class ThemeService
public class ThemeServiceImpl extends ThemeService {

Posted by Bernd Zimmermann on December 05, 2007 at 08:42 PM PST #

Winston,

As a 12 year developer implementing Microsoft technologies and now making the move to Open Source/Commercial Support using NetBeans 6 as my preferred IDE, this plug-in is sorely needed. I note that NetBeans web developers only have 2 VWP styling options: (1) override base theme classes through '/resources' css files or (2) build a custom JAR. After performing a few Google searches, I thankfully stumbled across your blog post. I will pull down your Woodstock Theme Builder tonight and see if it truly allows custom themes. In the meantime, definitely let the NetBeans Team know that this feature is critical to building distinctive web applications. Thanks for your excellent work!

Posted by Chris Alexander on December 18, 2007 at 12:10 AM PST #

I downloaded, installed and edited the textbox css class (TxtFld_sun4) as a test. When I compiled the project the build failed with the following console output (the '...' abbreviates to limit to 1600 characters):

Created dir: /home/chris/NetBeansProjects/bcntheme/build/theme
Copying 377 files to /home/chris/NetBeansProjects/bcntheme/build
Copied 38 empty directories to 2 empty directories under /home/chris/NetBeansProjects/bcntheme/build
Copying 2 files to /home/chris/NetBeansProjects/bcntheme/build/META-INF
Compiling 1 source file to /home/chris/NetBeansProjects/bcntheme/build
css-uptodate:
combineCSS:
...
javascript-uptodate:
copyJavascript:
Created dir: /home/chris/NetBeansProjects/bcntheme/build/theme/javascript_uncompressed
Copying 88 files to /home/chris/NetBeansProjects/bcntheme/build/theme/javascript_uncompressed
combined-js-uptodate:
combineJavascript:
...
javascript-uptodate:
copyJavascript:
combined-js-uptodate:
combineJavascript:
Combining /home/chris/NetBeansProjects/bcntheme/build/theme/javascript_uncompressed/webui-all.js
Combined JavaScript file
...
javascript-uptodate:
copyJavascript:
combined-js-uptodate:
combineJavascript:
...
javascript-uptodate:
copyJavascript:
combined-js-uptodate:
combineJavascript:
...
compressed-js-uptodate:
compressJavascript:
...
images-uptodate:
combineImages:
CombineImages: WARNING: key == LOGIN_PRODNAME has no path value.
CombineImages: WARNING: key == TABS_LEVEL2_SELECTED has no path value.
CombineImages: WARNING: key == LOGIN_BACKGROUND has no path value.
CombineImages: WARNING: key == ACCORDION_COLLAPSE_ALL_ALT has no path value.
CombineImages: WARNING: key == TABS_MINITAB_BACKGROUND has no path value.
CombineImages: WARNING: key == MASTHEAD_CORPNAME has no path value.
CombineImages: WARNING: key == FC_COLUMN_HEADER_SORT_GRADIENT_ALT has no path value.
CombineImages: WARNING: key == TABS_LEVEL1_SELECTED has no path value.
CombineImages: WARNING: key == LEFT_PANE_GRADIENT has no path value.
CombineImages: WARNING: key == ACCORDION_EXPANDED_ALT has no path value.
CombineImages: WARNING: key == MASTHEAD_CORPLOGO has no path value.
CombineImages: WARNING: key == TABS_LEVEL3_DESELECT has no path value.
CombineImages: WARNING: key == FC_COLUMN_HEADER_HOV_GRADIENT_ALT has no path value.
CombineImages: WARNING: key == ACCORDION_EXPAND_ALL_ALT has no path value.
CombineImages: WARNING: key == TABS_LEVEL1_SELECTED_1LEV has no path value.
CombineImages: WARNING: key == TABS_LEVEL1_BACKGROUND has no path value.
CombineImages: WARNING: key == TABS_LEVEL2_BACKGROUND has no path value.
CombineImages: WARNING: key == TABS_LEVEL3_BACKGROUND has no path value.
CombineImages: WARNING: key == TABS_LEVEL2_DESELECT has no path value.
CombineImages: WARNING: key == ACCORDION_TAB_MENU_ICON has no path value.
CombineImages: WARNING: key == OK_ALARM_INDICATOR_ALT has no path value.
CombineImages: WARNING: key == VERSION_CORPLOGO has no path value.
CombineImages: WARNING: key == FAVICON_IMAGE has no path value.
CombineImages: WARNING: key == ACCORDION_REFRESH_ALT has no path value.
CombineImages: WARNING: key == OK_ALARM_INDICATOR_WIDTH has no path value.
CombineImages: WARNING: key == HELP_BTNNAV_GRADIENT has no path value.
CombineImages: WARNING: key == WIZARD_SUBTITLE_BACKGROUND has no path value.
CombineImages: WARNING: key == ACCORDION_TAB_MENU_ICON_ALT has no path value.
CombineImages: WARNING: key == MASTHEAD_STATUS_AREA_SEPARATOR has no path value.
CombineImages: WARNING: key == CORPLOGO has no path value.
CombineImages: WARNING: key == ACCORDION_COLLAPSED_ALT has no path value.
CombineImages: WARNING: key == FC_COLUMN_HEADER_SORT_HOV_GRADIENT_ALT has no path value.
CombineImages: WARNING: key == OK_ALARM_INDICATOR_HEIGHT has no path value.
CombineImages: WARNING: key == FC_COLUMN_HEADER_GRADIENT_ALT has no path value.
Created dir: /home/chris/NetBeansProjects/bcntheme/dist
/home/chris/NetBeansProjects/bcntheme/nbproject/build-impl.xml:227: Manifest file: /home/chris/NetBeansProjects/bcntheme/META-INF/MANIFEST.MF does not exist.
BUILD FAILED (total time: 2 minutes 36 seconds)

Can you please give some guidance on how to get this working. I want to show my boss and colleagues a sample customizable Java web app for potential future development. I am using NB 6. Much thanks.

Chris

Posted by Chris Alexander on December 18, 2007 at 01:06 PM PST #

Chris, looks like a (Manifest/MANIFEST, upper case lowercase problem). You are using this with NB 6.0 right?. This works only with the NB 6.0 release. I tried on my MAC and it seems to work. Check the MANIFEST and if that doesn't help, let me know, I will take a look at it.

Posted by Winston Prakash on December 23, 2007 at 03:02 AM PST #

hello
I'm doing everything according to instruction and every time I have the same error.
On my page is nothing and on Firefox Error console I have "dojo is not defined" and "webui is not defined"
What i did wrong?
Thanks

Posted by Tom Bres on February 05, 2008 at 08:21 PM PST #

I download the Woodstcok Components Theme Builder and tray compile but i get the next message error...

Any Idea ??? help please

Created dir: C:\\Proyectos\\ThemeSefiplan\\build
Copying 459 files to C:\\Proyectos\\ThemeSefiplan\\build
Copying 2 files to C:\\Proyectos\\ThemeSefiplan\\build\\META-INF
Compiling 1 source file to C:\\Proyectos\\ThemeSefiplan\\build
C:\\Proyectos\\ThemeSefiplan\\src\\theme\\ThemeServiceImpl.java:24: package com.sun.webui.theme does not exist
import com.sun.webui.theme.ThemeService;
C:\\Proyectos\\ThemeSefiplan\\src\\theme\\ThemeServiceImpl.java:26: cannot find symbol
symbol: class ThemeService
public class ThemeServiceImpl extends ThemeService {
2 errors
C:\\Proyectos\\ThemeSefiplan\\nbproject\\build-impl.xml:83: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 3 seconds)

Posted by Omar García on February 13, 2008 at 09:29 AM PST #

Hi, I'm having the same problem on NetBeans IDE 6.0.1 (Build 200801291616). Below is the log error:

Copying 1 file to C:\\NetBeansProjects\\Theme\\build
Compiling 1 source file to C:\\NetBeansProjects\\Theme\\build
C:\\NetBeansProjects\\Theme\\src\\theme\\ThemeServiceImpl.java:24: package com.sun.webui.theme does not exist
import com.sun.webui.theme.ThemeService;
C:\\NetBeansProjects\\Theme\\src\\theme\\ThemeServiceImpl.java:26: cannot find symbol
symbol: class ThemeService
public class ThemeServiceImpl extends ThemeService {
2 errors

Posted by Marcelo on February 21, 2008 at 04:59 AM PST #

Add correct path to file project.properties. Like this:
libs.woodstock-components.classpath=../../../../../Program Files/NetBeans 6.0/visualweb1/modules/ext/webui-jsf.jar;../../../../../Program Files/NetBeans 6.0/enterprise4/modules/ext/commons-fileupload-1.0.jar;../../../../../Program Files/NetBeans 6.0/visualweb1/modules/ext/json-2.jar;../../../../../Program Files/NetBeans 6.0/visualweb1/modules/ext/prototype-1.5.0.jar;../../../../../Program Files/NetBeans 6.0/visualweb1/modules/ext/dojo-0.9.0.jar;../../../../../Program Files/NetBeans 6.0/visualweb1/modules/ext/jsf-extensions-common-0.1.jar;../../../../../Program Files/NetBeans 6.0/visualweb1/modules/ext/jsf-extensions-dynamic-faces-0.1.jar

Posted by kaay on February 24, 2008 at 06:54 PM PST #

For resolve a problem "'dojo' is undefined" you must specify correct path to a file javascript.properties. Like this:
dojo=/META-INF/dojo/dojo/dojo.js
dojoUncompressed=/META-INF/dojo/dojo/dojo.js.uncompressed.js
jsfx=/META-INF/com_sun_faces_ajax.js
json=/META-INF/json/json.js
jsonUncompressed=/META-INF/json/json.js.uncompressed.js
prototype=/META-INF/prototype/prototype.js

Posted by kaay on February 24, 2008 at 07:00 PM PST #

Tanks, now is working fine...

Posted by Omar García on February 24, 2008 at 11:40 PM PST #

I too am getting an javascript error when i run an app saying - 'Dojo is undefined' and 'Webui is undefined'. Any idea what is the cause and what needs to be done to resolve it?

Thanks.

Posted by sc on March 02, 2008 at 02:39 PM PST #

I have not updated the ThemeBuilder for Netbeans 6.0.1, which I'm planning to do. I'm also planning to move the ThemeBuilder sources under Woodstock repository.

Posted by Winston Prakash on March 03, 2008 at 12:03 AM PST #

The default theme that comes with Visual Web JSF seems to have a problem. Before rendering, calls are made to javascript files which are present inside the theme\\META-INF directory structure. This causes isapi redirector to block access to it and hence nothing gets rendered.

Would you know of any solution or workaround for this? Thanks!

Posted by sc on March 03, 2008 at 03:33 PM PST #

Could someone please tell me how to resolve the 'Dojo is undefined and Webui is undefined' error, step by step for a newbie.
I'm using NetBeans 6.0 and Solaris 10 build 84.
Thanks in advance
Stig Hansen

Posted by Stig Hansen on March 25, 2008 at 03:10 AM PDT #

How to make the default theme work in Netbeans 6.0?

Posted by reena on March 31, 2008 at 02:42 PM PDT #

Thank you Prakash for this plugin! I'm using it successfully with Netbeans 6.0 Beta 2.
Looking forward for the Netbeans 6.0.1 version!
Can you tell us approximatively when do you plan to update the ThemeBuilder for 6.0.1?
Cheers!

Posted by Cristina on April 03, 2008 at 10:41 PM PDT #

6.0.1 version simply doesn't work - textfields aren't rendered and so on. The Javascript error console says: webui not defined, dojo not defined (webui-jsfx.js), class not defined (com_sun_faces_ajax.js) :-(

Posted by jiai on April 07, 2008 at 06:49 PM PDT #

I see, unfortunately for every point release of woodstock, the theme sources changes so much. It is too much effort to synchronize. I will push the themebuilder sources in to Woodstock repository. I decided not to support themebuilder any more, since I do not have enough cycles to spend on themebuilder.

Posted by guest on April 08, 2008 at 12:08 AM PDT #

That's understandable, your effort is appreciated anyway.

I have a question for you, on the topic of working with themes (sorry if this is in the wrong place).

In Netbeans 6.1beta I am having trouble getting access to themes other than the single main default theme. The ones that show in my library (my own custom as well as other default themes) aren't showing in my 'Themes' catagory for my project.

A more verbose description is posted in the Sun Developer forums: http://forum.java.sun.com/thread.jspa?threadID=5283790

Any ideas?

Thanks,
-Sean

Posted by Sean on April 08, 2008 at 02:25 AM PDT #

Just as I hit 'post' I think I figured it out.

'webui-jsf-suntheme.jar', the one I claimed DOES show on my Themes catagory, is JSF 1.2 compatable while all the others are JSF 1.1. My custom themes were all modifications of JSF 1.1 themes and my project is JSF 1.2.

Sorry to clutter your blog, maybe this will help someone else down the line though.

-Sean

Posted by Sean on April 08, 2008 at 02:31 AM PDT #

Sean, JSF 1.2 is fully backward compatible with JSF 1.1. The trouble is with Woodstock Components. These components are so complex, maintaining backward compatibility seems impossible. So, unfortunately, older woodstock components (JSF 1.1 based) are not compatible with newer Woodstock components (JSF 1.2 based).

Posted by Winston Prakash on April 08, 2008 at 10:32 AM PDT #

I have successfully installed and created themes with the themebuilder plugin. It's a great tool and very intuitive. I am using NetBeans6.0. However, I am having a difficult time finding information about changing themes during runtime. Is there a way to change themes during runtime? Any assistance is appreciated. Thank you

Posted by Jake on May 15, 2008 at 03:54 AM PDT #

Hi all, I am using Woodstock 4.1.1 components directly in my webapp deployed on Sun App Server 9.1. I am generating a woodstock table component, wherein the javascript tags are generated for the table but on firefox error console I get a "dojo is not defined" error message. I double-checked the javascript.properties and it points to the respective dojo libraries in /META-INF. It tried previously with 4.3 and there I got a "webui is not defined". Could someone help me in what could have possibly gone wrong.
thanks,
vijai

Posted by vijai on May 26, 2008 at 08:36 PM PDT #

I'm not sure what is exactly happening. You could use two tools to find out the problem.
- HTTP monitor in the server side
- Firebug in the browser side

Posted by Winston Prakash on May 26, 2008 at 11:40 PM PDT #

Thanks, Winston Prakash, it looks like "/theme/woodstock4_3_m1/suntheme/javascript/bootstrap.js" is returning a 404 HTTP status, "The requested resource () is not available.". Could it be due to some missing jars? i am using 4.3 now and I tried to deploy woodstock along with my webapp,as explained in the wiki, but I am unable to find certain jar files like the dojo-0.4.3-ajax.jar and the prototype\*.jar in the 4.3 components distribution. I managed to get the other required jars from the 4.3 examples.

thanks,

vijai

Posted by vijai on May 27, 2008 at 01:43 AM PDT #

Adding to my previous comment, the wiki as in "http://wiki.java.net/bin/view/Projects/DeployingWoodstock",

vijai

Posted by vijai on May 27, 2008 at 01:44 AM PDT #

The Visual web plug in works well with NetBeans 6.1, but when I transferee it to my web hotel (www.tools2lift.info/ModSag/faces/Page1.jsp, the error console in firefox says: 'webui is not defined'. Why? Can someone explain that!
Thanks in advance.
Stig

Posted by Stig Hansen on October 16, 2008 at 07:33 AM PDT #

Hello,

I install the plugin in the NetBeans 6.1. When I try to build the theme I have this error:

29 oct. 2008 09:50:37 com.sun.webui.theme.ThemeLogger log
GRAVE: WEBUITHEME001: No theme name or version specified and no default theme resource available.
Exception obtaining Theme instance 'archipelTheme'.
No theme name or version specified and no default theme resource available.
............/nbproject/build-impl.xml:240: Java returned: 255
BUILD FAILED (total time: 1 minute 13 seconds)

Do you know how to fix the problem?
Thank you for help

Posted by Edta on October 28, 2008 at 07:07 PM PDT #

My Theme project compiles fine, and gets added to the Themes library. BUt it never shows up on the Project Woodstock themes section in a visual web project. I use netbeans 6.1

Posted by Atul on October 30, 2008 at 02:29 AM PDT #

Hello Atul,

Now I arrive to compiles the theme with the plugin and I added to the Themes library. Now when I look in the "Project Woodstock Themes" I see nothing. And the arrow near the section disappears. Do you have another method for use the theme inside a web application?

Posted by Edta on October 30, 2008 at 06:19 PM PDT #

How do I request to stop getting notifications regarding new comments for this thread..?

Posted by guest on October 31, 2008 at 12:14 AM PDT #

The blog is run on Apache Roller. Read the docs to see if that is possible. If not, submit an RFE to the roller project and hopefully next time Sun upgrades Roller it will have this feature for you :)

Posted by Ryan on October 31, 2008 at 01:21 AM PDT #

hi

The Sun Java System Application Server could not start.
More information about the cause is in the Server log file.
Possible reasons include:
- IDE timeout: refresh the server node to see if it's running now.
- Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
- Incorrect server configuration (domain.xml to be corrected manually)
- Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
- Invalid installation location.
F:\\Work\\j2me\\Test4\\nbproject\\build-impl.xml:560: Deployment error:
The Sun Java System Application Server could not start.
More information about the cause is in the Server log file.
Possible reasons include:
- IDE timeout: refresh the server node to see if it's running now.
- Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
- Incorrect server configuration (domain.xml to be corrected manually)
- Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
- Invalid installation location.
See the server log for details.

Posted by vishwa on September 01, 2009 at 11:47 PM PDT #

hello
i hope you will be fineand happy.
when i build them error:
___________________________________
Created dir: C:\\JavaAjax\\Theme\\build
Copying 459 files to C:\\JavaAjax\\Theme\\build
Copying 2 files to C:\\JavaAjax\\Theme\\build\\META-INF
Compiling 1 source file to C:\\JavaAjax\\Theme\\build
C:\\JavaAjax\\Theme\\src\\theme\\ThemeServiceImpl.java:24: package com.sun.webui.theme does not exist
import com.sun.webui.theme.ThemeService;
C:\\JavaAjax\\Theme\\src\\theme\\ThemeServiceImpl.java:26: cannot find symbol
symbol: class ThemeService
public class ThemeServiceImpl extends ThemeService {
2 errors
C:\\JavaAjax\\Theme\\nbproject\\build-impl.xml:83: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 2 seconds)

___________________________________

Posted by kashani on October 06, 2009 at 08:01 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today