Message from discussion
pattern for run a method on start of the page only 1 time
Received: by 10.90.81.9 with SMTP id e9mr2550834agb.5.1246484951350;
Wed, 01 Jul 2009 14:49:11 -0700 (PDT)
Return-Path: <vik....@gmail.com>
Received: from mail-yx0-f173.google.com (mail-yx0-f173.google.com [209.85.210.173])
by gmr-mx.google.com with ESMTP id 14si376569gxk.3.2009.07.01.14.49.10;
Wed, 01 Jul 2009 14:49:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of vik....@gmail.com designates 209.85.210.173 as permitted sender) client-ip=209.85.210.173;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vik....@gmail.com designates 209.85.210.173 as permitted sender) smtp.mail=vik....@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by mail-yx0-f173.google.com with SMTP id 3so1793716yxe.19
for <adf-methodology@googlegroups.com>; Wed, 01 Jul 2009 14:49:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:in-reply-to:references
:from:date:message-id:subject:to:content-type;
bh=hXfGfjbVXOhomNvBkm8aH6FD2RzDuqFnf06hRbizhps=;
b=njyxSPoiKrlscm3PJ9k513zd5v0aiiyNSPrvX4F75Zf03y6oS1AEl2M5xtFvVoPASf
8LYRAuJJtHZ6bHtPqgmWMW0r66dubE3lFOx+u7ZhtCxP4A5cnpEEuvFQgtjkE75VwJxW
sPN636LgbOj8bGnUik5HaXaqpYdLn7I+2rOJw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
b=ODmscOtxR/a70bmqEZHpmvbKlYWvpOjLj2iQlT2+IcohFD03EaoYITGP5eVh9myyPV
fsJBN6E6wVtuZbm1FEuQKbJrCf9Y+Y7WqdqrVdiiSZhSkkTkTKuM327CqVH8r4Lrm+Ic
3X2rPsnKb+w/FLBGBab0cgQKk6bkTsZgywTVw=
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="0016e6435224aaea06046dabe47e"
Received: by 10.100.143.17 with SMTP id q17mr14156913and.114.1246484950082;
Wed, 01 Jul 2009 14:49:10 -0700 (PDT)
In-Reply-To: <e667d772-5196-43fe-98bb-c25e3889671b@j32g2000yqh.googlegroups.com>
References: <e667d772-5196-43fe-98bb-c25e3889671b@j32g2000yqh.googlegroups.com>
From: Vik <vik....@gmail.com>
Date: Wed, 1 Jul 2009 14:48:50 -0700
Message-ID: <65d1eaa80907011448v78e9bcd7o9030cf52813f2...@mail.gmail.com>
Subject: Re: [ADF Enterprise Methodology Group] pattern for run a method on
start of the page only 1 time
To: adf-methodology@googlegroups.com
--0016e6435224aaea06046dabe47e
Content-Type: text/plain; charset=ISO-8859-1
hie
why dont you make ur method side effect free second time..
Thankx and Regards
Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com
On Wed, Jul 1, 2009 at 4:58 AM, akhanof <amir.kha...@gmail.com> wrote:
>
> Hi,
>
> Regarding to invoke a method in the page start up and only one time I
> am looking for the best pattern to use;
> because using the (refresh condition= not post back) is some times
> invoked more than one time making it inappropriate when we absolutely
> need to run the method only 1 time .
> is there any other option or pattern except setting the refresh
> condition="#{!adfFacesContext.postback}" for execution of the method
> on the invokeaction for method on the page bindings.
>
> Thanks and regards,
> Amir
>
> >
>
--0016e6435224aaea06046dabe47e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
hie<div><br></div><div>why dont you make ur method side effect free second =
time..</div><div><br clear=3D"all">Thankx and Regards<br><br>Vik<br>Founder=
<br><a href=3D"http://www.sakshum.com">www.sakshum.com</a><br><a href=3D"ht=
tp://www.sakshum.blogspot.com">www.sakshum.blogspot.com</a><br>
<br><br><div class=3D"gmail_quote">On Wed, Jul 1, 2009 at 4:58 AM, akhanof =
<span dir=3D"ltr"><<a href=3D"mailto:amir.kha...@gmail.com">amir.khanof@=
gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi,<br>
<br>
Regarding to invoke a method in the page start up and only one time I<br>
am looking for the best pattern to use;<br>
because using the (refresh condition=3D not post back) is some times<br>
invoked more than one time making it inappropriate when we absolutely<br>
need to run the method only 1 time .<br>
is there any other option or pattern except setting the refresh<br>
condition=3D"#{!adfFacesContext.postback}" for execution of the m=
ethod<br>
on the invokeaction for method on the page bindings.<br>
<br>
Thanks and regards,<br>
Amir<br>
<br>
<br>
</blockquote></div><br></div>
--0016e6435224aaea06046dabe47e--