How to Stop the method Action When an Exception Occur in other Method

Hi All ,
public void action( Event clientEvent) {
startAction();
JOptionPane.showMessageDialog(null, getDocumnetId());
how to Stop the method action ( "action" ) if an exception occur in the method ("startAction")
( if the exception occur we doesn't need to show the JOption Message )

Hi,
try FacesContext.getCurrentInstance().renderResponse();
Frank

Similar Messages

  • Could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

  • How to stop the video buffering when video is paused

    Hi
    I am developing the video player with custom video controls and I want to stop the video buffering when my video is paused. As sson as I play the video the buffering starts from the last bufferring point.
    can any one please help me for doing this i searched lot but not getting the solution please help me out to sort out this.
    Please refer the following link that I want to create the progress bar for my video player.
    http://tv.adobe.com/watch/training-with-trani/shake-detection/
    Thanks
    Sameer

    Hi
        Here is the code i would tried bothe bufferTime and maxBufferTime but not getting the required output.
        please check the code below.
        var _videoInfo = new Object();
        _videoInfo.onMetaData = onMetaDataHandler;
        ns = new NetStream(nc);
        //ns.maxPauseBufferTime = 0;
        ns.client = _videoInfo;
        ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
        ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncErrorHandler);
        sndTransform = new SoundTransform(initVol);
        vid = new Video(stage.stageWidth,stage.stageHeight);
        vid.smoothing = true;
        videoCont.addChild(vid);
        vid.attachNetStream(ns);
        ns.play("video.flv");
        ns.soundTransform = sndTransform;
    Thanks

  • What happens when an exception occurs at finalize method ?

    What happens when an exception occurs at the time of cleaning objects in finalize methods?
    Will program crashes?

    1.) Why don't you try it? You can simply throw your own exception.
    2.) For this kind of questions the JVM specification is a good resource, for your concrete problem the chapter about finalization might be interested (look for the sentence starting with "If an uncaught exception ...").

  • How to stop the Flex application when user clicks on Cancel button from JS-confirm message?

    Hi All,
    I use the next code when a user clicks on a link:
    private function clickHandler():void
          ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
          navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
    This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
    How to stop Flex performing the next code when a user clicks on the Cancel button?
    Or, how to catch which button is clicked by a user in Flex?
    Thanks!

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • How to stop the iTunes launching when play/pause is pressed? PLEASE HELP

    I have a macbook pro 13 inches. When I play computer game, during an intense battle, I always accidently press the play/pause button.
    Immediately, the iTunes launch, which will make my game go frozen and I would always lose the battle. This make me extremely frustrated, I have lose so many battles cause of this problem. I know that I could turn the top row of my action keys to Fn keys. That would solve my problems, right? But no. Becuase I use those keys very often. It would be awful without them. For example, the screen brightness, the mission control, the keyboard back-lit light, the volume adjust. Without all these, my mac experience would be awful. Im just wondering if there are other solution beside for turning the Fn keys on.
    PLEASE HELP ME

    This has fixed it for me
    http://redth.codes/itunes-media-hotkey-disabler/

  • How to stop the "Read Reciept" when using messaging in the BI Process Chain

    Hey all - I set up a message in my process chain and now we get an email daily when that process finishes.  However it's asking for a read receipt from the users that it sends the message to.  I searched on this and also clicked on every button the message settings but could not find a way to turn off the read receipt request. 
    Does anyone know how to turn this off?

    HI,
    Go To
    1. SCOT   Tcode.
    2. Click on SETTINGS on the upper tab.
    3. Click on CONFIRMATION OF RECEIPT..
    4.and check the Radio button.. SAP  doesnot expectreceipt confirmation from internet..
    and click the tick button..
    Hope this helps u..
    Best Regards,
    VVenkat..

  • How to stop an event action when other event happen ?

    This is my first swing program
    I want to design an application with two buttons,"start" and "stop"
    Pressing "start" will start listing data
    Pressing "stop" will stop listing data immediate
    What should I do??
    I try to use a flag like the following:
    ==============================
    btnStartActionPerformed() {
    while(1) {
    if (loop_break) break;
    btnStopActionPerformed() {
    loop_break = true;
    ==============================
    but btnStopActionPerformed() will not start until btnStartActionPerformed() is finished
    What should I do?

    I agree with the thread comment...
    But if you are going to use a while loop, you can do this:
    loop_break = false;
    while(!loop_break) {
    }But if you need to stop anywhere inside the loop, you need to use if statements to check that flag between every action the while loop contains. Otherwise, you're limited to breaking whenever you check the flag, of course, or as above, before the next loop iteration.

  • How to stop the black screen when opening firefox

    When I open a Firefox page it is just a black screen, no URL bar no Back, Forward or Home button nothing appears. After a couple minutes I can mouse over some stuff (mostly the blank spaces where you can enter text) and it will appear, but still can't see the "buttons" or menus (i.e.Internet options). Need to access the internet options to choose no proxy but I can't.

    May need to reinstall

  • How to stop the 2nd thread when 1st thread caught exception.

    Hello Friends,
    I have written a java program using Thread.
    In this program i have created two separate threads.
    For example Thread1 and Thread2.
    During execution of both threads,
    If any exception comes on Thread1 or Thread2, the other thread should not be continued its execution. Suddenly the other thread has to interrupted its execution.
    How to do this. If any body know the way to do this, please help me.
    Rgds
    tskarthikeyan

    Try this. It was working Fine.
    public class ThreadComm {
         public static volatile boolean exceptionThrown= true;
         public static void main(String[] args) {
              Thread t1 = new Thread(new Runnable() {
                   public void run () {
                        try {
                             /*if (exceptionThrown) {
                                  System.out.println("First Thread Interrupted");
                                  return;
                             for(int i=1;i<=5000;i++){
                                  System.out.println("FirstThread>>"+i);
                                  if(i==2500) {
                                       throw new Exception("First Thread Interrupted");
                        }catch(Exception e) {
                             exceptionThrown = false;
              Thread t2 = new Thread(new Runnable() {
                   public void run() {
                        try {
                             /*if (exceptionThrown) {
                                  System.out.println("Second Thread Interrupted");
                                  return;
                             for(int i=1;i<=1000;i++){
                                  System.out.println("SecondThread>>"+i);
                                  if(i==777) {
                                       throw new Exception("Second Thread Interrupted");
                             int i=0;
                             while(exceptionThrown && i<=5000) {
                                  System.out.println("SecondThread>>"+i);
                                  if(i==4000) {
                                       throw new Exception("Second Thread Interrupted");
                                  i++;
                        }catch(Exception e) {
                             exceptionThrown = true;
              t1.start();
              t2.start();
    }

  • How to stop the noisy screen when opening and closing?

    Whenever I open, close or adjust the angle of my laptop screen it makes an annoying creek and click sound. The sound usually varies whether its loud or faint.
    I think it's friction or something. Can I lube it up some way?
    Any suggestions?
    Thanks.
    Dorian

    Try a RadTech Glide Kit…
    http://www.radtech.us/Products/Glides.aspx

  • How to stop the NOTIFICATION prompt when any messa...

    (have belle)
    hey.... actually a few days back.. i gt a virus in my system.. so had to format my phone.. den took backup nd ol....
    bt aftr dat wenevr any call or message comes and i unlock my mobile its a big notification on my screen.. lyk d option wen we have to install something and we get option...
    "1 new message
     show... exit....     "
    i dun want dis option, coz pull down menu is gud enugh.. nd previously i dindn have it..
    its a small problem... but plz tell any1..  

    hellooooo...
    sm1 plz answer..
    i knw its nt worth ne1's tym... bt plz if u can tell..  

  • How to capture the record value, when an error occurs

    Hi , can you please help us in achieving the below requirement.
    i have source with 10 accounts , i have to update the 5 target tables for the 10 accounts, i am using a for loop to do insert/update operations.
    when an primary key/unique constraint error occurs while doing the insert/update operations, i want to catpure that account number along with the
    error message and store in a table.
    right now i am using sqlerrm,sqlcode in my exception block to capture the oracle error code and error message,i need to capture the account number along with this message. please tell me how to achieve this ...
    thanks

    if you want to log the error in the table and keep going with the rest of them you might want to check out bulk collection exception handling.
    http://psoug.org/reference/array_processing.html
    CREATE OR REPLACE PROCEDURE forall_errors IS
    TYPE myarray IS TABLE OF tmp_target%ROWTYPE;
    l_data myarray;
    CURSOR c IS
    SELECT table_name, num_rows
    FROM all_tables;
    errors PLS_INTEGER;
    dml_errors EXCEPTION;
    PRAGMA EXCEPTION_INIT(dml_errors, -24381);
    BEGIN
      OPEN c;
      LOOP
        FETCH c BULK COLLECT INTO l_data LIMIT 100;
        -- SAVE EXCEPTIONS means don't stop if some DELETES fail
        FORALL i IN 1..l_data.COUNT SAVE EXCEPTIONS
        INSERT INTO tmp_target VALUES l_data(i);
        -- If any errors occurred during the FORALL SAVE EXCEPTIONS,
        -- a single exception is raised when the statement completes.
        EXIT WHEN c%NOTFOUND;
      END LOOP;
    EXCEPTION
      WHEN dml_errors THEN
        errors := SQL%BULK_EXCEPTIONS.COUNT;
        dbms_output.put_line('Number of DELETE statements that
        failed: ' || errors);
        FOR i IN 1 .. errors
        LOOP
          dbms_output.put_line('Error #' || i || ' at '|| 'iteration
          #' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX);
          dbms_output.put_line('Error message is ' ||
          SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
        END LOOP;
      WHEN OTHERS THEN
        RAISE;
    END forall_errors;
    /

  • How to stop the prodution order creating when the product is not valued?

    Hi guyes:
    How to stop the prodution order creating when the product is not valued using CO01?
    I hope that when i create the production order,the system will check the product is valued or not,if not
    the system will show an error or warning message!
    How to config for this?
    Thank you!

    Dear Zhao Gang,
    Check with this user Exits mentioned in this link,
    Prevent Production Order from "Release" if there is no Cost Estimate
    Re: User Exit at Production Order Release
    Check and revert back.
    Regards
    Mangalraj.S

  • How to stop the option key from changing tools when trying to subtract from a selection?

    How to stop the option key from changing my tools when I am trying to subtract from a selection?
    I'm running CS3 on Mac OS Leopard, and the automatic tool switching slows me down, but even preferences doesn't show a way to turn this off.
    Thanks for your help.

    With any marquee tool, JUST holding down the option key should not switch tools. You need to explain the problem much more carefully, It's completely impossible to tell from your description whats going wrong.
    automatic tool switching
    The only preference related to this, is to do with the SHIFT KEY - "use Shift key for tool switch".

Maybe you are looking for

  • PowerPivot data model as Source on Cloud

    Hi All, We have an excel workbook with a heavy powerpivot model. Can we use any Cloud services to segregate the powerpivot model and use it as a data source? We have already accessed the PowerPivot Gallery on Sharepoint(On-Premise) and Tabular Cube s

  • Premier 3.02 crashes when breaking apart transferred slide show

    Following the instructions in a reply on the PS Elements forum, when I right click on the scene transferred from PSE to Premier Elements and right click in the menu to break apart the slide show for additional editing, after receiving a "low system m

  • Automatic Row Processing (DML) - Return Key Into Item

    Hello, This question is on Apex 4.2: I'm Displaying the [UNIKEY] column value after the record is inserted into the table using : page process > process row table_name > Source: Automatic Row Processing (DML) > Return Key Into Item > "Item Name" This

  • Multiple access level Webi Reports

    Hi, We have Business Objects Enterprise XI 3.1 SP2 FP2.4. Our problem is that we want to asign to the same user diferent levels of visualization for a webi report, but if we asign the security at application level (WebIntelligence) the access levels

  • How to Install Forms 10g on Linux?

    HI All i download Oracle 10g Forms for Linux (File Name is "as_linux_x86_ids_101202_disk1.cpio"). Any one can help me how to install it on Linux (step by step)?? Regards Saqib.