Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 31383 invoked from network); 1 Sep 2005 15:05:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 15:05:13 -0000 Received: (qmail 18410 invoked by uid 500); 1 Sep 2005 15:05:08 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 18395 invoked by uid 500); 1 Sep 2005 15:05:08 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 18379 invoked by uid 99); 1 Sep 2005 15:05:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 08:05:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 82.144.192.38 is neither permitted nor denied by domain of akundirenko@gmail.com) Received: from [82.144.192.38] (HELO el.volia.net) (82.144.192.38) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 08:05:23 -0700 Received: from ip.85.202.172.251.dyn.pool-4.broadband.voliacable.com ([85.202.172.251] helo=localhost) by el.volia.net with esmtp (Exim 4.43 (FreeBSD)) id 1EAqcj-000Pvb-8h; Thu, 01 Sep 2005 18:05:05 +0300 Date: Thu, 1 Sep 2005 18:05:05 +0300 From: Alexandr Kundirenko X-Mailer: The Bat! (v2.11.02) Personal Reply-To: akundirenko@gmail.com X-Priority: 3 (Normal) Message-ID: <1794150195.20050901180505@gmail.com> To: "Tapestry users" , akundirenko@gmail.com Subject: Beta-5. Page loading logic changed? More details In-Reply-To: <134754906.20050901173635@gmail.com> References: <134754906.20050901173635@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It seems that initial-value is assigned is piece of generated code... Because: === PageLoader.constructComponent(...) === ... //NOT initialized at this point container.finishLoad(cycle, this, containerSpec); //INITIALIZED!!! container.enterActiveState(); ... ========================================== But in our overidden methods: class FormPage extend PasePage { @Override public void enterActiveState() { //INITIALIZED super.enterActiveState(); } @Override protected void finishLoad() { super.finishLoad(); //NOT INITIALIZED EVEN AFTER SUPER CALL, WHY??? } { Or did I miss something? AK> Hello All, AK> I have persistent property which I want to initialize using AK> another property value. AK> Page spec: AK> initial-value="literal:research.model.SomeObject"/> AK> Page class: AK> /** AK> * Item which is initialized using value of #getItemClass AK> */ AK> @Persist AK> public abstract IPersistable getItem(); AK> public abstract void setItem(IPersistable item); AK> In beta-4 I tried to do it in finishLoad: AK> /** AK> * @see org.apache.tapestry.AbstractComponent#finishLoad() AK> */ AK> @Override AK> protected void finishLoad() { AK> super.finishLoad(); AK> //itemClass is NOT initialized at this point! AK> setItem(getNewFormItemInstance()); AK> } AK> But for some reason after super.finishLoad() call "itemClass" property AK> still WAS NOT initialized with intial-value. (Is it OK?) AK> I examined sources and found another place for it, which worked: AK> /** AK> * @see AK> org.apache.tapestry.AbstractComponent#enterActiveState() AK> */ AK> @Override AK> public void enterActiveState() { AK> super.enterActiveState(); AK> //worked in beta-4 AK> setItem(getNewFormItemInstance()); AK> } AK> But in beta-5 changes to propeties which are made in AK> enterActiveState() are reset in some magic way... I'm trying to find AK> where for a few hours. I set item in enterActiveState() and it is back AK> to NULL in pageBeginRender(). Is it normal behaviour? AK> Thank you, AK> aku AK> --------------------------------------------------------------------- AK> To unsubscribe, e-mail: AK> tapestry-user-unsubscribe@jakarta.apache.org AK> For additional commands, e-mail: AK> tapestry-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org