That's probably because by default the tree2 uses the special myfaces
extension filter to map images and javascript.  I don't know whether
the extensions filter works with the RI or not.

I just added new code (today) that you should checkout and try the following:

1.) copy the javascript from tree2/resources/scripts to a 'scripts'
directory (or any directory name of your choosing) in your webapp.

2.) copy the images from tree2/resources/images to a 'images'
directory (or any directory name of your choosing)

3.) add the following attributes to your <x:tree2> tag:
javascriptLocation="scripts" and imageLocation="images"

Try that and see if it works.  I will also try tree2 tomorrow with the
RI to verify it works ok.

Regards,
sean




On Fri, 11 Mar 2005 09:35:04 +0530, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I'm using tree2 and whenever I add JSF RI jars to my lib folder, I get
> this error.
> 
> Is Myfaces components incompatible with JSF RI or something like that?
> Am I making any mistakes. When I remove the JSF jars from Sun, it works
> fine.
> Thanks
> Bala
> 
> java.lang.NullPointerException
> 
> javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:
> 1117)
> 
> javax.faces.component.UIViewRoot.restoreState(UIViewRoot.java:509)
> 
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBas
> e.java:999)
> 
> org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentS
> tate(JspStateManagerImpl.java:165)
> 
> org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspSt
> ateManagerImpl.java:221)
> 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspVie
> wHandlerImpl.java:298)
> 
> org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.jav
> a:129)
> 
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82
> )
>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> 
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
> onsFilter.java:119)
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any attachments to 
> this message are intended
> for the exclusive use of the addressee(s) and may contain confidential or 
> privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or 
> [EMAIL PROTECTED] immediately
> and destroy all copies of this message and any attachments.
>

Reply via email to