This content has been marked as final.
Show 2 replies
-
1. Re: Parameter Passing
sachin.parnami Oct 30, 2009 2:51 PM (in response to pmsudha)You can try
this in your Show_Category.seam <h:outPutText value="#{param.CategoryId}" />
Hope it helps
-
2. Re: Parameter Passing
pmsudha Oct 31, 2009 7:04 AM (in response to pmsudha)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}"/>
</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?