This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107890 - Set as current theme context menu item should add "com.sun.webui.theme.DEFAULT_THEME" context param to web.xml
Summary: Set as current theme context menu item should add "com.sun.webui.theme.DEFAUL...
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 20:50 UTC by rdelaplante
Modified: 2008-03-21 16:19 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
My gutted VWP 5.5.1 theme (481.17 KB, application/octet-stream)
2007-07-17 16:08 UTC, rdelaplante
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rdelaplante 2007-06-22 20:50:45 UTC
I've been developing two separate Visual Web Pack projects in NB 5.5.1.  One uses the default suntheme, and the other
uses a custom theme I developed.  When I package both in the same EAR, they both end up using suntheme.  When I remove
the project that uses suntheme from the EAR, the other project uses the custom theme as expected.   I discussed my theme
and this issue with Richard Ratta and Winston Prakash and we found that adding a com.sun.webui.theme.DEFAULT_THEME
web.xml context param to both VWP web.xml files solves the problem. The value was suntheme in one project, and mytheme
in the other. 

I think this is an obscure bug because it only happens when two VWP projects are packaged in the same EAR and they use
different themes.  I think VWP's "Set as current theme" should automatically add the com.sun.webui.theme.DEFAULT_THEME
context param to web.xml to avoid this problem in the future.
Comment 1 _ potingwu 2007-07-16 23:40:34 UTC
Could you please attached your theme and steps to add?
Comment 2 rdelaplante 2007-07-17 16:08:09 UTC
Created attachment 45221 [details]
My gutted VWP 5.5.1 theme
Comment 3 rdelaplante 2007-07-17 16:10:57 UTC
Tools -> Library Manager -> New Library

Call it GuttedTheme, and select "Theme Library" from the dropdown list. Press OK.   

Click Add JAR/Folder... and select the file I attached. Press OK.

Go to one of the two VWP projects that live inside the same EAR.  Expand the project tree down to themes for that
project.  Right click "Gutted Theme" and select "Set as current theme".

Comment 4 _ potingwu 2007-09-27 19:21:45 UTC
Theme UI is now in the Component area.
Comment 5 rdelaplante 2007-11-05 15:58:01 UTC
This is still happening in NB6 build 200710291200
Comment 6 _ krystyna 2007-11-08 22:30:14 UTC
Changed version to 6.0.
Comment 7 Winston Prakash 2008-03-21 16:19:13 UTC
Changing this to Enhancement since user can manually enter the info in to web.xml. Currently there are no hooks with the
project utility from Theme Node, which requires additional API, so the fix may not be possible in 6.1 time frame.