Re: [jsfunit-dev] [JSFUnit Development] - Server#getManagedBeanValue not working
by Stan Silvert
Hi,
This email list is for the discussion of the development of the JSFUnit
tool. Please post user questions to the forum where I'll be glad to help:
http://www.jboss.org/index.html?module=bb&op=viewforum&f=269
Also, please include the full java code for your test class and your jsp
or xhtml markup.
If you want, you can download a working example from here:
http://www.jboss.org/community/wiki/GettingStartedGuide
Stan
b.faissal wrote:
> Hi ,
> I'm using MyFaces 1.2.7
>
> I tried toi mplements the exemple in http://labs.jboss.com/jsfunit/gettingstarted.html by I have always
> server.getManagedBeanValue("#{foo.text}") null
>
> What could be the problem ?
>
> This is my wEb.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> | <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
> | <context-param>
> | <param-name>javax.faces.CONFIG_FILES</param-name>
> | <param-value>/WEB-INF/faces-config.xml</param-value>
> | </context-param>
> | <context-param>
> | <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> | <param-value>client</param-value>
> | </context-param>
> | <filter>
> | <filter-name>JSFUnitFilter</filter-name>
> | <filter-class>org.jboss.jsfunit.framework.JSFUnitFilter</filter-class>
> | </filter>
> |
> | <filter-mapping>
> | <filter-name>JSFUnitFilter</filter-name>
> | <servlet-name>ServletTestRunner</servlet-name>
> | </filter-mapping>
> |
> | <filter-mapping>
> | <filter-name>JSFUnitFilter</filter-name>
> | <servlet-name>ServletRedirector</servlet-name>
> | </filter-mapping>
> |
> | <servlet>
> | <servlet-name>ServletRedirector</servlet-name>
> | <servlet-class>org.jboss.jsfunit.framework.JSFUnitServletRedirector</servlet-class>
> | </servlet>
> |
> | <servlet>
> | <servlet-name>ServletTestRunner</servlet-name>
> | <servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>
> | </servlet>
> |
> | <servlet-mapping>
> | <servlet-name>ServletRedirector</servlet-name>
> | <url-pattern>/ServletRedirector</url-pattern>
> | </servlet-mapping>
> |
> | <servlet-mapping>
> | <servlet-name>ServletTestRunner</servlet-name>
> | <url-pattern>/ServletTestRunner</url-pattern>
> | </servlet-mapping>
> |
> | <servlet>
> | <servlet-name>Faces Servlet</servlet-name>
> | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> | <load-on-startup>0</load-on-startup>
> | </servlet>
> | <servlet-mapping>
> | <servlet-name>Faces Servlet</servlet-name>
> | <url-pattern>/faces/*</url-pattern>
> | </servlet-mapping>
> | <servlet-mapping>
> | <servlet-name>Faces Servlet</servlet-name>
> | <url-pattern>*.faces</url-pattern>
> | </servlet-mapping>
> | <welcome-file-list>
> | <welcome-file>index.jsp</welcome-file>
> | </welcome-file-list>
> | </web-app>
> |
>
>
>
> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263213#4263213
>
> Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263213
>
15 years, 1 month