Return-Path: Delivered-To: apmail-jakarta-tapestry-dev-archive@www.apache.org Received: (qmail 96375 invoked from network); 5 Jan 2004 19:03:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Jan 2004 19:03:20 -0000 Received: (qmail 74456 invoked by uid 500); 5 Jan 2004 19:03:10 -0000 Delivered-To: apmail-jakarta-tapestry-dev-archive@jakarta.apache.org Received: (qmail 74440 invoked by uid 500); 5 Jan 2004 19:03:10 -0000 Mailing-List: contact tapestry-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tapestry development" Reply-To: "Tapestry development" Delivered-To: mailing list tapestry-dev@jakarta.apache.org Received: (qmail 74403 invoked from network); 5 Jan 2004 19:03:08 -0000 Received: from unknown (HELO mindbridge) (213.240.204.233) by daedalus.apache.org with SMTP; 5 Jan 2004 19:03:08 -0000 Received: from [127.0.0.1] (helo=mindbridge) by mindbridge with esmtp (Exim 4.12) id HR168Z-0001T0-00 for tapestry-dev@jakarta.apache.org; Mon, 05 Jan 2004 21:02:59 +0200 Message-ID: <00ad01c3d3be$892312d0$0900a8c0@mindbridge> From: "Mindbridge" To: "Tapestry development" Subject: Property initializers Date: Mon, 5 Jan 2004 21:02:58 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AA_01C3D3CF.4C348FF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_00AA_01C3D3CF.4C348FF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am about to check in the docs and examples I was talking about, but = came across something interesting.=20 The properties defined in the component specifications via = can be initialized using the 'initial-value' = parameter. This parameter is an OGNL expression that (at the moment) is = evaluated once during the creation of the component, the value is = stored, and is later used as an initialization value whenever necessary. Shouldn't the 'initial-value' expression be evaluated every time it is = needed for initialization instead (if not invariant, of course)?=20 This latter approach allows a number of uses that the former one does = not (e.g. initializing to something that depends on the bindings), and = perhaps it is more natural to the users.=20 Should this be considered a bug? Should it be changed? (this is backward = compatible if the initial-value parameter is used as designed at the = moment).=20 -mb ------=_NextPart_000_00AA_01C3D3CF.4C348FF0--