Bala,

see here:
http://incubator.apache.org/myfaces/docs/gettingstarted.html

it is right to use just the MyFaces' jars.

-Matthias

[EMAIL PROTECTED] wrote:
Thanks a lot.

I'll try that probably early next week as I really like this tree. For
my prototype today, I'm going ahead with just Myfaces jar files.

Regards
Bala


-----Original Message----- From: Sean Schofield [mailto:[EMAIL PROTECTED]

Sent: Friday, March 11, 2005 9:57 AM
To: MyFaces Discussion
Subject: Re: Tree2 and JSF RI


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.jav
a:
1117)



javax.faces.component.UIViewRoot.restoreState(UIViewRoot.java:509)



javax.faces.component.UIComponentBase.processRestoreState(UIComponentB
as
e.java:999)



org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponen
tS
tate(JspStateManagerImpl.java:165)



org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(Jsp
St
ateManagerImpl.java:221)



org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspV
ie
wHandlerImpl.java:298)



org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.j
av
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(Exten
si
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.





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.


-- Matthias We�endorf Aechterhoek 18 DE-48282 Emsdetten Germany phone: +49-2572-9170275 cell phone: +49-179-1118979 email: matzew AT apache DOT org url: http://www.wessendorf.net callto://mwessendorf (Skype) icq: 47016183

Reply via email to