Are you using server- or client-state?
 
web.xml - context-param - javax.faces.STATE_SAVING_METHOD
 
regards
Alexander 
________________________________

From: Alexander Wallace [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 25, 2007 1:40 AM
To: MyFaces Discussion
Subject: panelTab loosing state (goest to tab 0 after submit on any tab)


This is kind of wierd, we are using tomahawk 1.1.3 and My Faces 1.1.4
with latest tomahawk bridge (91) to develop portlets... The tabset works
fine in other portlets, but I can't find why it doesn't work here ...
When a submit button is pressed in, say, tab 1, after submit, the
portlet displays tab 0 ... What is causing the tabset to loose state of
what tab was selected?

Thanks in advance, jsf below:

<%@ taglib uri="http://java.sun.com/jsf/core";
<http://java.sun.com/jsf/core>  prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html";
<http://java.sun.com/jsf/html>  prefix="h" %>
<%@ taglib uri="http://java.sun.com/jstl/core";
<http://java.sun.com/jstl/core>  prefix="c"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk";
<http://myfaces.apache.org/tomahawk>  prefix="t"%>

<f:view> 
    <h:form>  
        <t:panelTabbedPane >
            <t:panelTab id="view_filters_tab" title="View Filters">
               <f:subview id="view_filters">
                    <jsp:include page="WEB-INF/jsp/view_filters.jsp" />

                </f:subview>                
            </t:panelTab>
            <t:panelTab id="download_products_tab" title="Download
Products"> 

                

            </t:panelTab>  
            <t:panelTab id="physical_products_tab" title="Physical
Products"> 
                <h:panelGrid>

                    

                </h:panelGrid>
            </t:panelTab>  
            <t:panelTab id="services_tab" title="Services"> 
                <f:subview id="services">
                    <jsp:include page="WEB-INF/jsp/services.jsp" />  
                </f:subview>
            </t:panelTab>  
            <t:panelTab id="recommendations_tab" title="Recomendations">

                <h:panelGrid>

                    

                </h:panelGrid>
            </t:panelTab>  
        </t:panelTabbedPane>

        

    </h:form>  
</f:view>

Thanks!

Reply via email to