method of before the Phase of initMethod() in view calling several times:

Hello world

I dragged a table as read-only table with simple rank of verified selection.
A button to go there in the page.
The code in the go button takes the curretn by selecting the current row and the values of print.
The initMethod() code is execution of the VO.

The problem is when the page load the initMethod() (before the phase in view) calls several times even after loading the page.
Continuously its call to this method.

How to call only once when the page is loaded?

All suggestions will be really useful.

Thank you.

Hello Kumar,
There are many topics on the web to achieve this.
This is one of them
https://blogs.Oracle.com/ADF/entry/an_epic_question_how_to

Tags: Java

Similar Questions

  • The purpose of programmatic view called several times ExecuteQueryForCollection

    [JDev/ADF v11.1.1.5.0]

    I am trying to create a VO that is not supported by DB, but instead takes its data from an external source (subsequently, a web service, but that's irrelevant to this question). I followed on each sample, I found and have created the VO and all overridden methods. I use this VO to create a LOV list for a VO another attribute, and the values in the LOV will vary based on a value in another attribute in the main volume (this is called LOVs cascading in various places).

    Here's an example, using the HR schema (a little artificial, I admit it):

    -Two your - DepartmentVO and ManagerVO - are defined

    -The DepartmentVO is supported by the DB and a normal EO and VO.

    -L' Manager in the DepartmentVO attribute is set to a supported by the ManagerVO LOV

    -The ManagerVO is programmatic and returns a list of employees who are in the same Department as the DepartmentID in the line of master DepartmentVO. To do this, use a Bind Variable (DeptId) that is set up to take the value of the DepartmentID attribute in the current line of DepartmentVO. This value of binding is used to filter the list of employees referred to only in the same Department.

    -J' replaced the executeQueryForCollection method in ManagerVOImpl. Here, I retrieve the value of the variable DeptId bind parameters passed in object/object2 to the method, and then use to retrieve employees in this Department of my main source.

    So far so good. Presents all works. (He lifts the employees in the same Department and displays them in the popup LOV.) If you change the Department then click to display the attribute Manager LOV, it shows you the list of employees in the new Department.)

    The problem I see is that the executeQueryForCollection method is called several times (2 or 3), causing the recovery of employees in the Department occur several times. For example, the test by running the AM executeQueryForCollection is called when I click the button to display the popup LOV (which makes sense). However, it is said AGAIN when I click the OK button in the popup LOV after selecting one of the values. (This should NOT!) And, if I create a JSF page and drop the data control to create a form and test it in this way, the executeQueryForCollection is called THREE times!

    I have the logic in the class ManagerVOImpl, which checks whether the list of employees has been recovered already, and if so, it's just returns the existing list. However, multiple calls are actually coming from different instances of the VO class, so that they only "see" the list has already been retrieved (because she was retrieved from another instance of the class, not this one).

    So my question is: How can I ADF do not call the executeQueryForCollection several times during the use of the VO as a LOV so that my (very expensive) call in the master repository to retrieve the list of employees is not executed more than necessary?  Is my only option to implement share caching mechanism myself that stores the list of employees of a Department somewhere in memory? I thought that ADF BC will make caching for me at the level VO?

    Thanks for any help that anyone can provide. I have literally been taken with that for two weeks, when I thought it would be a 'fast' to implement! :-)

    I'd be happy to upload/attach the source of my 'ManagerVOImpl' class, if that would be helpful.

    Have you tried to put a conditional statement in your back-end call happens only on your principal of the VO and not on the other 2 forums and see if that affects your functionality?

    that is, if (myIdName == "myVOInstance") {}

    do things;

    }

    I did it with VO this call that some heavy DB stored procedures in the executeQueryForCollection.

  • Type of the object called several times Oracle constructor

    I have an object of type with a custom constructor. In SQL, when I reference attributes the constructor is called several times in Oracle 11.2.0.4.

    1. Why the constructor is called more than once?
    2. How can I stop it?

    My current job is about to reference attributes and use the / * + materialize * / tip.


    Problem installation

        create or replace type Foo as object
        (
          Bar1 NUMBER,
          Bar2 NUMBER,
          Bar3 NUMBER,
    
          CONSTRUCTOR FUNCTION Foo(p_Bar1 NUMBER, p_Bar2 NUMBER, p_Bar3 NUMBER)
            RETURN SELF AS RESULT
            DETERMINISTIC
        )
    /
        create or replace type body Foo is
    
          -- Member procedures and functions
          CONSTRUCTOR FUNCTION Foo(p_Bar1 NUMBER, p_Bar2 NUMBER, p_Bar3 NUMBER)
            RETURN SELF AS RESULT
            DETERMINISTIC
          AS
          BEGIN
            SELF.Bar1 := p_Bar1;
            SELF.Bar2 := p_Bar2;
            SELF.Bar3 := p_Bar3;
            dbms_output.put_line('Foo Constructor Called');
            RETURN;
          END;
    
        end;
    

    Problem

        -- Constructor is called 6 times! 
        -- Once for each column and once for each predicate in the where clause.
        SELECT x.f.bar1 AS bar1, x.f.bar2 AS bar2, x.f.bar3 AS bar3, f
        FROM (
          SELECT foo(p_Bar1 => 1, p_Bar2 => 2, p_Bar3 => 3) f
          FROM dual d
        ) x
        WHERE x.f.bar1 = x.f.bar1 AND x.f.bar2 = x.f.bar2
    

    Output

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Workaround

        -- Work Around
        -- Constructor is called 3 times
        -- Once for each column in the inline view. 
        -- Note, I removed column f (the object type) because it's not compatible with the materialize hint.
        WITH y AS (
          SELECT /*+ materialize */ x.f.bar1 AS bar1, x.f.bar2 AS bar2, x.f.bar3 AS bar3
          FROM (
            SELECT foo(p_Bar1 => 1, p_Bar2 => 2, p_Bar3 => 3) f
            FROM dual d
          ) x
        )
        SELECT y.bar1, y.bar2, y.bar3
        FROM y
        WHERE y.bar1 = y.bar1 AND y.bar2 = y.bar2
    

    Another solution is described in this thread... Access to the fields of an object custom type... which makes use of a type of collection combined with SCOREBOARD operator, like this...

    create or replace type FooTable as table of Foo;
    
    SELECT x.bar1 AS bar1, x.bar2 AS bar2, x.bar3 AS bar3, value(x) f
        FROM table(FooTable(
          foo(p_Bar1 => 1, p_Bar2 => 2, p_Bar3 => 3)
        )) x
        WHERE x.bar1 = x.bar1 AND x.bar2 = x.bar2
    ;
    
    BAR1 BAR2 BAR2 F
    1    2    3    (1, 2, 3)
    
    Foo Constructor Called
    

    Hope that helps...

    Gerard

  • I had a subscription to photoshop and aftereffects. Can I put these programs on the second computer or that will bring several times?

    I had a subscription to photoshop and aftereffects. Can I put these programs on the second computer or that will bring several times?

    Creative cloud products are not transferable. You need to download again.

    Please see:

    Download Adobe Creative cloud apps | Free trial of Adobe Creative Cloud

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Concerning

    Megha Rawat

  • at the start, computer turn on and off several times before finally starting

    Product: Hp Pavilion M9177C-B

    OS: Vista Edition Home Premium

    Approximately 2 weeks, when you start the computer by pressing the Start button, blue starting light turns on, then turns off maybe 6 + times before it turns finally for good and then I can hear the hard drives being accuated.  I fear that one of those moments that she not turn for good. So, I took the computer on at all times and just close the devices.

    Hello slodave,

    As you hear hard drives or anything on the spot for a while, it seems that the problem may be due to your diet.

    You can look at the power Panel there should be a light on the subject. See if it shows that it begins well before the computer actually turns on (so it comes at the time 6 + it is turn on/off).

    If the food will then replace just to continue normal operation.

  • IPod 160 GB Classic is stuck on the apple logo. I have reset several times and I can not put in DFU mode or resets it to take. Done all the help topics that I have seen here and nada... Please help

    help me get the apple logo take off. I reset it, tried and failed to reset. I can't put it in dfu mode. I'm stuck and need help pease. I did everything that was mentioned in other posts similar to this issue.

    That may mean the iPod has a hardware problem, such as a faulty hard drive or the logic board.

    When you do a Reset (press and hold the Menu and Center buttons), going blank at the start before the Apple logo returns the screen to the iPod?  Or do you mean that the Apple logo is 'stuck' and it doesn't go away when you try of the reset?

    Is the "DFU mode" procedure for disc Mode.  Have a look here to confirm that this is what you have tried

    How to put your iPod in disc - Apple Support mode

  • WhatWhere is the plug-incontainer? happened to the plugin container? He disappeared with the latest version and now firefox crashes several times a day.

    I do not see the plugin container in the task manager of Windows since the last update of Firefox and now FF freezes several times per day (since the previous update, before yesterday). It takes several minutes after that I see this until it thaws, and it is faster the "end task" and restart Firefox to wait. This most often seems to happen when the computer has been idle for a certain time, rather than when I use it.

    Be sure to let the process of plugin-container in the firewall.

  • When I dictate, at the end of the period of 45 seconds, he rewrote several times

    Using the dictation, at the end of the period of 45 seconds, the text flows and changes several times, sometimes repeat a phrase or the deletion of a sentence. What is going on? If I stop before the 45 seconds, that it behaves correctly.

    If you haven't already done so, please activate Enhanced dictated in the preference pane Dictation and speech . See if there is an improvement.

  • Managed Bean method called several times in AF:ITERATOR

    Dear all,
    I can do not to understand this concept in the ADF. Being a beginner, I would like to know
    the reasoning behind this.

    I use af:foreach components and then I link it to my below managed bean.
    <af:panelTabbed id="pt1">
         <af:forEach var="item" items="#{testBean.departmentsData}">
           <af:showDetailItem text="#{item}" id="sdi1"/>
         </af:forEach>
    </af:panelTabbed>
    public class TestBean {
        public List getDepartmentsData() {
            System.out.println("I was clicked!!!!");
            List lstData = new ArrayList();
            lstData.add("IT");
            lstData.add("Finance");
            lstData.add("Accounting");
            return lstData;
        }
    }
    On the first charge, it prints 7 times "I clicked".

    When I clicked on one of the tab, I get 7 again which means my method was called 7 times.
    Any reason behind this. ? Thank you.

    I have used JDEV PS3 is told by the way.

    Rather than build the list in your getter, build a list somewhere (in the constructor, perhaps). Your getter can then return just this list.

    John

  • I renew the DHCP on my Airport Express Extender several times a day.

    I have a time Capsule airport connected to an ATT Uverse router mode bridge as my wifi router.  I have Airport Express 6 throughout the House using wifi Extender.  I have to renew the DHCP lease on a large number of Extenders several times a day to keep them in line.  I saw a few discussions online about this problem, but have not found a solution that works.  Anyone know the problem?

    I have a time Capsule airport connected to an ATT Uverse router mode bridge as my wifi router

    Does that mean that the Time Capsule is in Bridge Mode... or... does that mean that the ATT Uverse router is in Bridge Mode?

    Help if we understood what operating system you use the device that you use to administer airports.

  • Trying to get into my email account but the customer service will not recognize me as owner, have no cell phone, have the right password and have used it several times.

    , customer service will not recognize me as owner, have no cell phone, have the rite pass it used several times

    original title: How can I get my email account

    Hello

    Which email service provider?

    If you use hotmail or Windows Live account, you can post your request in the Forum Windows Live for other assistance or contact offer your e-mail service.

    In the Windows Live Forum

  • Function used in the view definition is called several times

    I'm writing a view that boils down to the following statement:

    SELECT val, val)
    SELECT SYS_GUID() val
    OF the double
    )

    Against my expectation, which calls SYS_GUID() twice, resulting in two different values for val.

    I have written here as view inline, but it must be a regular view in reality. Is it possible to build this view while SYS_GUID is called only once, even if the resulting value is then selected several times? Naively, I want to affect the outcome of SYS_GUID to a variable, and then select the value of this variable. However, this seems not possible in a view.

    New to Oracle PL/SQL. This works as expected in T - SQL SQL Server.

    Thanks for any help or insight you can provide.

    -Brian

    Hmmm, I have no 11 + available so I can't check a solution, but I would like to test:

    SELECT val, val FROM (
    SELECT SYS_GUID() val
    FROM dual
    WHERE ROWNUM = 1
    )
    

    or

    SELECT val, val FROM (
    SELECT /*+ NO_MERGE */ SYS_GUID() val
    FROM dual
    )
    

    Edit: the no_merge indicator seems to work in 10.2.0.4

    Published by: David_Aldridge on December 14, 2010 23:21

  • IMPOSSIBLE TO UPDATE ALL APS, CONTINUES TO RECEIVE YOUR COMPENSATION ACCOUNT PAL IS NO LONGER VALID, GO TO THE ITUNES STORE ETC., WHICH I DID SEVERAL TIMES GRRRRRRRRRR 50MINUTES W APPLE ADVISOR - IT HAS JUST FACT, BUT LOSE THE SETTINGS ETC. ??

    IMPOSSIBLE TO UPDATE ALL APS, CONTINUES TO RECEIVE YOUR PAY PAL ACCOUNT IS NO LONGER VALID, GO TO THE ITUNES STORE ETC, WHAT I'VE DONE SO MANY TIMES

    50MINUTES W APPLE ADVISOR - SHE HASN'T DONE, BUT LOSE SOME SETTINGS ETC. ??

    PayPal requires that a credit card account is valid.

    Payment methods, you can use in the iTunes Store, App Store and iBooks Store - Apple Support

  • I loaded the new update for Firefox today and received a message from 'need to reboot to complete the installation'. However, even after restarting several times the update does not load and he always invites me to restart my computer.

    The update does not load, and I can't "remove" program to my computer and reload as the same (needs to restart to complete the installation) error message keeps appearing even after several reboots.

    Do a cleaning (re) install and delete the folder of the program Firefox (C:\Program Files\Mozilla Firefox\).

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox if possible.

    • Do not remove the data of a personal nature when you uninstall the current version or you lose your bookmarks and other data in the profile folder.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.

    Your bookmarks and other profile data stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

  • The latest October security updates will not be installed. I get the error code 80070490. I tried several times without success

    I tried to download microsoft fix and re-install vista from the disc that came with my laptop but neither stage work (the re - install vista wouldn't let not me full and I received the message)
    ' upgreade cannot be started. Updated canecel installation level then chooose upgrade to a version of windows that is newer than the one you run '

    I use vista 32 bit

    Whenever I try to download new security updates I just get error code 80070490

    0 X 80070490 - ERROR_NOT_FOUND
    Corrupted system file; You will need to perform an upgrade on the spot or reinstalling the operating system.

    The error you receive occurs if there is corruption in the manifest of component maintenance base.

    Ignore the title: the "Windows features" dialog box is empty in Windows 7 or Windows Vista, or you receive an error message that includes the following code when you try to use Windows Update: "0 x 80073712".
    http://support.Microsoft.com/kb/931712
    "Explains the SFC / Scannow.

    A repair install is the usual solution of SFC/scannow does not work.

    You receive an error code "0 x 80070490" when you use Microsoft Update or Windows Update Web sites to install updates
    http://support.Microsoft.com/kb/958044

    NB: If you have installed SP1 for Vistahttp://support.microsoft.com/kb/948537

    Step 7 (method for Windows Vista), the * UPGRADE option is not available because SP1 has been installed.

    Uninstall SP1

    See also:

    How to overcome error 0 x 80070490 when installing updates in Windows Vista/Server 2008
    http://blogs.msdn.com/andrekl/archive/2008/09/29/how-to-overcome-error-0x80070490-when-installing-updates-in-Windows-Vista-Server-2008.aspx

    TaurArian [MVP] 2005-2010 - Update Services

Maybe you are looking for