2 Replies Latest reply on Apr 21, 2008 6:18 AM by Ilya Shaikovsky

    rich:panelMenu and rich:comboBox

    Cle' Diggins Newbie

      Richfaces 3.2.0GA, Seam 2.0.0GA, JAS 4.2.2GA

      I seem to be having an issue with panel menu and combo box not firing the appropriate ajax calls. the panelMenu renders the first level as it is supposed to, but clicking on it does not expand the menu items defined.

      Combobox will not fire an event when the value is changed. I have tried putting an a:support tag inside the combobox tag as well as using the valueChangeListener and event a simple 'submit();' as the onchange value. None of it has worked.

      Panel Menu code

      <h:form>
       <h:panelGrid columns="2" columnClasses="cols" width="100%">
       <rich:panelMenu style="width: 100px" mode="server"
       iconExpandedGroup="disc" iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right">
       <rich:panelMenuGroup label="Activity">
       <rich:panelMenuItem label="Activity Entry" action="#{activityEntryBean.createNewEntry}">
       <f:param value="test value" name="test"/>
       </rich:panelMenuItem>
       <rich:panelMenuItem value="Modify Activity Entry" action="menuSearchActivity" />
       <rich:panelMenuGroup value="Activity Setup" >
       <rich:panelMenuItem value="Activity List" action="#{activityBean.activityList}" />
       <rich:panelMenuItem value="Attributes" action="menuAttributes"/>
       </rich:panelMenuGroup>
       <rich:panelMenuGroup value="Attribute Setup">
       <rich:panelMenuItem value="Product" action="menuProduct" />
       <rich:panelMenuItem value="Shipper" action="menuShipper" />
       <rich:panelMenuItem value="Consignee" action="menuConsignee" />
       <rich:panelMenuItem value="Job" action="menuJob" />
       <rich:panelMenuItem value="Paid Time Off" action="menuPaidTimeOffList" />
       <rich:panelMenuItem value="Customer" action="menuCustomer" />
       </rich:panelMenuGroup>
       </rich:panelMenuGroup>
       </rich:panelMenu>
       </h:panelGrid>
      </h:form>
      


      Combo box code
      <rich:comboBox rendered="false" maxlength="4" directInputSuggestions="true" width="60"
      id="menuDepartmentDropdown2" value="#{user.currentDepartment}"
      converter="#{userBean.userDeptConverter}" valueChangeListener="#{userBean.changedDepartment}">
       <s:selectItems value="#{user.departments}" var="department" label="#{department.psDeptID}" />
      </rich:comboBox>
      


      Web.xml (maybe I have listeners/filters out of order?)
      <?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>com.sun.faces.disableVersionTracking</param-name>
       <param-value>true</param-value>
       </context-param>
      
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
      
       <!-- 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>true</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>
      
       <!-- Session Timeout -->
       <session-config>
       <session-timeout>
       20 <!--minutes -->
       </session-timeout>
       </session-config>
      
       <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>
      
       <!-- Navigation -->
       <context-param>
       <param-name>javax.faces.CONFIG_FILES</param-name>
       <param-value>/WEB-INF/navigation.xml</param-value>
       </context-param>
      
      
      </web-app>