users@javaserverfaces.java.net

Pass parameter to panelTab of <t:panelTabbedPane

From: ChrisC <ChrisC_at_Dive100.Freeserve.co.uk>
Date: Thu, 22 Mar 2007 05:19:12 -0700 (PDT)

Hi

I have 5 panels each of which will show data from a database.
I want to filter the records according to product type and have tried
putting a <jsp:param> in as follows.

<t:panelTab label="tab1">
        <f:subview id="inc1">
        <jsp:include page="products.jsp" flush="false">
        <jsp:param name="filter" value="all" />
        </jsp:include>
        </f:subview>
        </t:panelTab>

In my backing bean I have:

FacesContext facesContext = FacesContext.getCurrentInstance();
        Map params = facesContext.getExternalContext().getRequestParameterMap();
        String filter = (String) params.get("filter");

but filter is always null.

I have looked at <f:parameter> as well bnut this throws an error.
        
Is there any way of controlling the contents of a tabbedpanel in this wah or
do I have to point to a different page for each tab which would involve
duplication.

Any assistance greatly appreciated as usual :-)
-- 
View this message in context: http://www.nabble.com/Pass-parameter-to-panelTab-of--%3Ct%3ApanelTabbedPane-tf3446642.html#a9611830
Sent from the javaserverfaces users mailing list archive at Nabble.com.