From adffaces-user-return-2027-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Sat Jan 27 02:38:39 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 81189 invoked from network); 27 Jan 2007 02:38:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jan 2007 02:38:39 -0000 Received: (qmail 54092 invoked by uid 500); 27 Jan 2007 02:38:45 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 54070 invoked by uid 500); 27 Jan 2007 02:38:45 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 54060 invoked by uid 99); 27 Jan 2007 02:38:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2007 18:38:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awiner@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2007 18:38:36 -0800 Received: by ug-out-1314.google.com with SMTP id y2so1060623uge for ; Fri, 26 Jan 2007 18:38:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rZF7TbNCOgthZ1tbPewLAgrpDDcMVCiFscejum6+AIGu5xRB/LX6lqhcFYDT3drpau6UYDi1MrApTF1Fkh9nFrn7M50q9R554BZjhsdiOYCNxCQyedA+oRE4LXmHO/JPyRMLRiv0qqfUa0GlhVuD5iIpf2rffJzaRgLC3NANL3U= Received: by 10.66.221.6 with SMTP id t6mr5266508ugg.1169865494725; Fri, 26 Jan 2007 18:38:14 -0800 (PST) Received: by 10.67.102.2 with HTTP; Fri, 26 Jan 2007 18:38:14 -0800 (PST) Message-ID: <6dac79b90701261838i32aa5d80nd970c6b63710ad79@mail.gmail.com> Date: Fri, 26 Jan 2007 18:38:14 -0800 From: "Adam Winer" To: adffaces-user@incubator.apache.org Subject: Re: Maintaining selected tab In-Reply-To: <7F48470F8BE0AC488F0000539350728901D97DF3@zeus.chordiant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7F48470F8BE0AC488F0000539350728901D97DED@zeus.chordiant.com> <7F48470F8BE0AC488F0000539350728901D97DF3@zeus.chordiant.com> X-Virus-Checked: Checked by ClamAV on apache.org You might try enabling the "change manager" in web.xml: org.apache.myfaces.trinidad.CHANGE_PERSISTENCE session ... which will do some automatic persistence of UI changes for you. -- Adam On 1/25/07, David Brunette wrote: > > A little more info on this... > > When I select a tab and navigate to the next page, the panelTabbed > is defaulted back to showing the first tab. But if I navigate back to > the first page again, then the panelTabbed is showing the tab that I > selected before. It seems as though the state is being kept, but only > page-by-page instead of for ALL pages that include that component and > bind it to the same CorePabelTabbed. > > Any ideas of what I'm missing here?? Thanks... > > Dave > > -----Original Message----- > From: David Brunette [mailto:David.Brunette@chordiant.com] > Sent: Wednesday, January 24, 2007 4:13 PM > To: adffaces-user@incubator.apache.org > Subject: Maintaining selected tab > > > > Hi. > > > > I have two simple pages, both of which have a simple > component showing the exactly same tabs and content. > On the first page, I select a different tab and then click a button that > will navigate me to the second page. When the second page loads, I > would like to have the selected tab be the same as the one that was > selected when I submitted from the first page. > > > > I tried to do this by binding the components on > each page to the same property in my session-scoped bean, but when the > second page loads, I am always defaulted to the first tab again. Does > anybody know how I can keep track of which tab is selected for my > panelTabbed component across different pages? Thanks... > > > > Dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > public class KeepTabStateBean { > > > > private CorePanelTabbed tabs; > > > > public final CorePanelTabbed getTabs() { > > return tabs; > > } > > > > public final void setTabs(CorePanelTabbed tabs) { > > this.tabs = tabs; > > } > > > > } > > The information transmitted herewith is sensitive information of > Chordiant Software or its customers and is intended only for use to the > individual or entity to which it is addressed. If the reader of this > message is not the intended recipient, you are hereby notified that any > review, retransmission, dissemination, distribution, copying or other > use of, or taking of any action in reliance upon, this information is > strictly prohibited. If you have received this communication in error, > please contact the sender and delete the material from your computer. > The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. >