Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 69578 invoked from network); 23 May 2005 06:52:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 May 2005 06:52:27 -0000 Received: (qmail 1516 invoked by uid 500); 23 May 2005 06:52:24 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 1478 invoked by uid 500); 23 May 2005 06:52:23 -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 1461 invoked by uid 99); 23 May 2005 06:52:23 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from gw2.havleik.no (HELO gw.havleik.no) (217.8.139.61) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 22 May 2005 23:52:22 -0700 Received: from [127.0.0.1] (gandalf.havleik.no [10.1.1.1]) by gw.havleik.no (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id j4N6qDH9009386 for ; Mon, 23 May 2005 08:52:15 +0200 Message-ID: <42917D9F.80108@havleik.no> Date: Mon, 23 May 2005 08:52:15 +0200 From: =?ISO-8859-1?Q?Bj=F8rn_T_Johansen?= Organization: Havleik Consulting User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: MyFaces Discussion Subject: Best practice? X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-HavleikConsulting-MailScanner-Information: Please contact Havleik Consulting for more information X-HavleikConsulting-MailScanner: Found to be clean X-MailScanner-From: btj@havleik.no X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I was wondering what's the best way of handling the following: - A managed bean need to be "filled" with data from a database using DAO methods; is it best just to pass the managed bean as parameter og should one use another VO bean and populate the managed bean from the VO bean? - when moving to a page, some fields need to be filled with existing values, is this best done in the action method that "calls" the new page and value binding against a managed bean for that page or is there another better way of doing this? Regards, BTJ -- ----------------------------------------------------------------------------------------------- Bj�rn T Johansen btj@havleik.no ----------------------------------------------------------------------------------------------- Someone wrote: "I understand that if you play a Windows CD backwards you hear strange Satanic messages" To which someone replied: "It's even worse than that; play it forwards and it installs Windows" -----------------------------------------------------------------------------------------------