Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 13637 invoked from network); 8 Jun 2006 18:28:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2006 18:28:09 -0000 Received: (qmail 16078 invoked by uid 500); 8 Jun 2006 18:28:08 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 16043 invoked by uid 500); 8 Jun 2006 18:28:08 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 16030 invoked by uid 99); 8 Jun 2006 18:28:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 11:28:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of eric.j.schneider@gmail.com designates 64.233.184.235 as permitted sender) Received: from [64.233.184.235] (HELO wr-out-0506.google.com) (64.233.184.235) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 11:28:06 -0700 Received: by wr-out-0506.google.com with SMTP id 68so703629wra for ; Thu, 08 Jun 2006 11:27:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YkGp3efQCptBt9ll3Of3U/DZgPi4MMUtBpCwO8+lVmnflqcQiPkvLdmDQit9mdT3RWNSgrrcscMpqL+aSaM2qqVgnqgGeE/dIkzZRX8rLILRan7J/9u7W6ZqEsa42x2RPkgiBWNxuo7pz3loqN4Jgsp56+L+XKi8E8nNO7x3s+k= Received: by 10.85.13.9 with SMTP id q9mr2048211aui; Thu, 08 Jun 2006 11:27:46 -0700 (PDT) Received: by 10.85.25.5 with HTTP; Thu, 8 Jun 2006 11:27:46 -0700 (PDT) Message-ID: <150338dd0606081127l38dca7a3g2774820e78ea1f90@mail.gmail.com> Date: Thu, 8 Jun 2006 14:27:46 -0400 From: "Eric Schneider" To: cayenne-user@incubator.apache.org Subject: Re: Tapestry tutorial advice In-Reply-To: <1C041B34-2AD0-4336-ADB8-CFF4F9A7C932@objectstyle.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1C041B34-2AD0-4336-ADB8-CFF4F9A7C932@objectstyle.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Andrus, We're still using 1.4, so this is how we do it. Create a class, like Session.java (with a DataContext instance variable). In the .application file you add the following line: In MyPage.java public abstract Object getSession(); In MyPage.page I think that's it. e. On 6/8/06, Andrus Adamchik wrote: > I am reworking Cayenne tutorials for 1.2 final release. Since I > haven't used Tapestry for almost a year, and totally missed on 4.0, I > wanted to get some feedback from Cayenne/Tapestry users. What are the > good ways to bind DataContext to a session? > > Current example puts it in the visit. I would personally use a > regular web app setup with Cayenne filter (making Tapestry app just > another web app case as far as Cayenne is concerned). I wonder what > others are doing in this respect? Any HiveMind magic? > > Andrus >