Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 82326 invoked from network); 14 Feb 2006 21:26:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Feb 2006 21:26:17 -0000 Received: (qmail 47229 invoked by uid 500); 14 Feb 2006 21:26:04 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 47213 invoked by uid 500); 14 Feb 2006 21:26:04 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 47202 invoked by uid 99); 14 Feb 2006 21:26:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 13:26:04 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of craigmcc@gmail.com designates 64.233.184.197 as permitted sender) Received: from [64.233.184.197] (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 13:26:03 -0800 Received: by wproxy.gmail.com with SMTP id 69so743743wri for ; Tue, 14 Feb 2006 13:25:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references; b=rTSaqlA7sHUy+vLC4RnSzuSptfa3VlcQmUf/dspH3PtQNo8UMUovKkxOCu6mMd63T3vwDM1TXLoKJPHVps/tjegG6UsafNAuNu6sOtyGeLyOeFx5Vff5FBTKFM3BUqsL8YprOWB5GN4QXpRyqpTjX402PVjDXBwX+J1qfAKSioE= Received: by 10.64.180.12 with SMTP id c12mr2084188qbf; Tue, 14 Feb 2006 13:25:42 -0800 (PST) Received: by 10.64.253.5 with HTTP; Tue, 14 Feb 2006 13:25:42 -0800 (PST) Message-ID: Date: Tue, 14 Feb 2006 13:25:42 -0800 From: Craig McClanahan Sender: craigmcc@gmail.com To: Struts Users Mailing List Subject: Re: [shale] datatables request scope In-Reply-To: <67538F65C12991418BE2801290008A070230F374@ilnort1msgusr15.ITServices.sbc.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7870_18906407.1139952342772" References: <67538F65C12991418BE2801290008A070230F374@ilnort1msgusr15.ITServices.sbc.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_7870_18906407.1139952342772 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 2/14/06, CONNER, BRENDAN (SBCSI) wrote: > > Ah, OK. Then the component from MyFaces would be more > appropriate for the problem being discussed. We've used this in several > applications, with no problems. All of our beans (except maybe two of > them, that contain more static values) are request scope, but they carry > their values through multiple pages of a conversation. All of the patterns that work for non-JSF-based webapps all work with JSF a= s well -- for example: * session scope state variables * hidden fields in input forms * request parameters on generated URLs * cookies Shale Dialogs is an instance of the first one, in that it gives you a sort of scope "longer than a request, but shorter than a session", without you having to be responsible for cleanup. It's nice when you have your application organized into a series of "conversations" with the user that have well defined beginning and ending points. One idea I've seen discussed, but haven't seen actually implemented yet, would be a JSF-specific implementation of the "flash" concept in RoR, where it keeps state information around for exactly *one* more request for you. It should be easy to do this with a specialized variable resolver or something ... I'll think about how to do that when dialogs are heavier weight than you really need. Something along the lines of this in the second page: where "savedCustomerName" was stored away (until the next request) by some TBD mechanism. - Brendan Craig ------=_Part_7870_18906407.1139952342772--