dev@woodstock.java.net

Re: Modifying Web UI Default Theme images

From: Ratnadeep Bhattacharjee <Ratnadeep.Bhattacharjee_at_Sun.COM>
Date: Fri, 18 Apr 2008 12:01:57 -0400

This is indeed very strange. One of the optimizations we did in
Woodstock was to generate a combined image map of all the images that
are needed by the components. On the client side the right image is
selected from that combined image map at run time. I am not sure if that
has anything to do with what you are seeing. When you are rebuilding
themes can you turn off that feature and see if the problem goes away?
In build.properties set "build-combineImages" to "no".

Thanks,
-Deep.


Goran Milinovic wrote:
> Hi,
> I'm currently working on some web project and one of my tasks is to
> customize webuijsf:tree. The thing I wanted to do is to change handle images
> (little arrows on the left of the tree nodes which are pointed on the right
> when tree node is closed, and down when it's opened).
>
> First, I tried simply to overwrite images that represents those arrows
> (maintaining file names) in webui-jsf-suntheme.jar. It worked perfectly in
> Netbeans 6.0, but when I switched to 6.1 everything started acting weird (of
> course, for new netbeans I modified new webui-jsf-suntheme.jar in the same
> way). Problem is that only first arrow is new one, rest are from original
> theme - example in images bellow.
>
> http://www.nabble.com/file/p16763506/closed.jpg
> http://www.nabble.com/file/p16763506/open.jpg
>
> I have used jar file from its original location (x:\program files\netbeans
> 6.1\visualweb2\modules\ext\webui-jsf-suntheme.jar). When I build the
> project, build folder contained new-changed version of
> webui-jsf-suntheme.jar (the one I need).
>
> I even overwrote all webui-jsf-suntheme.jar on my harddrive with new
> version, and still nothing.
> Tried to clear browser cache - you guess: nothing!
> Checked every image (tree_handledownlast, tree_handledownmiddle,
> tree_handledowntop, tree_handledowntopns, tree_handlerightlast,
> tree_handlerightmiddle, tree_handlerighttop, tree_handlerighttopns) and all
> of them are NEW.
>
> Tried to deploy app in IE7, FF2.0.0.13, Safari 3.1 = all act the same -
> wrong.
> IE6 shows new images but layout is mixed up.
>
> Don't know if this is a bug, or maybe I missed somthing.
> I'm using Netbeans 6.1 rc1, Sun Java System Application Server 9.1 u1.
>
> Has anyone tried something like this?
> Is there any cache folder for SJSAS 9.1 u1, or maybe Netbeans?
>
> Thanks a lot!
> Goran
>
>