How to applty setMneomonic in Confirm Dialog of JOption Pane

hi I am using
javax.swing.JOptionPane.showConfirmDialog(parentComponent,"Do you really want to Exit ? ","Confirm Exit",javax.swing.JOptionPane.YES_NO_OPTION);i know how to set the hot keys( setMnemonic(char)) in the JButton but i dont know how to use it in JOptionPane
Also i want to take password input from JOptionPane.showInputDailog
how i can call setEchoCahr('*');
for input dialog
thanks

wht have you written in dialogListener="#{scheduleBean.deleteScheduleDialog}"..
you dont have to go to viewRowImpl for deleting.. you can drag and drop the Delete operation from the corresponding ViewObject.. onto the jsf page as a button so that you will get the Delete operation in your pagedef..
then you can call the delete operation from the dialoglistenr if the dialogue outcome is 'ok'
public void dialogListener(DialogEvent dialogEvent)
Outcome lOutcome = dialogEvent.getOutcome();
if (lOutcome.equals(Outcome.ok))
// get the binding container
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
// get an Action or MethodAction
OperationBinding method = bindings.getOperationBinding("Delete");
method.execute();
List errors = method.getErrors();
if (!errors.isEmpty())
// handle error
}

Similar Messages

  • How do I stop the "Confirm Dialog Preference" box from appearing everytime I load a page?!

    Every time I a go to a new page, whether it is the same site or not, I get a dialog box that appears that reads "Confirm Dialog Preference," and the options include yes or no. How do I get this to stop? It is really, really annoying.

    Can you attach a screenshot showing the dialog?
    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

  • Confirmation Dialog in 10g

    hi all,
    i 've a Delete button(af:commandbutton) on page. its 'action' attribute is associated with a method in bean.
    <af:commandbutton action="#{abcbean.delete_action}"/>.
    how i put a modal confirmation dialog on button like, 'Are u sure want to delete ...?' with yes-no button.
    when user presses 'yes' on dialog, method in bean would invoke. when presses 'no' remain on same page.
    i m using jdev10g.
    thanks with regards to all

    hi you can call a popUp(Dialog) and execute the code later with the returnListener property of that button
    the returnLietener have an object call ReturnEvent in this object allow Map objects
    example code:
    jsp commandButton java Action code:
    Map param = null;
    param = new HashMap();
    param.put("Yes","Ok");
    AdfFacesContext.getCurrentInstance().returnFromDialog(null,param);
    returnListener Method:
    public void handleReturnBuscar(ReturnEvent returnEvent) {
    Map param = (Map)returnEvent.getReturnParameters();
    if(param !=null){
    //delete the row
    more info = http://soadev.blogspot.com/2010/02/adf-faces-rc-simple-but-robust.html

  • How to get  the choice clicked by the user on a Confirmation dialog?

    Hi,
    'm trying with Confirmation dialog which should return
    'yes', 'No', or 'Cancel'
    I wrote like:
    String Message="Do u want  to update ??";
         IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
         IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( Message, controllerInfo.findInEventHandlers("Yes"), "Yes");
         dialog.addChoice(controllerInfo.findInEventHandlers("No"),"No");
         dialog.addChoice(controllerInfo.findInEventHandlers("Cancel"),"Cancel");
         dialog.open();
    It works as a normal dialog window
    But how can I get the choice that is clicked by the user.
    ie . either 'Yes', 'No', or 'Cancel'.
    can any body help me
    thanks
    Smitha

    Smitha,
    In addition to your code, create 3 event handlers in your controller, name them Yes, No, Cancel. In every event handler you know what event was fired, i.e. what button is pressed.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How to popup confirm dialog trying to navigate away with unsaved changes

    Is there any generic or built-in solutions for this common requirement?
    JDev: 11g
    any idea or material on this is appreciated.
    Thanks.
    Kevin.

    try capturing the onBeforeUnload event and display a modal confirmation dialog asking the user if he really wants to navigate away from the page; and warning him that if he does so, all the changes he made hitherto will be gone.
    However, you need to handle this intelligently since you need to identify if any fields in the form have changed and only then warn the user to confirm his decision to go away from this page.
    You can do this by having a flag which is initialized to false but when onBeforeUnload event is fired, you would check if any of the form fields in the page have changed by iterating over each and every form field,and then setting the flag to true if some thing changed
    the onBeforeUnload Handler will always return this flag, if it is true, you will get this confirmation popup, else the page will go away. To show a customized confirmation dialog, perhaps you would have to invoke the custom dialog call from with in the onBeforeUnload handler. When the user says yes, return false;else true.

  • Displaying Multiple Sentences in Confirmation Dialog Box

    Hi Experts,
    Can anybody please tell me how to display three or multiple separate sentences in a Confirmation
    Dialog box. I am able to diaplay two sentences in a single line but the dialog box is getting stretched a
    lot. So i want to diaply them in separate sentences onr below the other.
    Thanks a lot.

    Hi shrini...
                   you want to number of line display in one dialog box ..
                  you have to declare one Strinh like thiss as below..
    have to create one event method as OK...which is visible in eventhandler code as
    findInEventHandlers("OK");
    create one method in component aas showBox....
    public void showBox( )
        //@@begin showBox()
         String   dialogText="welocme to""\n""India""\n".........................
          IWDEventHandlerInfo info=wdControllerAPI.getControllerInfo().findInEventHandlers("OK");
         IWDConfirmationDialog win=wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,info,"OKK");
      win.open();();
    thanks
    jati

  • Wrapping the text on the confirmation dialog

    Can any one pls tell me how to wrap the text on a confirmation dialog?
    thanks in advance.
    regards
    Lakshminarayanan.V

    Hi,
    Currently this is simply not possible. Probably later TextView UI element will be enhanced to support this (at least, this feature is at "Whish List", search this forum for word POLL), and confirmation dialogs will inherit desired behavior automatically.
    For now you have to create your own component and use it pop-over window as confirmation dialog. In your component you may either use TextArea for multi-line display (quick and ugly) or split string into several context attributes and display them using several TextView UI elements (either dynamically created or pre-created till some reasonable maximum, say, 5 lines <-> 5 controls)
    VS

  • Confirm Dialog (JavaScript)

    Hi,
    I'm using the JavaScript confirm dialog attached to a button (return confirm('xxxxxxxxxxxxxxx').
    It works fine but I need two things:
    1. How can I change the window title?
    2. How can I change the titles of the two buttons? (I need them in Spanish).
    Thanks a lot for your help

    Hi!
    As far as I know, there is no possibility to change title of standard dialogs like alert, confirm etc. You can use window JavaScript object and set title in it's parameter name.
    And since JavaScript is realized in browser, it seems that change of your locale should change button's title to language of locale.
    Thanks,
    Roman.

  • Midnight Commander confirmation dialogs default to "yes"

    I finally found a file manager that I like. Yay.
    However, Midnight Commander's confirmation dialogs (e.g. when deleting a file) always pop up with "yes" preselected, which means that your data is toast (or whatever) if you accidentally hit Enter. Guarding against accidental keystrokes is IMO a Big Deal, and I consider this a rather serious issue.
    I've yet to come up with anything on this on Google... So, does anyone here know how to make those dialogs default to "no"?

    you are welcome,
    Nope, there is no config option for such thing. However you can change the source, in src/filemanager/panel.c then add query_set_sel (1); just before:
    if (query_dialog
    (_("The Midnight Commander"),
    _("Do you really want to execute?"), D_NORMAL, 2, _("&Yes"), _("&No")) != 0)

  • Tooltip for buttons on Confirmation Dialog Box

    Hi,
    How can we set the tooltips for buttons on the Confirmation Dialog Box.
    Pls throw some light on it.
    Rgds
    Shashank

    Found the solution:
    I Used 'ADMRadioGroupSuite1' Suite - RadioGroupSuite ("ADM Radio Group Suite") to group them. 

  • Confirmation dialog-native window

    Hi,
    how can i create native yes/no confirmation dialog with air
    window component like titlewindow with popup manager?
    Thanks

    Hi,
    how can i create native yes/no confirmation dialog with air
    window component like titlewindow with popup manager?
    Thanks

  • Conditional confirm dialog with button

    Hi all,
    I want to create a confirm dialog with submit button that can fire only if one item is not submitted in that page.
    i have one check box item in my page called P2_LWF
    i created confirm dialog with button using the below code
    javascript:if (confirm('Are you sure you want to proceed?')) {
    this.disabled=true; this.value='Submitted...';
    doSubmit('SUBMIT');
    The moment i click submit button i want to fire that confirm dialog only if P2_LWF is unchecked.
    How can i do that in my application?
    Regards,
    Anees

    Hi marko,
    find application link below
    http://apex.oracle.com/pls/apex/f?p=14972:1:25026364614886:::::
    user name: [email protected]
    pswd: symphony
    you can access my work space using below credentials
    http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
    workspace : aneesmohd
    username : [email protected]
    paswd: symphony
    application name: Confirmation Dialog
    application id= 14972
    when i press submit button i can get the confirmation dialog,but i want to make that as conditional (only when dl and lwf checkboxes are not ticked).if those are ticked i want to submit without getting the confirmation dialog.
    and want to clear the employee region cashe(report region) ones submit button pressed or refresh the page.
    Regards,
    Anees
    Edited by: anees_mohd on Jan 16, 2013 3:25 AM

  • Eliminating delete confirmation dialog

    Is there any way to eliminate the delete confirmation dialog in Finder? When I remotely browse the files on my iMac from my MacBook, I occasionally want to delete one. But I always get the popup dialog "Are you sure you want to delete the selected items?"
    Of course I'm sure. Besides, I have backups if I need them. How can I eliminate this nag message?
    Thank you!

    Press Command-Option-Delete
    http://www.macworld.com/article/143594/2009/10/networkdelete.html
    Message was edited by: Martin Pace

  • Confirmation dialog box in JSf

    Hi,
    I have a Save (type 'Submit') button which onClick should give me a confirmation dialog box with Ok and Cancel.
    Ok would go ahead with the process and cancel would take me back to where the page was before the save button was clicked.
    Any help is really appreciated.
    Thanks.

    Hello,
    I hope you can invoke a javascript function when the user clicks on "Save" button (onClick event for save button). Specify window.confirm(....) inside your javascript function which will give you confirmation window. I am not well enough how you want to handle navigation in your page.

  • Confirmation Dialog Box Appears Disappears

    Hi,
    I am facing a problem here on Same os win 98 using different versions of Java run time environment.
    The code is supposed to work in this way.
    Applet is initiated by a click. a confirmation dialog box appears askign for input from a user in the form of a Yes or a No. if the user clicks Yes the applet continues otherwise it terminates.
    while using 1.4.1_02 This problem occurs that the Confirmation dialog box appears and then disappears for the jar is being downloaded.
    But using 1.3.1_04 gives no problems and the Confirmation box does not disappear.
    Regards,
    Saurabh

    Hmmm, are you running 10.6.8 or later & installed the Security updates?
    Java was an attack vector for FlashBack.
    Disable Java in your Browser settings, not JavaScript.
    http://support.apple.com/kb/HT5241?viewlocale=en_US
    http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
    http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
    Flashback - Detect and remove the uprising Mac OS X Trojan...
    http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
    In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
    /Library/Little Snitch
    /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
    /Applications/VirusBarrier X6.app
    /Applications/iAntiVirus/iAntiVirus.app
    /Applications/avast!.app
    /Applications/ClamXav.app
    /Applications/HTTPScoop.app
    /Applications/Packet Peeper.app
    If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
    http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
    http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
    The most current flashback removal instructions are F-Secure's Trojan-Downloader:OSX/Flashback.K.
    https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
    More bad news...
    https://www.securelist.com/en/blog/208193467/SabPub_Mac_OS_X_Backdoor_Java_Explo its_Targeted_Attacks_and_Possible_APT_link

Maybe you are looking for

  • I can't add an older airport express to OS 10.7.5? Want to use for wireless printing and iTunes.

    I'm using an Airport Extreme model A 1301 for my home's wireless network. I have three of the older Airport Express model A1084, which I was using for remote speakers for iTunes and for a wireless printer set up, but discontinued using them at some p

  • Transferring an existing web name to web.mac,com/username

    My current web page host needs the IP address of my web.mac.com/username in order to update the DNS server. How can I get this IP address? Thanks.

  • The secLDAP security plugin is not available.

    some of my clients when they logon to Infoview get the following error... The secLDAP security plugin is not available. Please contact your system administrator for details The authentication mode is Enterprise. Windows/AD/LDAP all are unchecked (dis

  • Legal and management consolidation

    Hi experts, Anybody can specify what are all the differences between legal and management consolidation? What are the tasks that differentiate each one from the other? Regards.

  • UTL FILE saving as csv file

    I have this line of code: DECLARE l_Date DATE := SYSDATE; BEGIN l_file := utl_file.fopen('UTL_TMP_DIR','ZERORISATION_'||l_Date||'.csv', 'w' ); END;I encountered this error while running my query with the line above : PLS-00103: Encountered the symbol