Latest Possible PagePhaseListener - Jdev 11.1.2.3

Hello:
I have the following Use Case:
After the inital JSF page load, I need to programatically press a button on that page.  I attempted to create a PagePhaseListener detecting LifeCycle.PREPARE_RENDER_ID and using isInitialRender() then using UIViewRoot::findComponent("cb1"). See code at bottom.
The Button I want to press has id=cb1
But findComponent() is always comming back as null.
I think I have two different problems.
Problem 1 : I need to press the button after the page completes rendering. Is the PREPARE_RENDER_ID the latest possible point to attempt this?
Problem 2:  How do I detect the proper name of the button with all its naming containers.  I looked in FireBug and it seems the button name is:
pt1:r1:0:cb1  and I tried this but this still returns null.  Do facets matter regarding naming containers?
What am I doing wrong?
Thanks for the help.
public void afterPhase(PagePhaseEvent pagePhaseEvent) {
        if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
            if(AdfFacesContext.getCurrentInstance().isInitialRender()) {
                FacesContext fc = FacesContext.getCurrentInstance();
                UIViewRoot root = fc.getViewRoot();
                RichCommandButton b = (RichCommandButton) root.findComponent("cb1");
                // also tried "pt1:r1:0:cb1" but still returns null
                if (b == null){  ..... is always null

Hi,
you are on 11g R2 and thus you are on JSF 2. So you can use f:event added to a command button you want to press on load. This way as soon as the button renders you can invoke a managed bean method that then queues the button press (or. instead of pressing the button directly invoke the method you want to execute)
e.g.
<af:commandButton text="Press on Page Load" id="cb1"
                                          actionListener="#{viewScope.OnLoadHandler.onButtonPressed}"
                                          partialSubmit="true">
                            <f:event listener="#{viewScope.OnLoadHandler.pressButton}" type="postAddToView"/>
                        </af:commandButton>
Managed Bean Code
public void pressButton(ComponentSystemEvent componentSystemEvent) {
if (initialPageLoad == false) {
RichCommandButton rc = (RichCommandButton)componentSystemEvent.getComponent();
String clientId = rc.getClientId();
String javaScript = "var button = AdfPage.PAGE.findComponentByAbsoluteId('"+clientId+"');" +
"AdfActionEvent.queue(button,true)";
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
service.addScript(facesContext, javaScript);
initialPageLoad = true;
Frank

Similar Messages

  • PO report for field:Latest Possible Goods Receipt Date

    Hi Gurus,
    can you please recommend me a standart report of Purchase orders, where is possible to see field from PO - item level - tab Delivery - field:Latest Possible Goods Receipt Date. It should be field MEPO1313-LEWED
    thank you!

    hi,
    please check it in me2n
    Purchase order list displays by Vendor                           ME2L
    Purchase order list displays by Material                           ME2M
    Purchase order list displays by General                           ME2K
    Purchase order list displays by Material Group     ME2C
    Purchase order list displays by Tracking Number     ME2B
    Purchase order list displays by PO Number     ME2N
    Purchase order list displays by Service                          MSRV3
    Aggregate PO History                                               ME87
    Analysis of Purchase Order Values                          ME81N
    Thanking you

  • I have a 2007 MacBook and I want to install the latest possible version of OS X. What version is that?

    Like I said, I have a mid-2007 MacBook (note that it is NOT a MacBook Pro) and I want to install the latest possible version of OS X on it. I would like to know what the latest version that it can handle is. I know that the latest version of OS X is Mavericks, but I'm pretty sure that won't work on it, so will Lion or Snow Leopard?

    System requirements for OS X Lion
    OS X Lion (10.7) - Apple Store

  • I have a powerbook G4 with macosx10.5.8 (as far as I know the latest possible OS with powerPC). Can I use Time Machine to restore my data on an Intel Macbook?

    I have a powerbook G4 with macosx10.5.8 (as far as I know the latest possible OS with powerPC). Can I use Time Machine to restore my data on an Intel Macbook?

    Well the newer TimeMachine model as stated in current Support pages isn't directly compatible on OS X 10.5 now, as noted in above link provided.
    What OS X does your newer MacBook have running in it? (Not linux?)
    With the current setup you have there may be a way -among other details in the support page- to do the migration of data from Mac, including a subnote on Time Machine, in a section below the main article with triangle by it,  from links here:
    •OS X: How to migrate data from another Mac using Mavericks 10.9:
    http://support.apple.com/kb/HT5872
    •OS X: How to migrate data from another Mac using Mountain Lion 10.8 and Earlier:
    http://support.apple.com/kb/ht4889
    In the support articles there are various troubleshooting and help items about the technology, some data back some time and whatever still stands would be there. Some archives are no longer current and say so.
    Perhaps someoone still using older PPC Macs and Leopard 10.5, will say how to backup into a G4 PowerBook, from a Time Machine.
    Unless the TimeMachine backup from the older PPC G4 PowerBook is used in the migration process of transferring personal account files from there to a new MacBook running (?) OS X. This probably could be done. You may be able to access older libraries, such as iPhoto, iTunes, etc and import them from the archive, to a newer Intel-based MacBook.
    Sorry for any confusion.
    I'll more carefully reply in the future.
    Good luck & happy computing!
    PS: a different direction on archives, time machine, clones, and other devices:
    •About Time Machine - Time Machine vs. Clones and Archives:
    http://pondini.org/TM/Clones.html
    •Apple OS X and Time Machine Tips:
    http://pondini.org/TM/Home.html
    {edited to add link details}

  • Latest possible software on my MacBook Pro?

    Hi, i have a 17" MacBook Pro model A1212 and am trying to put the latest possible OS on it. Anyone know what the latest I can go is and how I can get it? Thanks in advance.

    Hi, i have a 17" MacBook Pro model A1212 and am trying to put the latest possible OS on it. Anyone know what the latest I can go is and how I can get it? Thanks in advance.

  • I need to know the easiest way to upgrade my 10.5.8 operating system to the latest possible.  Thanks.etem to the

    I need to know the easiest wayto upgrade my 10.5.8 operating system, to get the latest system and get videeo back.

    Hello, is the video issue because Flash is disabled?
    You must get 10.6 first if you want even later.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It's been pulled from the online store & Apple Stores, so you have to call Apple to buy it, last I heard.
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

  • Update of the field earliest/latest possible activity (AFVC-FRSP)

    Hello Abaplers,
    is their a solution for updating the field FRSP of the AFVC table, out of a report, without updating it directly via OpenSQL?.
    Actually i use the BAPI: BAPI_NETWORK_MAINTAIN.
    But it seems to be that the bapi has no entry in the corresponding
    structure I_ACTIVITY for the FRSP field of the AFVC table.
    I searched for different function modules for updating the field seperatly,
    but with no result.
    I will appreciate your help.
    Many thanks in advance.
    Alexander

    thanks for your answer, i know but i think it`s usally not the way which SAP recommend.
    I want to avoid it because of the risks in some cases (FK-Field updates, changeable masterdata -> inconsistency, bypassing the checks of the data element etc.).
    But it seems to be that there is no other way (bapi, fm etc) and the direct update is the one and only method for updating the field?

  • Upgrading from 10.3.9 to latest possible version

    I have a PowerPC dual 1.8GHz G5...what is the most recent version of OS X that can run on this machine? 10.5? If so, which version do you recommend that is the most stable?

    *Mac OS X 10.5 Leopard installation system requirements*
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store *but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753)*.
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
     Cheers, Tom

  • GR possible despite Delivery completed indicator in PO

    Dear All,
    We have PO created for 100Kg, now we have received 80kg and no further deliveries are expected and we want to close this PO line item.
    We are selecting Delivery Completed Indicator after making GR for 80Kg.  But Still we can make a GR posting in MIGO for this PO line item.
    Can someone suggest me on short closing of this PO line item.
    Thanks
    Uday

    Hello.
    This is standard behavior of the system, You can refer SAP Note# 856279.
    According to this we have three possible solutions
      1.Reduce the purchase order quantity to the previous GR quantity.
      2. Block the purchase order item.
         (ME22N: Block pushbutton; ME22 Menu -> Edit -> Block)
      3. Fill the date field for the 'Latest Possible Goods Receipt' (LEWED)
         in the purchase order item. If you do this and you enter a GR
         document after this date, the system issues message M7163, which
         you must set as an error message in Customizing.
    But I would  suggest to go with 3rd option because of below issues.
    With 1st option, if we reduce the PO qty to, PR will become Open again.
    with 2nd  option,  system will not allow invoice verification for blocked line item.
    With reagrds
    VB

  • IPod Touch (4th gen) will not sync music after the latest iTunes update

    I'm using iTunes on a PC with Windows 7 and after the latest update (iTunes 11.2.2), it will not sync with my iPod touch 4 (also updated to the latest possible version - iOS 6.1.6).
    Before the update there was no problem with the sync. And this iPod has always been synced only with this computer, and this iTunes library.
    After the iTunes update, several songs on my iPod were greyed out and unplayable (the library plays fine in iTunes).
    Now, when I try to sync, iTunes goes through all the steps, saying it finished syncing, without any error message but there is no actual change on the iPod.
    I've tried deleting all the music on the iPod, to resync the entire music library anew.
    Again, iTunes went through all the steps, finished "syncing" and nothing - and, of course, all the music on my iPod is now missing.
    When I check the "On this iPod" option in iTunes, the entire song list shows up there but appears greyed out and unplayable.
    On the actual iPod device, there is absolutely nothing in the Music app - no songs, no playlists.
    The iPod always shows "no data" in the Music app.
    Sometimes iTunes shows that I have 18GB of music on the device, sometimes it shows 0GB ...at one point it showed "no space available". But it has plenty of space - 23.5 GB of available space out of 32GB.
    To fix this I've tried the following:
    - automatic sync, manual sync, manually adding/deleting songs on the iPod, autofilling and replacing songs;
    - resetting my iPod by holding the (on/off and home buttons) and resetting through the "reset all settings" option on my iPod;
    - reset and restore from backup;
    - uninstalled and re-installed iTunes on my PC.
    - I've run the diagnostics tool in iTunes - all tests passed;
    ...plus various other suggested solutions I have found in the similar topics around here.
    (I've checked and there are no restrictions to the songs, the computer is authorized, etc.)
    Absolutely nothing works and it is very frustrating, as I usually only use the iPod for the music.
    Please help.
    Violet

    Hello, VvioletT. 
    Thank you for visiting Apple Support Communities.
    I see you are experiencing issues syncing your iOS device.  Here are a couple articles that I would recommend going through when experiencing this issue.
    iOS: Troubleshooting USB-related alerts when syncing
    http://support.apple.com/kb/TS5254
    Resolve issues between iTunes and security software
    http://support.apple.com/kb/ts3125
    Cheers,
    Jason H.

  • My ipod touch 3rd gen is not updating, whenever i try to, itunes comes up and says that it has the latest update which  is 4.2.1

    in the summary when i plug my ipod in, i press on the check for update button and it says that my ipod it already up to date with the software 4.2.1. i have the latest itunes and have redownloaded itunes but nothing is working. please help

    are you sure, that your iPod is 3rd generation? http://support.apple.com/kb/ht1353
    For a second generation iPod, 4.2.1 is the latest possible version.

  • Restriction of Good Receipt on the basis of Latest GR Date...

    How we can restrict the Goods Receipt against the Purcahse Order with reference to the Latest GR Date in reflecting in the Purcahse Order.
    Latest GR date reflects in the Delivery tab of the Item details in the Purcahse Order.

    Hi,
    To prevent goods from being accepted in the case of delayed delivery, youmust specify the latest possible goods receipt date for the item in the purchase order. This field is in the item detail data on the Delivery tab page. You also have to set
    message 163, Last possible delivery date was... (work area M7), as a warning or error message in Customizing.
    If you have set the message as an error message for delayed delivery, you can post the delivered goods to the GR blocked stock and then post a return delivery from the GR blocked stock.
    Hope Help U !
    Regards,
    Pardeep malik

  • How to override oracle skin in jdev 10

    Hi people.
    I need to use oracle skin but I´d like to change some components...
    is that possible in Jdev 10?
    Thanks....

    Hi,
    Yes you can in pretty much the same way as with 11g except that some important features won't work, the most notable one being -tr-inhibit. See
    Selectors:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    How to:
    http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
    Regards,
    ~ Simon

  • JDev 10.1.2.0.0 Not finding libraries?

    I downloaded the latest production build of JDev and created a new JSP/Struts/ADF project to try it out. I have created a series of Entity and View objects, and a couple of simple JSP's. When I try to build it, it fails to compile as it is unable to find libraries, for example:
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.domain.RowID;
    None can be found. This is in an impl file for an entity object. This seems odd, since this is generated code. I don't "think" I've changed anything that was set as default, but I sure can't get anything to build.
    Any ideas what I've messed up? Surely it's me?

    The document you reference doesn't mention the 10g version in the matrix, which leads me to believe that it isn't necessary with the latest version of JDev? I don't recall having to do this with the previous version, at least until I was deploying something to an external-to-jdev application server.

  • Jdeveloper/XDK latest with Oracle 9i r2

    Hi,
    I have a customer whos is asking a question regarding the compatibility of latest versions of Jdev & XDK developer tools. The question is pated below.
    Can anyone help me out in answering this customer?
    Its a high priority job.
    Thanks in advance.
    Regards,
    ==========================================================
    Customer's Question
    The company I work for has Oracle 9i version 2. I wish to be able to have access to the latest development tools from Oracle that would enable me to develop Java applications which are integrated with the latest XML technologies available from Oracle. My understanding is that XML Developer Kits provide the latest XML tools from Oracle. The version of the kit that has the most up-to-date XML components is available in a 10g version here: http://www.oracle.com/technology/tech/xml/xdkhome.html.
    The 9i version is here: http://www.oracle.com/technology/tech/xml/xdk/xdk_java.html.
    My questions are as follows: If I purchase the current version of JDeveloper Java IDE and download the 10g version of the XDK, will I have the best of breed tools for developing Java-based XML applications under Oracle? Would such a combination of tools work seamlessly with a 9i production database, which is already in place at the company I work for? Would this combination of tools (JDeveloper + XDK) provide me with a set of tools and utilities that are every bit as strong from the point of view of developing Java/XML applications as that which would be provided from use of the Internet Developer Suite?
    ==========================================================

    Oracle 9i Production may be used with JDeveloper 10g.
    Oracle 10g is recommended for its support for WebRowSet JDBC driver.

Maybe you are looking for

  • IPod touch apps

    Dear Apple, When I got my iPad I was upset to see that the  Clocks, Maps, Stocks, Calculator, Weather,  and Voice Memos apps that were on the iPod Touch were not on the iPad. I used each of the apps on a regular basis and miss having them a lot.  I k

  • How to search for brackets in wildcards?

    Is there any way to search for ALL characters (including punctuation, dashes, and spaces) that are within brackets [ ], including the brackets? For example, after wildcard searching, I would like ALL of  [test1123 abc 7.77]  or [aaa 3_1 abc 7.77] to

  • SOLVED: No YouTube App installed...

    Solved. Turns out I had restrictions on... *My iPod doesn't have the YouTube app installed. It was never on it. I cannot find this problem anywhere else. Everyone else appears to have the app installed, but just can't connect, I can't even get to tha

  • Getting error while connecting Utility Customer E-Services

    I am getting the following error while connecting to Utility Customer E-Services through the browser. Error:       Your user master has not been created correctly. Contact your system administrator. Please advise some fix for this problem. Thanks in

  • Adding a banner downside of page

    I've created the shadow down the side of the page, but I'm trying to also create a banner down the side of the page! here a flat image example http://www.paragon360.com/example_01/example_layout.htm I've tried playing around with the existing script