Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 12823 invoked from network); 6 Mar 2006 13:59:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Mar 2006 13:59:06 -0000 Received: (qmail 64898 invoked by uid 500); 6 Mar 2006 13:59:51 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 64877 invoked by uid 500); 6 Mar 2006 13:59:50 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Received: (qmail 64866 invoked by uid 99); 6 Mar 2006 13:59:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2006 05:59:50 -0800 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE,MIME_BOUND_NEXTPART,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [204.127.200.81] (HELO sccrmhc11.comcast.net) (204.127.200.81) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2006 05:59:49 -0800 Received: from smailcenter71.comcast.net ([204.127.205.171]) by comcast.net (sccrmhc11) with SMTP id <2006030613592801100kp41ge>; Mon, 6 Mar 2006 13:59:28 +0000 Received: from [207.50.77.35] by smailcenter71.comcast.net; Mon, 06 Mar 2006 13:59:22 +0000 From: srinivas-s@comcast.net To: "Beehive Users" Subject: Re: shared flow references Date: Mon, 06 Mar 2006 13:59:22 +0000 Message-Id: <030620061359.10141.440C403A0000432B0000279D22007636929CD39C0E900702079D9C@comcast.net> X-Mailer: AT&T Message Center Version 1 (Aug 4 2005) X-Authenticated-Sender: c3Jpbml2YXMtc0Bjb21jYXN0Lm5ldA== MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="NextPart_Webmail_9m3u9jl4l_10141_1141653562_0" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --NextPart_Webmail_9m3u9jl4l_10141_1141653562_0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Is this a bug in current version of beehive? -------------- Original message -------------- From: Eric Charles | U-Mangate > Hi > > This is how I implemented a workaround: > > Base abstract Controller: > (...snip...) > @Jpf.Controller( > simpleActions = { @Jpf.SimpleAction(name = "index", path = > "begin.do") }) > public abstract class AOSBaseController extends PageFlowController { > > //--------------------------------------------------------LifCycle > Abstract > > protected abstract AOSSharedFlow getAosSharedFlow(); > > //--------------------------------------------------------LifCycle > Concrete > > protected void onCreate() { > (...snip...); > } > > protected void beforeAction() throws Exception { > logger.debug("PageFlow invoked with action > name="+this.getCurrentActionName()); > super.beforeAction(); > } > (...snip...) > > > Concrete Controller > > @Jpf.Controller( > simpleActions = {@Jpf.SimpleAction(name = "index", path = > "begin.do") }, > sharedFlowRefs = {@Jpf.SharedFlowRef(name = "aosSharedFlow", > type = aos.shared.AOSSharedFlow.class)}) > public class ConcreteController extends AOSBaseController { > > > //-----------------------------------------------------------------Controls > > @Jpf.SharedFlowField(name = "aosSharedFlow") > private AOSSharedFlow _aosSharedFlow = null; > > > //---------------------------------------------------------------Life Cycle > > protected void onCreate() { > super.onCreate(); > } > > protected void beforeAction() throws Exception { > super.beforeAction(); > _aosSharedFlow.ensureLogin(); > } > > protected AOSSharedFlow getAosSharedFlow() { > return _aosSharedFlow; > } > > > Hope this helps, > > Eric > > > > Srinivas Surapaneni wrote: > > I had a shared flow called SharedFlowController > > > > > > > > I had a BaseController which has references to the SharedFlowController. I > > declared a pageflow level variable for the shared reference > > > > > > > > I had a DerivedController which extends the BaseController > > > > > > > > When I tried to a access the shared flow reference it is always null. It is > > working when I explicitly declared a shared flow variable in the Derived > > Controller also > > > > > > > > > > > > Is there any problem with the way I am using it? > > > > > > > > Thank You > > > > Srinivas Surapaneni > > > > > > > --NextPart_Webmail_9m3u9jl4l_10141_1141653562_0--