2 Replies Latest reply on Apr 8, 2013 10:49 AM by jsperafico

    Richfaces 4: collapsiblePanel won't collapse for nothing in the world

    jsperafico

      Hi everyone!

       

      I read through the related topics in the Richfaces community and I couldn't find a solution for my problem.

      The thing is my panel wont collapse.

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                               xmlns:ui="http://java.sun.com/jsf/facelets"
                               xmlns:h="http://java.sun.com/jsf/html"
                               xmlns:f="http://java.sun.com/jsf/core"
                               xmlns:a4j="http://richfaces.org/a4j"
                               xmlns:rich="http://richfaces.org/rich"
                               xmlns:c="http://java.sun.com/jsp/jstl/core">
        
                <h:head>
                          <link type="text/css" rel="stylesheet" href="css/estilos.css"/>
                          <title>Test</title>
                </h:head>
                <f:view>
                          <h:form id="form">
                                    <rich:collapsiblePanel expanded="true" switchType="client" header="Test" >
                                              <p> This should be working! </p>
                                      </rich:collapsiblePanel>
                          </h:form>
                </f:view>
      </ui:composition>
      

       

      I tried to use the following switchTypes: client, ajax, server; all of them without success.

       

      Here is my web.xml

       

      <?xml version="1.0"?>
      <web-app version="3.0" 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_3_0.xsd">
                <display-name>TestJSF</display-name>
      
                <context-param>
                          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                          <param-value>client</param-value>
                </context-param>
        
                <context-param>
                          <param-name>org.richfaces.skin</param-name>
                          <param-value>blueSky</param-value>
                </context-param>
        
                <context-param>
                          <param-name>org.richfaces.enableControlSkinning</param-name>
                          <param-value>true</param-value>
                </context-param>
        
                <context-param>
                          <param-name>org.richfaces.push.jms.enabled</param-name>
                          <param-value>true</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>*.xhtml</url-pattern>
                </servlet-mapping>
      </web-app>
      

       

      And finally here is my classpath libraries:

      Classpath.PNG

       

      Well this is all I have, could you please help me out with this?

      Thank you very much for your assistence!