From: "Avrom Roy-Faderman" <av...@avromroyfaderman.com>
Date: Wed, 1 Jul 2009 19:38:27 -0700
Local: Thurs, Jul 2 2009 12:38 pm
Subject: Re: [ADF Enterprise Methodology Group] Re: pattern for run a method on start of the page only 1 time
For a VO method, I think a bind variable (to hold a "this method's already
been executed" flag) is probably the best way to do this. For a view row method, use a transient attribute (make sure it's marked for passivation--see below). For an application module method, you could try setting a value on the Map returned by ApplicationModuleImpl.getSession().getUserData(). One thing you *don't* want to do is just make a field and store your flag
Best,
> That's a great question ; Frank;
-- > Earlier this week ,
> I posted this
> As i describe there, to work around this "so many call's" I; early
> So depending on the target viewObject's parameters; I set or not
> Other behavior that I would like to insert here, is how we can
> if we log this two methods we will have;
> on Log window;
> Hi there ... from prepareModel (loadPage)
> Do we have some "best pratices" for this ??
> Or perhaps i'm missunderestanding something ....
> Thanks too;
> Marcos Ortega
> 2009/7/1 akhanof <amir.kha...@gmail.com>
>> Hi,
>> Regarding to invoke a method in the page start up and only one time I
>> Thanks and regards,
Avrom’s Java EE and Oracle ADF Blog http://www.avromroyfaderman.com You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||