if (navImage.src.indexOf(image1)>=0) navImage.src = "" else navImage.src = "">
If you use a relative image path then image1 & image2 will be: '../../images/tree/../../images/tree/nav-minus-line-last.gif' respectively '../../images/tree/nav-plus-line-last.gif', however, navImag.src contains the full path to the image, i.e. http://localhost:7001/app/images/tree/nav-plus-line-last.gif' therefore the test in that line is always false.
To answer your question, I might be asked to change icons.
Randy Simon <[EMAIL PROTECTED]> wrote:
Why do you need the imageLocation and _javascript_Location? Are you not using
the images and _javascript_ that is packaged with tomahawk?
I think that if you do not use the packaged images and _javascript_ then
techincally you do not need the filter. I would guess that the reason it
does not work is that your imageLocation is wrong.
Randy
>From: Costa Basil <[EMAIL PROTECTED]>
>Reply-To: "MyFaces Discussion"[EMAIL PROTECTED]>
>To: MyFaces Discussion
>Subject: RE: problem with tree2 plus/minus images
>Date: Tue, 7 Mar 2006 19:52:16 -0500 (EST)
>
>Thank you for your suggestion, Randy. Here is what I did:
>
>1. If I remove the imageLocation & _javascript_Location attributes and
>install the filter, then the tree works fine, I changes the +/- images
>fine.
>
>2. If I keep the imageLocation & _javascript_Location attributes, toggling
>the +/- images doesn't work even with the filter.
>
>I think I am going to take a look at the _javascript_ portion to see why the
>heck it doesn't change the plus or the minus in case 2.
>
>Randy Simon <[EMAIL PROTECTED]> wrote: I kind of remember having the
>same problem. Did you include the myfaces
>extensions filter in your web.xml?
>
>
>
> extensionsFilter
>
>org.apache.myfaces.component.html.util.ExtensionsFilter
>
>
>
>
> extensionsFilter
> *.jsp
>
>
>
> >From: Costa Basil
> >Reply-To: "MyFaces Discussion"
> >To: [email protected]
> >Subject: problem with tree2 plus/minus images
> >Date: Tue, 7 Mar 2006 19:20:47 -0500 (EST)
> >
> >I use myfaces 1.1.1. Here is my tree2 tag:
> >
> >
> >binding="#{contacts$contactRelations.tree}"
> >value="#{contacts$contactRelations.treeData}" var="node"
>varNodeToggler="t"
> > imageLocation="../../images/tree"
> >_javascript_Location="../../js" clientSideToggle="true"
> >preserveToggle="true">
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >The problem that I have is that when I click on the icon to expand the
>node
> >the image is not changed from plus to minus. If I refresh the page the
> >plus/minus images are refreshed properly.
> >
> >Am I doing something wrong here? I did search the mailing list but I
> >couldn't find anything satisfactory. Some people complained at one point
> >that a relative imageLocation is not working properly but in my case the
> >images are there.
> >
> >Thanks
> >
> >
> >
> >---------------------------------
> >Make Yahoo! Canada your Homepage Yahoo! Canada Homepage
>
>
>
>
>
>---------------------------------
>7 bucks a month. This is Huge Yahoo! Music Unlimited
[EMAIL PROTECTED]>
7 bucks a month. This is Huge Yahoo! Music Unlimited

