0 Replies Latest reply on Nov 2, 2009 2:54 PM by Sudha Perumal

    How to pass parameter?

    Sudha Perumal Newbie
      In adminmenu.xhtml, I'm having


          <c:forEach var="item" items="#{productCategoryList.getCategoriesNames('Gift')}">
          <rich:menuItem submitMode="ajax" value="${item.key}" action="/gift/Show_Category.seam" />
          <f:param name="CategoryId" value="#{item.value}"/>
          </c:forEach>

      In adminmenu.page.xml, Im not having any parameters like

      <?xml version="1.0" encoding="UTF-8"?>
      <page xmlns="http://jboss.com/products/seam/pages"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"
            no-conversation-view-id="/productcatalog/ProductCategoryList.xhtml"
            login-required="true">
      </page>

      In ProductCtegoryList.java, Im having a method to get all categories in map like

                             @SuppressWarnings("unchecked")
         public Map<String,String> getCategoriesNames(String ActiveStatus)
         {
         Map<String,String> results = new HashMap<String,String>();
         ----
                              ----
         return results;
         }


      In adminmenu.xml, How to set parameter values?