You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Alexander Wallace <aw...@rwmotloc.com> on 2007/05/25 20:14:27 UTC

Re: panelTab loosing state in portlet's "edit" mode (goest to tab 0 after submit on any tab)

I have now a better diagnosis...

This behaviour is only present when the portlet is in edit mode... In  
fact i'm presenting the same exact page (actual file) in both view  
and edit mode of the portlet... The tabs work fine on view mode, but  
when you click a command button in edit mode, the tab index goes to  
0....

This must have something to do with the nonFacesRequest... Any clues  
anyone?

Thanks!

On May 25, 2007, at 4:55 AM, Jesse Alexander ((KSFD 121)) wrote:

> Are you using server- or client-state?
>
> web.xml - context-param - javax.faces.STATE_SAVING_METHOD
>
> regards
> Alexander
> From: Alexander Wallace [mailto:aw@rwmotloc.com]
> 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" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
> <%@ taglib uri="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!
>