Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 85045 invoked from network); 22 Mar 2007 14:01:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 14:01:24 -0000 Received: (qmail 4688 invoked by uid 500); 22 Mar 2007 14:01:24 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 4628 invoked by uid 500); 22 Mar 2007 14:01:24 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 4597 invoked by uid 99); 22 Mar 2007 14:01:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 07:01:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of weber.volker@googlemail.com designates 64.233.184.239 as permitted sender) Received: from [64.233.184.239] (HELO wr-out-0506.google.com) (64.233.184.239) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 07:01:14 -0700 Received: by wr-out-0506.google.com with SMTP id i23so642268wra for ; Thu, 22 Mar 2007 07:00:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=uW3oaODDtUDrBm0SRKhmEmVmAAj+9pItg71kIz1OlpHBO0spx8J7H9eWvk/OXaIxITNVsrrMDV9ibwQyPydsaV7Lijy+7KjzVjLSWAIHAVOMN7gbm3+8LNRS+qTfC8HLrJW6a+NiuEV17z5mS1T9wyMydsG5d3I0Yxkid2UD5WQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=BMYpyleIwpqpEe1lQb1FFRb7poKfp6ThrjuQIcHl1nKJzx77CgJtx+DuzraeOhsYNU4uOR4zxEB5gdyv8buBpEYlvSuU2EJlQ4WpN2ZIOKgI+e0uSQ1KkfwZ45dn2dLc/lnMtUpB4BUC98G/VJfTpkCh0y4URgr0VeifOZe1Ea4= Received: by 10.115.19.16 with SMTP id w16mr610710wai.1174572053276; Thu, 22 Mar 2007 07:00:53 -0700 (PDT) Received: by 10.114.154.7 with HTTP; Thu, 22 Mar 2007 07:00:52 -0700 (PDT) Message-ID: <9a64d7d10703220700m7ad73f94xc6111469240c47c6@mail.gmail.com> Date: Thu, 22 Mar 2007 15:00:52 +0100 From: "Volker Weber" Sender: weber.volker@googlemail.com To: "MyFaces Discussion" , joe@joereger.com Subject: Re: Flow from backing bean to page while also initializing second backing bean? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46027BA5.3060309@oma.be> X-Google-Sender-Auth: 2538d0dbdbbb6adf X-Virus-Checked: Checked by ClamAV on apache.org Hi, > situations it makes more sense to have separate beans. I'm surprised that > there's no way to call custom initializers. In EJB there's a @PostConstruct > annotation that calls custom logic after the bean manager creates the bean. not realy a custom initializer, but according to the spec the managed properties are set in the order they appear in the config. so you can add a dummy property as the last one which does the initialization. e.g.: ... init true public void setInit(String dummy) { // call init method init(); } this is what we do if needed. Regards, Volker