Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 85268 invoked from network); 6 Dec 2005 15:13:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Dec 2005 15:13:14 -0000 Received: (qmail 71917 invoked by uid 500); 6 Dec 2005 15:12:46 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 71848 invoked by uid 500); 6 Dec 2005 15:12:46 -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 71837 invoked by uid 99); 6 Dec 2005 15:12:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 07:12:45 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.187.200.7] (HELO smtpgw.magnasteyr.com) (193.187.200.7) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 07:12:45 -0800 Received: from mail02.magnasteyr.com (localhost [127.0.0.1]) by mail02-30025.magnasteyr.com (smtp02-I2) with ESMTP id AC8A2B2984 for ; Tue, 6 Dec 2005 16:12:21 +0100 (CET) Received: filtered by cf_outgoing_out (MSF/_dis_att_) Received: from mail02.magnasteyr.com (localhost [127.0.0.1]) by mail02-10026.magnasteyr.com (smtp02-I1) with SMTP id 99E1EFA084 for ; Tue, 6 Dec 2005 16:12:21 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5FA77.748F1D69" Subject: Execute method automatically after page has been loaded and shown to user Date: Tue, 6 Dec 2005 16:12:21 +0100 Message-ID: <36C24A541267A547A3E73D79864920F1049DA1A8@GRZMX1.io.sft.ms.steyr.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Execute method automatically after page has been loaded and shown to user Thread-Index: AcX6d3RuM+qVebSdSO6ArhAXSMdm7w== From: To: X-PMX-Version-I: 4.7.0.111621 X-Filtered-With: renattach 1.2.2 X-RenAttach-Info: mode=badlist action=delete AttCount=0 count=0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C5FA77.748F1D69 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All! How can I execute a method from a backing bean AUTOMATICALLY after a = page has been loaded and shown to the user? My exactly problem is the following:=20 When the user opens the first page, this page should be shown normally = (and quickly) to the user. In the background the connection to the = database should be build (automatically, no button should be pressed) = -->I use Hibernate and the first connection (building of connection = pool) takes some seconds, so this should be done in background, but the = user should already see something in his browser (with an info, that the = connection to the database is just built) Is there a possibility to do that? Thx Regards Andy ______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ______________________________________________________________________ ------_=_NextPart_001_01C5FA77.748F1D69 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Execute method automatically after page has been loaded and shown = to user

Hi All!

How can I execute a method from a = backing bean AUTOMATICALLY after a page has been loaded and shown to the = user?

My exactly problem is the following: =
When the user opens the first page, = this page should be shown normally (and quickly) to the user. In the = background the connection to the database should be build = (automatically, no button should be pressed) -->I use Hibernate and = the first connection (building of connection pool) takes some seconds, = so this should be done in background, but the user should already see = something in his browser (with an info, that the connection to the = database is just built)

Is there a possibility to do = that?

Thx

Regards
Andy


______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ______________________________________________________________________
------_=_NextPart_001_01C5FA77.748F1D69--