Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion pattern for run a method on start of the page only 1 time

View parsed - Show only message text

Received: by 10.204.71.141 with SMTP id h13mr182531bkj.13.1246490045627;
        Wed, 01 Jul 2009 16:14:05 -0700 (PDT)
Return-Path: <mar...@santoandrea.com.br>
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156])
        by gmr-mx.google.com with ESMTP id 14si184852bwz.1.2009.07.01.16.14.05;
        Wed, 01 Jul 2009 16:14:05 -0700 (PDT)
Received-SPF: neutral (google.com: 72.14.220.156 is neither permitted nor denied by best guess record for domain of mar...@santoandrea.com.br) client-ip=72.14.220.156;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 72.14.220.156 is neither permitted nor denied by best guess record for domain of mar...@santoandrea.com.br) smtp.mail=mar...@santoandrea.com.br
Received: by fg-out-1718.google.com with SMTP id e12so381090fga.0
        for <adf-methodology@googlegroups.com>; Wed, 01 Jul 2009 16:14:05 -0700 (PDT)
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="000e0cd2518c4c1424046dad14a1"
Received: by 10.86.65.2 with SMTP id n2mr5052610fga.38.1246490044142; Wed, 01 
	Jul 2009 16:14:04 -0700 (PDT)
X-Originating-IP: [187.5.107.145]
In-Reply-To: <e667d772-5196-43fe-98bb-c25e3889671b@j32g2000yqh.googlegroups.com>
References: <e667d772-5196-43fe-98bb-c25e3889671b@j32g2000yqh.googlegroups.com>
From: Marcos Ortega <mar...@santoandrea.com.br>
Date: Wed, 1 Jul 2009 19:13:44 -0400
Message-ID: <e0b086100907011613x686cdb7ftee4417ccb6c31fb9@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

--000e0cd2518c4c1424046dad14a1
Content-Type: text/plain; charset=ISO-8859-1

That's a great question ; Frank;


     Earlier this week ,

       I posted this
thread<http://forums.oracle.com/forums/message.jspa?messageID=3586332#3586332>at
otn jDev's forum too; but no cookies for me !

       As i describe there, to work around this "so many call's" I; early
check if my viewObjects parameter are set  and if the value is equal my
current params;

       So depending on the target viewObject's parameters; I set or not and
 re-execute the viewObject;


     Other behavior that I would like to insert here, is how we can
coordnate the execution of onChangeEvent (from any faces component) and
onLoadPage ( or prepareModel ) phase;

     if we log this two methods we will have;

        on Log window;

              Hi there ... from prepareModel (loadPage)
              Hi there ... from onChangeEvent
              Hi there ... from prepareModel (loadPage)


    Do we have some "best pratices" for this ??

    Or perhaps i'm missunderestanding something ....


Thanks too;


      Marcos Ortega
 Analista de Sistemas
  Campo Grande - MS
http://www.santoandrea.com.br


2009/7/1 akhanof <amir.kha...@gmail.com>

>
> 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
>
> >
>

--000e0cd2518c4c1424046dad14a1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

That&#39;s a great question ; Frank;<div><br></div><div><br></div><div><br>=
</div><div>=A0=A0 =A0 Earlier this week ,=A0</div><div><br></div><div>=A0=
=A0 =A0 =A0 I posted <a href=3D"http://forums.oracle.com/forums/message.jsp=
a?messageID=3D3586332#3586332">this thread</a> at otn jDev&#39;s forum too;=
 but no cookies for me !</div>

<div><br></div><div>=A0=A0 =A0 =A0 As i describe there, to work around this=
 &quot;so many call&#39;s&quot; I; early check if my viewObjects parameter =
are set =A0and if the value is equal my current params;</div><div><br></div=
><div>

=A0=A0 =A0 =A0 So depending on the target viewObject&#39;s parameters; I se=
t or not and =A0re-execute the viewObject;</div><div><br></div><div><br></d=
iv><div>=A0=A0 =A0 Other behavior that I would like to insert here, is how =
we can coordnate the execution of onChangeEvent (from any faces component) =
and onLoadPage ( or prepareModel ) phase;</div>

<div><br></div><div>=A0=A0 =A0 if we log this two=A0<span class=3D"Apple-st=
yle-span" style=3D"border-collapse: collapse; ">methods we will have;</span=
></div><div><span class=3D"Apple-style-span" style=3D"border-collapse: coll=
apse;"><br>
</span></div>
<div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
=A0=A0 =A0 =A0 =A0on Log window;</span></div><div><span class=3D"Apple-styl=
e-span" style=3D"border-collapse: collapse;"><br></span></div><div><span cl=
ass=3D"Apple-style-span" style=3D"border-collapse: collapse;">=A0=A0 =A0 =
=A0 =A0 =A0 =A0 =A0Hi there ... from prepareModel (loadPage) =A0</span></di=
v>

<div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0Hi there ... from onChangeEvent</span></div><=
div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0Hi there ... from prepareModel (loadPage)</sp=
an></div>

<div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
<br></span></div><div><span class=3D"Apple-style-span" style=3D"border-coll=
apse: collapse;"><br></span></div><div><span class=3D"Apple-style-span" sty=
le=3D"border-collapse: collapse;">=A0=A0 =A0Do we have some &quot;best prat=
ices&quot; for this ??=A0</span></div>

<div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
<br></span></div><div><span class=3D"Apple-style-span" style=3D"border-coll=
apse: collapse;">=A0=A0 =A0Or perhaps i&#39;m missunderestanding something =
....</span></div>

<div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
<br></span></div><div><span class=3D"Apple-style-span" style=3D"border-coll=
apse: collapse;"><br></span></div><div><span class=3D"Apple-style-span" sty=
le=3D"border-collapse: collapse;">Thanks too;</span></div>

<div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">=
<br></span></div><div><br clear=3D"all"> =A0 =A0 =A0 Marcos Ortega<br> =A0A=
nalista de Sistemas <br> =A0 Campo Grande - MS<br><a href=3D"http://www.san=
toandrea.com.br">http://www.santoandrea.com.br</a><br>


<br><br><div class=3D"gmail_quote">2009/7/1 akhanof <span dir=3D"ltr">&lt;<=
a href=3D"mailto:amir.kha...@gmail.com">amir.kha...@gmail.com</a>&gt;</span=
><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft: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&quot;#{!adfFacesContext.postback}&quot; 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>

--000e0cd2518c4c1424046dad14a1--


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google