How to stop the Action method when an Exception occur in another method

Hi all


{} public void action (event clientEvent)

startAction();

JOptionPane.showMessageDialog (null, getDocumnetId());

}



How to stop the action of the method ("action"), if an exception occurs in the method ("startAction")
(if the exception to happen we didn't need to show the JOption Message)

Hello

Try FacesContext.getCurrentInstance () .renderResponse ();

Frank

Tags: Java

Similar Questions

  • How to stop the Popup Adobe when printing?

    I am constantly creating PDF files using Adobe Acrobat Professional 7.0. Create from several programs: Office Word, Excel, Paint, Etc. as well as AutoCADD.  I create them using Adobe as a printer, so printing to PDF. Once the PDF has been created since the other program via Adobe printing, the new PDF opens for viewing. I'm ok with that; However I then click on another program and after a few seconds the PDF file appears again. Even if I close a few seconds later, he appears again. When I print several sheets of a program, I jump back and the popup function slows me down up to big-time or cause me to spoil the files I work with.

    How to stop the Popup from Adobe?

    You must check the program setting Distiller, the Adobe PDF printer properties and Acrobat PDF conversion settings and disable the "view PDF results.

  • BlackBerry smartphone how to stop the charge battery when it is connected to the PC?

    Hi guys, anyone know how to prevent the battery charge when the BlackBerry device is connected to the desktop via USB Manager? TKS!

    boldberries wrote:

    and I heard that it is bad recharge the battery when it is completely full.

    No good info. It is always good to overflow of a charge.

    Here's some good advice from loading, please read and you will see that many of them will be applicable to you.
    http://www.blackberrynews.com/2008/05/20/battery-use-tips-for-your-maximum-battery-life/

  • How to stop the action to enter text?

    As a step in an action, I create a text layer. I need to pause the action so that the user can enter text in the layer. I have to pause the action by clicking the dialog icon turn left the stage to create the text layer. However, I can't find a way to continue the implementation of the action after the text entry. What is the right way to do it? Thank you.

    By pressing the box check Commit on the toolbar options or by pressing the Enter key should continue this action after the text is entered.

  • PLSQL question about printing the line number when an exception occurs

    Hi all

    My database: oracle 10G

    Here's my question:

    Explain my problem using a simple procedure, such as:

    create or replace procedure p_hello_world
    as
    [a few variables declared]
    Start
    [a lot of code here]
    exception
    while others
    dbms_output.put_line ('Exception occurred for the p_hello_world procedure');
    dbms_output.put_line ('sqlerrm' |) SQLERRM);
    dbms_output.put_line ('sqlcode' |) SQLCODE);
    -Suppose I want to print the line number where the exception occurred, pourrais I do, if so please help me with this
    end;

    Now it's the same construction that I use for my use, I have a comment in the above exception block where I need to print the line number where the exception is produced, now since I'm on so that any other article, my procedure is always succeed even if an exception occurs, but using this technique I am not able to quickly debug my code but print line number would help me a lot Please help me with this as its rescue me great distress.

    Concerning
    Rahul

    Try something like:

    dbms_output.put_line(sqlerrm || chr(10) || dbms_utility.format_error_backtrace);
    

    (Hoping that this is a simplified example and you are not actually using dbms_output as an exception handler...)

  • How to stop the band Announces: «when you're done...» »

    Unit VMO 4.0.3

    When the user has finished their personal greeting message, they want the appellant to go straight to leaving a message. They do not want to "leave message after the tone, when you're done, you can hang up or hold for more options" etc.

    Any ideas how to disable this option?

    See you soon,.

    Stuart Smith

    You can also check this post for hwo remove this prompt altogether - it is not taken in charge of TAC (the prompt is replaced on the upgrades, you will have to redo this when you upgrade in the future):

    http://forums.Cisco.com/eForum/servlet/NetProf?page=NetProf&type=bookmarks&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40.eeaf10d/0#selected_message

  • How to stop the music played when I open a new tab. This just started to happen.

    When I open a new tab, the music begins to play. It sounds like something Publishers Clearing house could play.
    I didn't add everything add on.

    I found the answer.
    It is only on the new blank tabs. Pages seen playing music.

  • How to stop the bookmarks menu when you have selected a bookmark endangered

    Hi, my Firefox bookmarks are nested; When I select one, the menu of bookmarks disappears, which means to open multiple bookmarks similar subject in different tabs that I have to constantly re - open bookmarks and dive down to the same level. Is it possible to make the menu bookmark "sticky"? I'm on XP SP3 and the latest version of Firefox (3.6.3)

    You can open bookmarks in the sidebar (Ctrl + B) If you need to open more than one bookmark.

  • How to stop the cloud running when you work in Photoshop.

    I use Photoshop a lot. That's all. I don't want all this internet stuff that I'll probably never use running while I'm already put to test my computer. How do I disable it? (until I change my mind)
    Thank you!

    What are your internet orders are you referring?

  • How to stop the generation FND_USER.customer_id when using LDAPUserImport

    When a user is created in the form of 'set the user' R12.1.3, no customer_id is created in the fnd_user table.

    When a user is created using LDAPUserImport (from a ldfiwrite against OID), the customer_id is filled.

    How to stop the generation customer_id when you import users in R12?

    I tried to disable all these events business (except the last 2), but not of joy:

    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAccount.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAccountRole.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAcctRelate.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAcctSite.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAcctSiteUse.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustProfileAmt.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustomerProfile.create
    ACTIVE Trading of Oracle community oracle.apps.ar.hz.OrgCustBO.create
    ACTIVE Trading of Oracle community oracle.apps.ar.hz.PersonCustBO.create


    (For OrgCustBO.create and PersonCustBO.create, the status field is fixed... cannot change)

    All advice appreciated.

    Thank you

    Hello

    Pdf linked in document 261914.1 utility MOS LDAPUserImport has a parameter named - tcaRecord
    which takes either y or N as parameter (is default).
    I guess that if you fill in this parameter with N, no record CAW (customer) will be created...

    Concerning

  • How to stop the recursion on event

    Hello

    I have a table shape with text fields that have the onchange event handlers. The event handlers call a function that changes many of the fields, so there is a lot of recursion. How could stop all other events when a change occurs?


    Tiina

    Normally, changing a value via javascript will not trigger an onchange event. However, dynamic action of the apex 'value' default will trigger a change event. So if you use dynamic actions then the solution would be to define 'Change to suppress event' on 'Yes' on real action.
    If you use javascript, check if you use $s to set a value. The docs say this:

    PValue value is stored in the hidden field to return. The pSuppressChangeEvent parameter is optional. By the way either FAKE or not passing this parameter value results in a change event of shooting for the element set. Pass TRUE to prevent the change event firing for the element set.

    If you do not use dynamic measurements of the $s function, then check if a change event is raised in your javascript, usually done by '. change().

  • How to stop the open a popup when I click on an icon. I want the icon to do its job.

    How to stop the open a popup when I click on an icon. I want just the icon to do its job and open the file. However, I get the crazy popup indicating to choose the program you want to open the file.
    When we first got it it has always opened when a user has clicked on an icon. Then he started doing this several months ago, and I don't know why.
    Please help if you know how to beat this computer.
    Windows Vista Home Edition
    CEH

    Hello

    There are MANY varieties of the latter with a lot of names, but all can be removed with the
    same methods:

    Vista Antispyware 2010, XP Internet Security 2010, Antivirus 2010 Vista and Win 7 Antispyware 2010
    are rogue antivirus, scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How prevention JButton to actions generated when the user press down

    How prevention JButton to actions generated when the user hold down the key or the short cut
    The code below to show the question when the user keep pressing Alt O
    We want to stop the JButton to generate multi shares just a share only
    A code example shows the behavior that needs to be prevented. Keep pressing "Alt + O" and you will see that the standard ouptput will print the timestamp
    Note Please, I'm NOT interested in the mouse press which is a solution by adding a threshold (setMultiClickThreshhold (long line) on the JButton as an attribute.

     
    public class TestPanel extends JPanel
    {
    
       private JButton btn;
    
       public TestPanel()
       {
          btn = new JButton("Open");
          this.add(btn);
          registerCommand(new MyAction(), InputEvent.ALT_MASK,
                KeyEvent.VK_O, btn, btn.getText(), 0);
       }
    
       public static void registerCommand(AbstractAction action,
             int mask,
             int shortCommand,
             JComponent component,
             String actionName,
             int mnemonicIndex)
       {
          InputMap inputMap = component.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
          KeyStroke knappKombination = KeyStroke.getKeyStroke(shortCommand, mask);
    
          if ((component instanceof AbstractButton)
                && mnemonicIndex >= 0
                && mnemonicIndex < actionName.length()
                && (shortCommand >= KeyEvent.VK_A && shortCommand <= KeyEvent.VK_Z))
          {
             ((AbstractButton) component).setDisplayedMnemonicIndex(mnemonicIndex);
          }
    
          if (inputMap != null)
          {
             ActionMap actionMap = component.getActionMap();
             inputMap.put(knappKombination, actionName);
             if (actionMap != null)
             {
                actionMap.put(actionName, action);
             }
          }
       }
    
       public static class MyAction extends AbstractAction
       {
    
          /**
           * 
           */
          private static final long serialVersionUID = 1L;
    
          @Override
          public void actionPerformed(ActionEvent e)
          {
             System.out.println(System.currentTimeMillis());
    
          }
    
       }
    
       public static void main(String... args)
       {
          SwingUtilities.invokeLater(new Runnable()
          {
             public void run()
             {
                JFrame frame = new JFrame("Testing");
                JPanel panel = new TestPanel();
                frame.getContentPane().add(panel);
                frame.setPreferredSize(new Dimension(500, 500));
                frame.setMinimumSize(new Dimension(500, 500));
                frame.pack();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
             }
          });
       }
    
    }
    Published by: user12130673 on 13-feb-2013 03:01

    Use getKeyStroke (int keyCode, int modifiers, boolean onKeyRelease) hit with onKeyRelease = true instead?

  • HOW TO STOP THE NEW ADS ON FACEBOOK... THEY ARE FRIGGIN BORING AND REEK HAVOC WHEN YOU PLAY... PLEASE ME TELL HOW TO BLOCK THEM!

    How to stop the new ads on Facebook

    I get very annoyed by ads to where they are on the web so I use an add-on called 'Adblock Plus' which uses its database to block known ads and you can even block yourself!

    With 'Adblock Plus Adblock Plus ' installed, you can block all advertising photo:

    1. right click on the announcement of photo that you want to get rid

    2. in the menu, click the option that says: ' Adblock Plus: block image... "(it is usually at the bottom of the menu)

    3. when the pop up box appears, simply click 'Add filter' and advertising will disappear before your eyes!

    If this was the answer you are looking for, please click 'Resolved' - thank you.

  • How to stop opening two windows when I clicon an e-mail, home page link and the link both open. I want to just link to open

    How to stop opening two windows when I click on an e-mail link, the home page and the link that the two open. I want to just link to open

    I deleted cookies and tried to stop this site to open, but it opens, however, how to stop it! I have young children in the House and we don't need that sort of thing...

Maybe you are looking for