8 Replies Latest reply on Dec 1, 2009 2:33 PM by Stan Silvert

    Server#getManagedBeanValue not working

    faissal Boutaounte Newbie

      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>