0 Replies Latest reply on Dec 8, 2006 2:11 AM by venkateswarrao boddu

    Icefaces project setup

    venkateswarrao boddu Newbie

      Hi,

      Iam trying to create an icefaces project.

      I included jars,configured web.xml,faces-config.xml.

      My problem is some thing different.

      If iam using

      <ice:commandButton id="sampleButton" value="Click" partialSubmit="true"> </ice:commandButton>

      it is rendering fine but if iam calling a bean method

      <ice:commandButton id="sampleButton" value="#{MainPage.currentDivision}" partialSubmit="true"> </ice:commandButton>

      iam unable to retrieve the value in value attribute.

      my web.xml................................


      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"
      metadata-complete="true">
      <display-name>Ice Faces Impl</display-name>

      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>server</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.iface</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.application.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>
      <context-param>
      <param-name>com.icesoft.faces.concurrentDOMViews</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>com.sun.faces.validateXml</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>com.icesoft.faces.synchronousUpdate</param-name>
      <param-value>false</param-value>
      </context-param>

      <context-param>
      <param-name>com.sun.faces.verifyObjects</param-name>
      <param-value>true</param-value>
      </context-param>


      <listener-class>
      com.icesoft.faces.util.event.servlet.ContextEventRepeater
      </listener-class>


      <!-- servlet>
      <servlet-name>HibernateTestServlet</servlet-name>
      <display-name>HibernateTestServlet</display-name>
      <servlet-class>
      com.mega.planning2.test.HibernateTestServlet
      </servlet-class>
      </servlet-->
      <!-- Faces Servlet -->
      <!--
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
      -->
      <!-- Faces Servlet Mapping -->
      <!-- <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.ifaces</url-pattern>
      </servlet-mapping> -->


      <servlet-name>Persistent Faces Servlet</servlet-name>
      <servlet-class>
      com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
      </servlet-class>
      <load-on-startup>1</load-on-startup>



      <servlet-name>Blocking Servlet</servlet-name>
      <servlet-class>
      com.icesoft.faces.webapp.xmlhttp.BlockingServlet
      </servlet-class>
      <load-on-startup>1</load-on-startup>



      <!-- JavaServer Faces Servlet Mapping -->

      <!-- servlet-mapping>
      <servlet-name>HibernateTestServlet</servlet-name>
      <url-pattern>/HibernateTestServlet</url-pattern>
      </servlet-mapping-->

      <servlet-mapping>
      <servlet-name>Persistent Faces Servlet</servlet-name>
      <url-pattern>*.iface</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>Persistent Faces Servlet</servlet-name>
      <url-pattern>/xmlhttp/*</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>Blocking Servlet</servlet-name>
      <url-pattern>/block/*</url-pattern>
      </servlet-mapping>

      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>

      </web-app>



      faces-config.xml.......................


      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
      <faces-config>
      <managed-bean>
      <managed-bean-name>DataStore</managed-bean-name>
      <managed-bean-class>demo.DataStore</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
      <property-name>items</property-name>
      <property-class>java.util.List</property-class>

      </managed-property>
      </managed-bean>

      <managed-bean>
      <managed-bean-name>MainPage</managed-bean-name>
      <managed-bean-class>demo.MainPage</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>

      <navigation-rule>
      <from-view-id>/page.jspx</from-view-id>
      <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/page.jspx</to-view-id>
      </navigation-case>
      </navigation-rule>


      <locale-config/>
      <message-bundle>errorMessages</message-bundle>


      </faces-config>

      can anybody help me to resolve this problem.

      Thanks in advance