3 Replies Latest reply on Jan 1, 2015 8:23 AM by Michal Petrov

    ResourceServlet/resourceOptimization flag x dropDownMenu component

    Edilmar Alves Expert

      Hi,

       

      My environment is: NetBeans 8.0.1 + Glassfish 3.1.2.2 + JSF 2.1.29 + Richfaces 4.3.7 + CDI/Weld 1.1.8 + Apache CODI 1.0.6 + JPA 2 + Hibernate 4.2.7 + RDBMS Firebird 2.5.2 + JasperReports 5.5.

       

      I configured web.xml to use ResourceServlet to use minimized files, like this:

       

        <servlet>
          <servlet-name>Resource Servlet</servlet-name>
          <servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
          <servlet-name>Resource Servlet</servlet-name>
          <url-pattern>/org.richfaces.resources/*</url-pattern>
        </servlet-mapping>
        <context-param>
          <param-name>org.richfaces.resourceOptimization.enabled</param-name>
          <param-value>true</param-value>
        </context-param>
      
      

      Then, RF created minor files, all ok at this moment.

       

      But, when I run the app, the main menu (dropDownMenu) doesn't show anymore the black arrow to submenus. The submenus work.

       

      Below the menu without ResourceServlet config:

       

      RF-dropDownMenuWithoutResourceServlet.png

      and the menu with ResourceServlet config:

       

      RF-dropDownMenuWithResourceServlet.png