dev@jsftemplating.java.net

Re: Unable to run ajax in my setup

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Tue, 23 Jan 2007 11:18:28 -0800

Hi Karam,

It appears you have an older version of JSFTemplating. The DynamicFaces
integration happened after the JSF1.1Final build. This is because
DynamicFaces requires JSF 1.2.

So you should check out the latest JSFTemplating source code (cvs -q up
-dAP), rebuild it, and then copy the files in the "dist" directory to
your project's WEB-INF/lib directory.

This should solve your problem.

Thanks!

Ken

Karam Singh Badesha wrote:
> Hi Ken,
> I am unable to run the AJAX example and my non-ajax pages in my setup.
> Here is the exception I am getting for non-ajax page:
>
> java.lang.ClassCastException: com.sun.jsftemplating.layout.LayoutViewRoot
>
> Here is snap from my web.xml file:
>
> <servlet>
> <servlet-name>FacesServlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <!-- For Dynamic Faces: -->
> <init-param>
> <param-name>javax.faces.LIFECYCLE_ID</param-name>
> <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> Here is the exception for the ajax example page:
>
> javax.servlet.ServletException: ComponentType 'jsfExt:scripts' not
> defined!
>
> *root cause*
>
> java.lang.IllegalArgumentException: ComponentType 'jsfExt:scripts' not
> defined!
>
> I have following in my app lib directory:
> commons-logging.jar
> dataprovider.jar
> dojo-0.4.0-ajax.jar
> jsf-impl.jar
> jsftemplating.jar
> jsftemplating-dt.jar
> jsftemplating-dynafaces-0.1.jar
> json.jar
> webui-jsf.jar
> webui-jsf-suntheme.jar
>
> I am using Sun Appserver, the one based on glassfish. Do you see
> something obvious wrong with the above? On the other hand when I load
> the demo war from your blog page, that works fine.
>
> thanks
> Karam
>
>
>
>