6 Replies Latest reply on Jun 9, 2008 4:32 AM by ilya_shaikovsky

    Richfaces 3.2.1GA breaks my <a:commandButton

    starf666

      The following code worked fine in 3.2.1 SR1 but stopped working in 3.2.1 GA.

      <h:panelGrid columns="3" cellpadding="0px" rowClasses="alignTop" >
       <rich:panel id="searchCriteriaPanel" style="width: 200px">
       <f:facet name="header">#{messages.searchCriteria}:</f:facet>
       <h:form>
       <a:commandButton action="#{erpArtikel.search}" value="#{messages.search}"
      reRender="resultPanel">
      </a:commandButton>
       <a:commandButton action="#{erpArtikel.reset}" value="#{messages.reset}" reRender="searchCriteriaPanel,resultPanel">
      </a:commandButton>
      


      Regards,
      Martin

        • 1. Re: Richfaces 3.2.1GA breaks my <a:commandButton
          ilya_shaikovsky

          How should we read "stop working"? - Request not sent, action not called, rerender doesn't occurs?

          Please check server side processing with rich:messages and client side one with a4j:log and describe the problem more accurate.

          • 2. Re: Richfaces 3.2.1GA breaks my <a:commandButton
            starf666

            Sorry for the bad post. "Stopped working" means the action methods on the backing bean don't get called. I added the entries for richfaces and ajax4jsf to the web.xml, before that the method got called but the form data did not get submitted (a lot of radiobuttons that are mapped to a HashMap). I have myfaces tomahawk included to the (seam) project as well, if this is important. <a4j:log> does not output anything.
            I was afraid it had to do something with my web.xml and the filter configuration but everything is configured as adviced in the documentation.

            Thanks for the fast response.

            • 3. Re: Richfaces 3.2.1GA breaks my <a:commandButton
              starf666

              I just deactivated Tomahawk but that did not help. <a4j:log> does not work on the other pages as well, is there something that has to be configured first?

              • 4. Re: Richfaces 3.2.1GA breaks my <a:commandButton
                ilya_shaikovsky

                one more time... have you used phaseTracker or at list rich:messages?

                and please show us your web.xml

                • 5. Re: Richfaces 3.2.1GA breaks my <a:commandButton
                  starf666

                  It seems there is no AJAX request invoked. All debug tools I tried did not show any request being send. When I try Richfaces 3.2.0SR1 I can see <a4j:log> output, for example.

                  My web.xml:

                  <?xml version="1.0" ?>
                  <web-app xmlns="http://java.sun.com/xml/ns/javaee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                   version="2.5">
                  
                   <!-- Ajax4jsf -->
                  
                   <context-param>
                   <param-name>org.richfaces.SKIN</param-name>
                   <param-value>blueSky</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
                   <param-value>NEKO,TIDY</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>org.ajax4jsf.xmlparser.NEKO</param-name>
                   <param-value>/*</param-value>
                   </context-param>
                  
                   <filter>
                   <display-name>RichFaces Filter</display-name>
                   <filter-name>richfaces</filter-name>
                   <filter-class>org.ajax4jsf.Filter</filter-class>
                   </filter>
                  
                   <filter-mapping>
                   <filter-name>richfaces</filter-name>
                   <servlet-name>Faces Servlet</servlet-name>
                   <url-pattern>/*</url-pattern>
                   <dispatcher>FORWARD</dispatcher>
                   <dispatcher>REQUEST</dispatcher>
                   <dispatcher>INCLUDE</dispatcher>
                   </filter-mapping>
                  
                   <!-- Seam -->
                  
                   <listener>
                   <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                   </listener>
                  
                   <filter>
                   <filter-name>Seam Filter</filter-name>
                   <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
                   </filter>
                  
                   <filter-mapping>
                   <filter-name>Seam Filter</filter-name>
                   <url-pattern>/*</url-pattern>
                   </filter-mapping>
                  
                   <servlet>
                   <servlet-name>Seam Resource Servlet</servlet-name>
                   <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
                   </servlet>
                  
                   <servlet-mapping>
                   <servlet-name>Seam Resource Servlet</servlet-name>
                   <url-pattern>/seam/resource/*</url-pattern>
                   </servlet-mapping>
                  
                   <!-- Facelets development mode (disable in production) -->
                  
                   <context-param>
                   <param-name>facelets.DEVELOPMENT</param-name>
                   <param-value>false</param-value>
                   </context-param>
                  
                   <context-param>
                   <param-name>facelets.LIBRARIES</param-name>
                   <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
                   </context-param>
                  
                   <!-- Apache Tomahawk -->
                  
                   <filter>
                   <filter-name>extensionsFilter</filter-name>
                   <filter-class>
                   org.apache.myfaces.webapp.filter.ExtensionsFilter
                   </filter-class>
                   <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
                   </init-param>
                   <init-param>
                   <description>
                   Set the size limit for uploaded files. Format: 10 - 10
                   bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                   </description>
                   <param-name>uploadMaxFileSize</param-name>
                   <param-value>100m</param-value>
                   </init-param>
                   <init-param>
                   <description>
                   Set the threshold size - files below this limit are
                   stored in memory, files above this limit are stored on
                   disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g -
                   1 GB
                   </description>
                   <param-name>uploadThresholdSize</param-name>
                   <param-value>100k</param-value>
                   </init-param>
                   </filter>
                  
                   <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
                   <filter-mapping>
                   <filter-name>extensionsFilter</filter-name>
                   <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
                   <servlet-name>Faces Servlet</servlet-name>
                   <url-pattern>/*</url-pattern>
                   </filter-mapping>
                  
                   <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
                   <filter-mapping>
                   <filter-name>extensionsFilter</filter-name>
                   <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
                   </filter-mapping>
                  
                   <context-param>
                   <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
                   <param-value>false</param-value>
                   </context-param>
                  
                   <!-- JSF -->
                  
                   <context-param>
                   <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                   <param-value>.xhtml</param-value>
                   </context-param>
                  
                   <servlet>
                   <servlet-name>Faces Servlet</servlet-name>
                   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                   <load-on-startup>1</load-on-startup>
                   </servlet>
                  
                   <servlet-mapping>
                   <servlet-name>Faces Servlet</servlet-name>
                   <url-pattern>*.seam</url-pattern>
                   </servlet-mapping>
                  
                   <security-constraint>
                   <display-name>Restrict raw XHTML Documents</display-name>
                   <web-resource-collection>
                   <web-resource-name>XHTML</web-resource-name>
                   <url-pattern>*.xhtml</url-pattern>
                   </web-resource-collection>
                   <auth-constraint/>
                   </security-constraint>
                  
                  </web-app>
                  


                  • 6. Re: Richfaces 3.2.1GA breaks my <a:commandButton
                    ilya_shaikovsky

                    please give us sample in war. Seems somethign need to be changed in your configuration. buttons works in all our QA envs