Which is executed first? af:setPropertyListener and af:commandButton's actionListener

I have two test apps.
First app:
It has jsf pages. And I have a few fields and a button on the page.The backing bean for my page has a method prepareToBeUpdateOrderRelease(ActionEvent ae).
My button looks like this:
                       <af:commandButton text="Update" id="cb3"
                                          binding="#{backingBeanScope.backing_editOrWithDetails.cb3}" action="update"
                                          actionListener="#{backingBeanScope.backing_editOrWithDetails.prepareToBeUpdateOrderRelease}">
                            <af:setPropertyListener from="#{backingBeanScope.backing_editOrWithDetails.toBeUpdateOrderRelease}"
                                                    to="#{pageFlowScope.toBeUpdatedOrderRelease}" type="action"/>
                        </af:commandButton>
When I run the page, I can see from the printouts on the integrated weblogic console, actionListener is called first, then setPropertyListener is called.
Second App:
It has jspx pages. I have a few fields and a button on the page. The backing bean for my page has a method prepareToBeUpdateOrderRelease(). And this method is called in getTheUpdatedOrder().
My button looks like this:
                              <af:commandButton text="Submit Changes" id="cb1"
                                                  binding="#{backingBeanScope.backing_getOneOrder.cb1}"
                                                  action="callUpdate">
                                    <af:setPropertyListener from="#{backingBeanScope.backing_getOneOrder.theUpdatedOrder}"
                                                            to="#{pageFlowScope.toBeUpdatedOrder}" type="action"/>
                                </af:commandButton>
The page works fine as this.
But if I want to use the same way as the first app, which is using actionListener, the page will fail, because of a NPE. From the printout, I can see setPropertyListener is executed before actionListener.
The only difference between the two apps is jsf vs. jspx. Is this the cause of the difference of the execution sequence between setPropertyListener and actionListener? Thanks.

User, please tell us your Jdev version!
It's a bug and feature. Check prsync.com/oracle/setpropertylistener-and-setactionlistener-might-fire-too-late-when-using-facelets-468522/ for an explanation.
Timo

Similar Messages

  • FM to know which is the first employee assigned and the last

    Is there any FM to know which is the first employee assigned and the last in a sap r/3 system?
    thanks.

    Hi robertoc20972128,
    What functionalities were you looking for specifically? JotForm has always been a leader in form building, but recently we've been making waves with some really exciting new features. Plus, we're making your switch from Adobe FormsCentral remarkably easy with our new import tool.
    A few key features with JotForm:
    Completely free for fewer than 100 submissions per month
    The most advanced Form Designer of any competitor
    A Theme Store that features something for everyone
    Includes skip logic
    Let me know if you have any questions or troubles!

  • Which will execute first

    Hai,
    I am having Where class and having class in a single select query.. Which will execute at first.

    user12283394 wrote:
    Hai,
    I am having Where class and having class in a single select query.. Which will execute at first.select deptno, min(SAL), max(SAL) FROM EMP WHERE job='CLERK' group by deptno having count(*) > 3;
    You should read basic sql query comment..
    Refer :-
    http://dbis.ucdavis.edu/courses/sqltutorial/tutorial.pdf
    Regards
    Azar
    DBA

  • In web.xml which tag executes first.

    Hi All,
    Could any one please tell in web.xml whether Filter tag gets execute first or Security-Constraint tag?
    Thanks,
    Swapna Soni.

    In web.xml <web-app> is the root tag the container loads the web.xml when ever the application is deployed or when ever the server is started or restarted or redeployed the application In the same sequence as defined in the sun xmlschema

  • Which will execute first in File Adapter (parameter,Identifier,module)

    Hi,
    I have written a module for my sender file adapter, and choose FCC to parase my complex structure...here my doubt is whether adapter module will call first or FCC which is there in Identifier tab in file adapter?
    Regards,
    Irshad.

    Chandras sekhar,
    i have already seen that blog...
    could you plz read my message once again?
    Regards,
    Mansoor
    ya i got it..Call sap adapter module will store the message in send queue.
    just want to know which module is building the xi header whether it is same call sap adapter module or is there any specific module which will convert native message to xi message.
    Is call sap adapter module is the responsible for building the xi message header with the help of cpa lookup? if its so again confuse for me.....
    In File adapter we have 3 tabs one is parameter identifier and module...As u said first parameter tab will run as per FCC/ File message protocol then this parsed/content of text file will be input to the module tab .in this module tab we have custom modules and standard module these modules are executed in the same sequence as mentioned.
    what is the module name which converts native message to xi message?
    Regards,
    Mansoor

  • Which line in where clause gets executed first

    Hi everyone!
    I have some sqls which look like this
    select ...
    from table A, table B
    where a.name = b.name
    and a.name in (....)Now, which one of this is executed first? the where clause or the and clause?
    Joining the tables is preferably done in where clause?
    I am using Oracle 10g.
    Please give me some guidance.
    Thank You.
    Nith

    user645399 wrote:
    When I deal with very large tables I notice that it takes too long, so was wondering if I move the table join to the and clause, it can join and then apply the filter which could be faster instead of filtering and joining the table.Define "+too long+" - what metric and baseline are used?
    You need to have some kind of baseline of what acceptable performance is and then some metric to measure against the baseline to determine whether the process has acceptable performance or not.
    What I mean by this is that "+too long+" is an arbitrary statement that cannot be evaluated. It the workload is huge, that workload will take some time too process. If a workload is tiny, that will take less time to process.
    But "+too long+" gives no indication what the workload is. And "+large table+" is meaningless as a SQL against a billion row table can be minimal workload (e.g. unique index read), whereas a SQL against a small table can be a huge workload (e.g. cartesian join and full table scan).
    You first need to determine WHAT the workload is, before judging it as "+too slow+".
    I have no idea on how is the execution plan.And one of the first steps is looking at the execution plan. SQL code is source code (like C/C++ or Visual Basic source code). This cannot be executed - it needs to be parsed and compiled into an executable program.
    For C/C++ and Visual Basic, that is typically an +.exe+ or +.ddl+ executable. SQL source code is compiled into an executable program called a cursor. The execution plan of that cursor shows the structure of this program and what this program will (technically) do step-by-step.
    From the execution plan you can make calls such as, are the available indexes used optimally, did the CBO (the creator of the execution) made sane decisions based on the available data and stats it has for the tables and database?
    The execution plan can also highlight errors in the source code - for example, table foo is scanned twice using a full table scan. This does not make sense to hit the same data set twice in a single SQL - so why is the SQL source code written that way?
    The bottom line is that you need to know WHAT it is doing to determine if the performance is acceptable or not. If not, then you need to determine WHY it is doing what it is doing and whether there are better alternatives.

  • Which block get effected by save and execute query

    Hello,
    I'm using forms 9i , database oracle 9i.
    Case:
    i made a simple application with 4 stack canvas on each i place data from 4 tables. convention is like every stack canvas get visible when the corresponding button is pressed. once visible i don't set it to invisible i just place other stack canvas over it.
    Although i don't get any error or problem while doing normal work like saving records or Executing query. but i don't understand whether these operation only effect the table which is visible(on stack canvas). and rest of are unaffected.
    if No then how i can do it with only on visible canvas
    and if yes is there any way that i can do execute query on all of them.
    thanks
    Rahul.

    The SAVE (COMMIT_FORM or COMMIT) will affect the whole form if you are using simple blocks based on tables, every block that does have changed or new data it will saved in the database.
    The EXECUTE_QUERY will affect only the current block, the block where the cursor is in currently. If this block is a master block then the EXECUTE_QUERY on the master block will also affect the detail block.
    If it's a standalone (not a master) block, the EXECUTE_QUERY will only affect the block your cursor is in.
    Tony

  • In plsql which block will execute first inner block or outer block...

    In plsql which block will execute first inner block or outer block...
    pls help...

    Outer block starts execution first.
    Inner block completes the execution first.
    Suresh.

  • Is it possible that the specified method in an assembly will be automatically executed firstly during the assembly is loading

    Is there one way or an assembly attribute with which we can specify a method in an assembly so that the method would be automatically executed firstly while the assembly is loading. For instance: In an assembly project MyAssembly,add
    the attribute code line in AssemblyInfo.cs as [assembly:XXXXAttribute("MyAssembly.Class1.MethodName")], then when this assembly is been loading, the method MyAssembly.Class1.MethodName will be automatically called and executed

    >Is there one way or an assembly attribute with which we can specify a method in an assembly so that the method would be automatically executed firstly while the assembly is loading.
    No.  That would be dangerous.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Executables: make, ar, ld, and nm.

    hello
    i ahve install oracle on LInux first time. its my first interaction with LINUX. i know Linux a bit. it admistration is totally different so i'm face many problem. i have stuck wheni tried to install Oracle Critical Patch Update. i have read patch readme but it not so clear for me. below line describes path i dont know what is path it is Like enviroment variable path in windows or something else when i run this comamnd
    export PATH=$PATH:/usr/ccs/bin i got some file like make and nm in bin directory. but i dont have file ID, ar in usr or i dont found CCS folder plz help what is path how i access this path if some files are missing how to install them i dont found any help over internet so plz help i would be thanks full to you
    Ensure that the $PATH has the following executables: make, ar, ld, and nm.

    Hi,
    If you trying to install oracle CPU patch (operating system linux)
    Please follow the steps
    dowload the OPatch utility which is recomended by oracle.
    just cd and go to the OPatch directory ex: /u01/patch/OPacth
    execute the follwoing commands
    export PERL5LIB=/opt/perl/5.8.0/lib
    export PATH=$PWD:/opt/perl/5.8.0/bin:$PATH
    then go to the patch folder ex:cd /u01/patch/7150470
    execute the follwoing commands
    opatch napply -skip_subset -skip_duplicate
    Note:Please check the oraInst.loc (patch will refer the textfile)
    default location:/etc/oraInst.loc
    in oracle 10.x.x.x
    if its in different location please issue the command.
    example:
    opatch napply -skip_subset -skip_duplicate -invPtrLoc $ORACLE_HOME/oraInst.loac
    Regards
    Jerald

  • Have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone

    have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone user for years.I was right! Or so I thought.... The Note 3 has been horrible. I am on my second phone(replaced it under warranty) and it still freezes, shuts off on its own, and will not come back on for long periods of time. Having had enough, I decided to EDGE Up to another device. On March 16th I tried to edge up my device online but was unable to. I immediately called to figure out what the problem was. Back in October I had a mix up in my billing where I had set up a payment. It was not done properly by customer service and as a result my line was cut off. I called the EXACT day it went off, filed a complaint about the lack of follow through for my arranged payment, and thought I had it straightened out as the payment was made that same day. That incident, although it was a Verizon error, caused my Edge Contract to be "hotlined". I spent an hour on the phone on March 16th clearing the whole mess up. When the conversation ended, the Verizon representative admitted it was a Verizon error, documented everything, and then told me she was filing a release for the hotline hold that would take a couple of days. Her name was Linda and I stupidly trusted what she said.
    The days passed as I prepared to have a major foot surgery and to get my classroom straight before I would be out recovering for 3 weeks. All the time, my Samsung continued to glitch out like it has since I got it! While sitting on the couch recovering, I decided to deal with the phone issue again and EDGE UP. I figured 10 days latter, Linda would have taken care of the issue. Unfortunately, I faced the same problem and was told it was not eligible to edge up at this time. BACK on the phone again, 2 supervisors, 3 customer service reps. ( JOE from New York being the rudest customer service rep. I have EVER worked with) and 4 frustrating HOURS latter, Jason, the equally rude supervisor from Rochester, New York, informed me that Linda gave me BAD information, there was NOTHING he could do, and I am NOT eligible until April 14th!!!!! The WORST experience I have EVER had with a company. They were completely inept, rude, and not concerned about my time, my frustration, or the problems I was facing with their product in the LEAST. I have 4 LINES on Verizon that I am going to talk to Sprint about buying out. It was a horrible experience, and I can NOT believe I have no recourse or anyone to talk to....

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • I'm getting a not-quite crash in which I lose ability to interact with the window at all. Is there any way to fix the problem itself? All I can do is an inconvenient "fix" in which I open a new window, and it works in the second window for some reason.

    I'm experiencing a not-quite-crash every time I attempt to open firefox on my new computer. What happens is that the menu bar (which I prefer to have visible instead of that orange single-button menu) has all the letters on it turn gray, and I lose my ability to click anywhere on the page, including to close it. If I attempt to close the page via the taskbar it doesn't let me. It does, however, let me open new windows via the taskbar which don't have the same problem, which allows for an easy-but-inconvenient fix. I've tried it out and it does not have the same problem in Safe Mode. As a result of not being a "true" crash I can't give a crash ID, so you won't be able to trace it that way, sorry.

    ''Problem:'' For whatever reason, NoScript is stopping Runescape Community Toolbar from working properly which freezes your first Firefox window.
    ''Fix:'' Uninstall the toolbar. Disable NoScript. Install the toolbar. Add your RS account to it and make sure it works, then Enable NoScript again.
    EDIT: Posted a fix earlier that was wrong. Corrected to the right one, sorry ^_^ Answer was on Runescape Forums.

  • Execute SSIS Package from JOB which contains Execute Process Task calling a .bat file

    Hi All,
    I have a EXCEL Macro needs to be called from SSIS. We could not use Script task because of some internal reason.
    So we have taken an approach to call a .BAT file using Execute Process Task. This .BAT file will call a .VBS file which will execute the EXCEL Macro.
    The SSIS Package is running good if I execute the package from BIDS.
    But the real problem is with the scheduling this SSIS Package using SQL JOB.
    If i execute this SSIS package from SQL Server Job, its executing the whole package successfully except the Execute Process Task.
    So the overall issue is SQL Server Job is not executing properly if I call any .BAT file from the SSIS Package.
    Please give me suggestion to get rid of the issue. Thanks in advance.

    Hi Sai.N,
    If you run the SQL Server Agent job manually from SSMS, does the package execute properly? If the package executes properly when you run the job manually, the issue should occur due to permission issue. In this case, I suggest that you create a SQL Server
    Agent proxy based on the current Windows account which you use to log onto the operating system, and run the job under the proxy account.
    If it is not the issue, please enable logging in the package as Visakh mentioned and post the warning/error message for further analysis.
    Regards,
    Mike Yin
    TechNet Community Support

  • WebADI: How to find out which integrator executed the upload PL/SQL program

    Hi,
    I understand that we can create a integrator to upload data to EBS and execute a PL/SQL program.
    Is there any way to find out which INTEGRATOR executed this PL/SQL program?
    Thanks.
    Regards

    Alternatively:
    select name, plsql_debug from sys.all_plsql_object_settings

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for