2 Replies Latest reply on Oct 31, 2009 7:04 AM by Sudha Perumal

    Parameter Passing

    Sudha Perumal Newbie

      I have to pass parameter to someother xhtml page.

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

      How to set parameter value in corresponding xml?
        • 1. Re: Parameter Passing
          Sachin Parnami Newbie

          You can try

          this in your Show_Category.seam
          <h:outPutText value="#{param.CategoryId}" />

          Hope it helps

          • 2. Re: Parameter Passing
            Sudha Perumal Newbie
            But that item value dont pass in URL,Then How can I show in Show_Category.seam.

            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}"/>

            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"
                  xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"

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

                           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?