Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 50661 invoked from network); 17 Mar 2008 10:24:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 10:24:17 -0000 Received: (qmail 91901 invoked by uid 500); 17 Mar 2008 10:24:11 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 91848 invoked by uid 500); 17 Mar 2008 10:24:10 -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 91837 invoked by uid 99); 17 Mar 2008 10:24:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 03:24:10 -0700 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [203.91.198.74] (HELO wipro-blr-out01.wipro.com) (203.91.198.74) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 10:23:19 +0000 X-AuditID: cb5bdd57-a8db9bb000000d3e-d9-47de46a809af Received: from blr-ec-bh02.wipro.com (unknown [10.201.50.92]) by wipro-blr-out01.wipro.com (Symantec Mail Security) with ESMTP id C00A04E4007 for ; Mon, 17 Mar 2008 15:53:36 +0530 (IST) Received: from BLR-EC-MBX06.wipro.com ([10.201.50.168]) by blr-ec-bh02.wipro.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 17 Mar 2008 15:53:10 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C88818.E6249F06" Subject: RE: Bean Scope Problems Date: Mon, 17 Mar 2008 15:49:37 +0530 Message-ID: In-Reply-To: <003e01c88818$19e3a0c0$4daae240$@pfeiffer@procon.co.at> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Bean Scope Problems Thread-Index: AciIGBkituYn5XpVTEqQdsUVi/yqUgAACTyw References: <003e01c88818$19e3a0c0$4daae240$@pfeiffer@procon.co.at> From: To: X-OriginalArrivalTime: 17 Mar 2008 10:23:10.0152 (UTC) FILETIME=[E6202C80:01C88818] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C88818.E6249F06 Content-Type: text/plain; charset="us-ascii" content-transfer-encoding: quoted-printable Is there any reason you want to make the beans request? The values you required for all the request can be put in the session and keep all the beans as request. I mean create sepearet data model and save it in session. ________________________________ From: markus.pfeiffer@procon.co.at [mailto:markus.pfeiffer@procon.co.at] Sent: Monday, March 17, 2008 3:47 PM To: users@myfaces.apache.org Subject: Bean Scope Problems Hi! Every JSP has his own bean and I want that this beans have a scope of request, but if I really set request scope on every request database data get loaded =3D many database transactions. So whats the correct way? Save database data on a separate bean which have session scope or used t:saveState and other beans get data from this bean or I have to use t:saveState for all beans? I hope you understand my problem - whats the best way do to this? Regards markus The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and may= contain proprietary, confidential or privileged information. If you are not= the intended recipient, you should not disseminate, distribute or copy this= e-mail. Please notify the sender immediately and destroy all copies of this= message and any attachments. =0A= =0A= WARNING: Computer viruses can be transmitted via email. The recipient should= check this email and any attachments for the presence of viruses. The compa= ny accepts no liability for any damage caused by any virus transmitted by th= is email.=0A= =0A= www.wipro.com=0A= ------_=_NextPart_001_01C88818.E6249F06 Content-Type: text/html; charset="us-ascii" content-transfer-encoding: quoted-printable
Is there any reason you want to make the beans request?
The values you required for all the request can be= put in the session and keep all the beans as request. I mean create sepearet data m= odel and save it in session.


From: markus.pfeiffer@procon.co.at [mailto:markus.pfeiffer@procon.co.at]
Sent: Monday, March 17, 200= 8 3:47 PM
To: users@myfaces.apache.org
Subject: Bean Scope= Problems

Hi!

Every JSP has his own bean and I&nbs= p; want that this beans have a scope of request, but if I really set request scope o= n every request database data get loaded =3D many database transactions.

 

So whats the correct way?

Save database data on a separate bea= n which have session scope or used t:saveState and other beans get data from this be= an or I have to use t:saveState for all beans?

 

I hope you understand my problem = 211; whats the best way do to this?

 

Regards

markus

The information contained in this electronic= message and any attachments to this message are intended for the exclusive= use of the addressee(s) and may contain proprietary, confidential or privil= eged information. If you are not the intended recipient, you should not diss= eminate, distribute or copy this e-mail. Please notify the sender immediatel= y and destroy all copies of this message and any attachments.

=0A= =0A=

WARNING: Computer viruses can be transmitted via email. The recipient sho= uld check this email and any attachments for the presence of viruses. The co= mpany accepts no liability for any damage caused by any virus transmitted by= this email.

=0A= =0A=

www.wipro.com

------_=_NextPart_001_01C88818.E6249F06--