How to handle OK button in faces error message

Hi everyone,
Iam using Jdev 11.1.2.0. I have a scenario where faces error message will be displayed . After clicking ok button, some validation should be done . If iam using popup with dialog, i can handle my requirement using java script but now my scenario is with faces message . Kindly suggest me how to get hook for the button OK in faces message. Thanks in advance.
Regards
Alekhya

As Frank said, it does not allow customization.Instead of Faces message you can use an popup with dialog.use dialog listener in ok button
like
public void dialogListener1(DialogEvent dialogEvent) 
    if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok)
     // write your custom code for ok event
    } else
      // write your custom code for cancel event
read more on http://www.techartifact.com/blogs/2013/03/handling-ok-and-cancel-button-in-afdialog-using-popup-in-oracle-adf-by-dialogl…

Similar Messages

  • How to handle Back button, Browser Refresh problem at server side.

    Hi Friends,
    How to handle Back button, Browser Refresh problem at server side in java?.
    I am able to trace that,
    request.getHeader("ACCEPT") is returning value- */*
    when the browser was refreshed and returning different MIME types
    for all other actions from browser.
    I have doubt, will the above solution works always for all servers,browsers?.
    Please also specify any solution to handle back button at server side?.
    Thanks in Advance.
    Venkat..

    I'm sorry I don't think tht's the right solution for
    the above question....
    We must be aware that whatever scripting methdologies
    we either javascript/vbscript would executed @
    client(browser) side not @ server side....
    Dud If U get a good solution keep me updated.....
    THANKS & REGARDS,
    RAHULMy dear friend ...
    the bad news is that u simply cant disable or add any listener to the back button of the browser.
    When u hit the back button of ur browser the URL gets re-executed. So in case u have a JSP then the history.forward() is the best solution. [only if the page doesnt get expired similar to secure https sites]
    Now dont say that user can have javascript disabled ...those users will have a pretty touch time browsing websites since javascripts r used extensively by almost all websites.
    But in case u have an action.do or servlet call then u need to manage it using a session variable since the request will be sent to the server rather than client.
    For multiple form submittion issues read the following article in javaworld...
    Client vs. server solutions
    Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.
    In the client-only strategy, a flag is set on the first submission, and, from then on, the submit button is disabled based on this flag. While appropriate in some situations, this strategy is more or less browser dependent and not as dependable as server solutions.
    For a server-based solution, the Synchronizer Token pattern (from Core J2EE Patterns) can be applied, which requires minimal contribution from the client side. The basic idea is to set a token in a session variable before returning a transactional page to the client. This page carries the token inside a hidden field. Upon submission, request processing first tests for the presence of a valid token in the request parameter by comparing it with the one registered in the session. If the token is valid, processing can continue normally, otherwise an alternate course of action is taken. After testing, the token resets to null to prevent subsequent submissions until a new token is saved in the session, which must be done at the appropriate time based on the desired application flow of control.
    for more details refer :
    http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
    Hope u got the idea.
    FYI I have been using both these ideas in my credit card payment gateway project. This concept has worked really well.

  • Dsiaplaying faces error messages, retaining screen details

    Hi Guys,
    When i try to display faces error messages my page is getting reloaded again and hence im losing my details selected in the screen, how do i display error messages by retaining the screen selection details, the page uses reference data which also gets loaded when it refreshes for displaying error message, i dont want this to happen also, I just want to retain the screen details..

    I am not sure why you would be loosing information. Make sure that you do not immediate=true set on the command button or link that you are using to submit the form. As far as display an error message you can do the following
    FacesMessage.SERVERITY_ERROR display an error message in red
    public static void addMessage(String dispMsg) {
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage faceMsg = new FacesMessage(FacesMessage.SEVERITY_INFO,dispMsg,dispMsg);
    context.addMessage(null,faceMsg);
    }

  • How to validate VO result and display error message?

    Hi,
    I have created 2 pages:
    Page 1: User to enter employee number and click 'Go' button to search (redirect to Page 2)
    Page 2: To display employee details
    In situation where employee is suspended, employee detail will be display as blank in Page 2.
    At the same time, we would like to display error message which inform user to refer to HR Department for this scenario.
    Need guidance on how to perform the validation and display error message.
    Thanks and Regards,
    Shiau Chin

    Hi Shiau,
    In this case instead of redirecting to next page, throw an exception on the same page.
    If you want redirect it to next page then while redirecting it to next page pass some info that can indicate that employee is suspended, get this value in Process request if it has value then throw exception else query details.
    Regards,
    Reetesh Sharma

  • How do I get rid of the error message "There was an error connecting to the server “Office AirPort Extreme” ?

    How do I get rid of the error message "There was an error connecting to the server “Office AirPort Extreme” ?  This message shows up 3 times when I boot my iMac.

    I do have a USB hard drive hooked up to the Airport.  I've never created an AppleScript for it.  Should I disconnect the USB drive and see if I still get the error message?
    Thanks for your reply!

  • When starting Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message.

    When starting up Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message?
    The error message is: what happened: Type Error: Components. classes ['@mozilla.org/extensions/manager;1'] is undefined.
    It appears all the time already from the beginning after installing Firefox 4.

    Thanks a lot. The Ask toolbar created this problem. Another problem is: When searching on the web via Google, normally it is possible to type a few letters and then look what appears and then click on the wanted word(s). A number of word(s) ineed do appear, however it is not possible to select any of them as ws possible as mentioned in olders versions.

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • How can I reset ipod classic when error message 439 shows?

    how can I reset Ipod classic when error message 439 shows?

    The easiest solution and apparently the only approved solution via Apple (although a pain if you haven't backed up your device) to restore the phone if you can't figure out the passcode. It will erase everything but if you have a fairly recent backup then you will be fine...you may only lose anything that was added after the last backup. You can also try searching the Apple Support pages and forum to see if there is another solution. Ultimately, it's a plus to a certain degree that there is no easy way to change the passcode....if someone "found" it and wanted to try to get in to it....but it's a pain when it's a situation like yours.
    .https://discussions.apple.com/thread/3750135?start=0&tstart=0
    http://support.apple.com/kb/HT4113#
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf pg 165

  • How do I correct an "script failed" error message?

    How do I correct a "script failed" error message on my Apple TV?

    Welcome to the Apple Community.
    What are you doing when this occurs.

  • How to handle the 500 Internal Server Error + ADF

    Hi,
    How to handle the 500 Internal error ADF application? I tried with giving the error page in web.xml but it does not work
    Please advice

    i'm not sure if this is related, but we also have the following in the web.xml file
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>

  • How to handle radio-buttons in FB05  bdc????

    How to change Additional selections radio-button from none to Document numbers in CALL TRANSACTION BACKGROUND MODE..............................................
    Edited by: Raghavender Poosarla on Apr 8, 2008 10:32 AM

    I have BDC requirement of FB05 transaction... I am stuck at one point where this recordin is working in Foreground mode and not in Backgroung mode...The reason being there is a bit in which I am selecting a readio-button from value 'NONE' to 'Document numbers' WHICH IS HAPPENING IN FOREGROUND AND NOT IN BACKGROUND ....Can any one tell is there any special way for handling radio-buttons in recording of an transaction???

  • How to handle enter button in Jdevloper

    hi all,
    Is there any code to handle ENTER button,
    Thanks

    I'd be really cautious here.
    I read "self service pages" and immediately thought "Oracle E-Business Suite, OA Framework"
    If that's the case, I suggest you post on the OA Framework forum. If you're talking about ADF Faces, then Didier has pointed you in the proper direction.
    Regards,
    John

  • How to handle Back button in IA06 BDC

    Hi all,
    I am calling IA06 inspection screen for an task list operation using BDC from my custom program. on this screen user can change the SAP data. if I save the task list then it's working fine.
    But I have one issue how to control back button, when user make any changes on this screen and click on back button because it calls all the previous screens which i skipped using BDC.
    Or for this particular functionality there is any Function module same as for Characterstics as "CLFM_OBJECT_CLASSIFICATION"
    Please advice.
    Thanks,
    Sanket Sethi

    Hi all,
    Please suggest if there is any function module/ API  to call Task list characteristic screen directly; same as for Task list classification screen using Function module CLAF_CLASSIFICATION_OF_OBJECTS.
    Thanks,
    Sanket Sethi

  • How to do settlement for service order - error message

    Hi,
    FYI, right now i'm involving with sap enhancement implementation (4.6c to Ecc6.0).In 4.6c I'm using Z program (SA38) to maintain settlement rule & create session name and then, KO8G for performing settlement.In log issue session, everthing is ok (status - process) and no error in log (but it still goes to dummy cost centre).
    in Ecc, i still using same program and T-code, but error message in log exist.(status - Incorrect)
    Notification is completed --> can only be displayed
    Rule cannot be deleted
    Order 1000000933: no costs or revenue exist
    Invalid account assignment category (--> long text)
    Transaction error
    can anyone give me guidance and how to handle this issue? does any configuration maybe wrong or not, please help me. I'm very appreciated your helps.i'm also looking method which using standard t-code (without customize program) to perform service order settlement.user manual very useful and important for me.
    Thanks.

    Hi
    anyone can helps me?
    Thanks

  • Firefox doesn't exit properly. Please put a button on your error message to close it. I'm tired of having to remove and restart.

    This seems to be a recurring problem with many of us. Every day I have to force an exit to Firefox (3.612) and restart it. None of the suggestions made for fixing it help (extensions etc). How about taking that error message and putting a button on it that stops Firefox and restarts it? Click and done. If we can't fix it, work around!
    Thanks.

    Some possibilities are suggested in the "Hang at exit" section of this article:
    http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit
    There's quite a bit to work through there.

Maybe you are looking for

  • Split IV indicator on the PO

    In SAP ECC 6.0 - this relates  only for Standard NB PO's we create to procure from a Supplier. With new Service Packs we are currently testing, the GRBIV indicator is now required if the Split IV indicator is selected on the PO item screen.  I have r

  • Cannot use firefox to read pdf files

    I get an error massage when I try to open a pdf file. Says it cannot read it in my browser. The funny thing is, that most times, it does open the file anyway! But unfortunately not always.

  • One Sold-To and different Payers

    Hello all In my Sls Order I will have a Sold To. This SP (sold to party) at Master Data will have his personal VAT Registration Number (General Data/Control Data Tab). I just sell services (no delivery/no stock). I make a invoice for each position I

  • Why does Mavericks 10.9.3 freeze up during inactivity ?

              I can get Mavericks 10.9.3 working again now after freezing constantly but now it seems to freeze after being inactive or when I stop to go do something. Does anybody know what may be causing it?  This MacBook Pro worked fine before upgrade

  • Using Canon 6D raw files in photoshop and between lightroom and photoshop

    I have photoshop CS6 and Lightroom5