Thanks again.

That works with the icons that are in the jar file. What if I want to use my own icons which are not in the jar file but are in a folder ?

The other problem is that once a node is expanded and the expanded icon is displayed it doesn't go back to the collapsed icon when the node is collapsed.


Thanks



On 12/7/05, Matias Gomez Carabias <[EMAIL PROTECTED]> wrote:

Just add the extension filter and filterMappings in your web.xml

 

  <filter>

            <filter-name>MyFacesExtensionsFilter</filter-name>

            <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>

</filter>

 

<filter-mapping>

            <filter-name>MyFacesExtensionsFilter</filter-name>

            <url-pattern>*.jsf</url-pattern>

</filter-mapping>

<filter-mapping>

            <filter-name>MyFacesExtensionsFilter</filter-name>

            <url-pattern>/faces/*</url-pattern>

</filter-mapping>

<filter-mapping>

            <filter-name>MyFacesExtensionsFilter</filter-name>

            <url-pattern>*.faces</url-pattern>

</filter-mapping>

 

 

And remove the _javascript_Location and imageLocation from the tree2 definition, so the tree2 will use the images and _javascript_ from the myfaces jar.

 

 

Regards

 

Matias

 

 

-----Original Message-----
From: sri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 07, 2005 4:04 PM
To: MyFaces Discussion
Subject: Re: tree2 and the icons

 

What do I need to do with the extensions filter ? Does it solve both the issues I mentioned in my mail ? Please give me an example or tell what to do in the filter.

Thanks a lot
Srikanth

On 12/7/05, Matias Gomez Carabias < [EMAIL PROTECTED]> wrote:

Sorry Srikanth, I didn't read all the mail. My mistake.

I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem.

 

Regards and sorry again.

 

Matias


Reply via email to