Confirm a dialog with 'Enter'

How can I confirm a dialog by pressing the ENTER-key without adding a keyListener to each component?
Is it possible to add a keyListener to a dialog so I don't have to add a Listener to every Textfield?
Thanks a lot!

A dialog is a subclass of Component, so you can add a keylistener to it. but you only recieve the key events of the element that has the focus, so if a textfield has the focus you will recieve the events from the textfield.
But that isn't a very big problem, because you could just add the same key listener to the dialog and all other components on the dialog, so it isn't causing you much extra work.

Similar Messages

  • 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

  • Dialogs with servlets

    Hi
    Does anyone know how to use dialogs with servlets? I'd like to show a confirm dialog on the client machine. My first idea was to use JOptionPane.showConfirmDialog as such in the servlet, but then of course de dialog pops-up on the server side, and not on client side.
    Many thanks for the help,
    Nic

    You need to use javascript to confirm, ask questions, etc...
    You can see :
    http://www.webreference.com/programming/javascript/confirm/
    Or
    http://www.bodo.com/javacool.htm
    Fred

  • Java web start security dialog with Java 7 update 51

    I build a Java Web Start application signed with a valid certificate.
    When I star the application the security dialog appear correctly as show in this figure
    http://www.java.com/en/img/download/trusted_signed.jpg
    My issue is about the "do not show again" checkbox.
    If the attributes href are present in the jnlp tag of the jnlp file the checkbox appear.
    If the attribute are not present, the checkbox doesn't appear and the run needs to be confirmed every time.
    (Example:
    <jnlp spec="1.0+" codebase=
    "http://docs.oracle.com/javase/tutorialJWS/samples/deployment/webstart_ComponentArch_DynamicTreeDemo"
    href="dynamictree_webstart.jnlp">
    This is a problem because my jnlp file is under a password protected directory and if href is specifed, the Java Web Start application try to retrieve it as the other resources. ( result in access denied because only the browser session is authenticated and the run fails)
    The documentation at Deploying a Java Web Start Application said:
    The codebase and href attributes are optional when deploying Java Web Start applications that will run on at least the Java SE 6 update 18 release or later. You must specify the codebase and href attributes when deploying Java Web Start applications that will run with previous releases of the Java Runtime Environment software.
    What is the right code? With href or without?
    Is this a BUG or a feature?
    How can I show the "don't show again" checkbox without having to specify the href attribute?

    From the documentation at JAR File Manifest Attributes for Security
    If the Application-Library-Allowable-Codebase attribute is present and matches the location from which the RIA is started, then a single host is listed in the Location field for the prompt and the option to hide future prompts is provided.
    This issue is also discussed here: Java Web Start security dialogs with Java 7 update 51 - Stack Overflow

  • Confirm Delete Dialog Box

    I accidentally checked the confirm delete dialog box, and it's now gone. Is there any way to get the confirm delete box back, with out reinstalling iTunes?

    Go here -> http://home.comcast.net/~teridon73/itunesscripts/
    and look for itunespreferencesfix.

  • Open a save dialog with a name of a not existing file as tip name

    Hello, I`m using JFileChooser to save a file, but the file does not exist in the File System, it is only a Java File object.
    Then I want to open the dialog with a name for this new file already in the field, then I can change the folders and the proposed name will still be there to be used.
    I have found some posts pretty close to what I need but i could not solve my problem.
    Thanks

    setSelectedFile()

  • I bought a new iphone and as i was setting my apple ID account and i signed in to my account and confirmed two useres with diffrent numbers that were signed to the same apple ID and it messed up my i messege and face time. how do i fix that ?

    i bought a new iphone and as i was setting my apple ID account and i signed in to my account and confirmed two useres with diffrent numbers that were signed to the same apple ID and it messed up my i messege and face time. how do i fix that or delete one user ?

    Hello sapiii96,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    To sign out of your Apple ID
    Go to Settings > FaceTime, tap your Apple ID, and select Sign Out.
    Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out.
    Best of luck,
    Mario

  • Once completed the form, is it possible to receive the confirmation e-mail with a link addressing to a html archive?

    Once completed the form, is it possible to receive the confirmation e-mail with a link addressing to a html archive?

    I don't know if it is the best solution but you could filter the results to just that client's answers on the summary tab and then PDF that.

  • Task flow-call  as a Dialog with inline-popup issue JDev 11.1.1.2.0

    I have a very serious issue with task flow-call running as a Dialog with inline-popup
    have bunch of data driven table components pointing to pageDefs with Iterators
    the problem is, the dialog comes first with nothing in it (blank) and it takes 3-5 seconds to fetch all views,
    this is useless, there is no option to control taskflow-call activation , like you do for af:region
    For reference : I am talking about this : http://jobinesh.blogspot.com/2010/08/refresh-parent-view-when-in-line-popup.html
    Download the workspace , connect as HR Schema and you will see what I am talking about
    looks really dumb, it would make sense to show dialog with data all at once, rarther than looking at blank screen to wait for the data to show up
    Edited by: user626222 on Sep 20, 2010 8:57 AM
    can I call this a bug?
    Edited by: user626222 on Sep 20, 2010 1:58 PM
    sometimes I wonder if anyone tested this, as soon as you have some data driven components on your page, you get all sorts of problems in ADF
    But something simple, Adf client side invokes the Dialog as a popup first, and then it thinks oh ya I get massive pageDef to load, so end-user customer will stare at the blank screen for 10 secs , hoping that something will come up or program is crashed
    Well, I am afraid to say you lost your customer :(
    Edited by: user626222 on Sep 20, 2010 2:29 PM
    Edited by: user626222 on Sep 20, 2010 2:35 PM
    Edited by: user626222 on Sep 20, 2010 2:35 PM
    Edited by: user626222 on Sep 20, 2010 2:36 PM

    ok, knowing this fact, I want to show some kind of status indicator during the wait time.
    Unfortunately, putting af:statusIndicator does not work untill after entire page loads
    <?xml version="1.0" ?>
    <?Adf-Rich-Response-Type ?>
    <content action="/EmpApp/faces/displayEmployees.jspx?_adf.ctrl-state=5plp6ahes_72">
    <fragment><![CDATA[<span id="f1::postscript"><input type="hidden" name="javax.faces.ViewState" value="!-e8tyzkiuc"></span>]]>
    </fragment>
    <fragment>
    <![CDATA[<div id="afr::DlgSrvPopupCtnr::content" style="display:none"><div id="j_id12" style="display:none">
    <div style="top:auto;right:auto;left:auto;bottom:auto;width:auto;height:auto;position:relative;" id="j_id12::content">
    <div id="j_id13" class="x142"><div class="x157" _afrPanelWindowBackground="1"></div>
    <div class="x157" _afrPanelWindowBackground="1"></div><div class="x157" _afrPanelWindowBackground="1">
    </div><div class="x157" _afrPanelWindowBackground="1"></div>
    <table cellpadding="0" cellspacing="0" border="0" summary="" class="x146">
    <tr>
    <td class="p_AFResizable x148" id="j_id13::_hse"> </td>
    <td class="p_AFResizable x14a" id="j_id13::_hce"><table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr>
    <td><div id="j_id13::_ticn" class="x151"><img src="/EmpApp/afr/task_flow_definition.png" alt=""></div></td><td class="x14e" id="j_id13::tb">
    <div id="j_id13::_ttxt" class="xz8"></div></td><td>
    <div class="x153"><a href="#" onclick="return false" class="xz7" id="j_id13::close" title="Close"></a></div></td></tr></table></td><td class="p_AFResizable x14c" id="j_id13::_hee"> </td></tr><tr><td class="p_AFResizable x14j" id="j_id13::_cse"> </td>
    <td class="p_AFResizable x14g" id="j_id13::contentContainer">
    <div id="j_id13::_ccntr" class="x14h" style="width:700px;height:430px;position:relative;overflow:hidden;">
    <div id="j_id14" class="xne" style="position:absolute;width:auto;height:auto;top:0px;left:0px;bottom:0px;right:0px">
    <iframe _src="javascript:'<html&gt;<head&gt;<title/&gt;</head&gt;
    <body/&gt;
    </html&gt;'" src="javascript:''" frameborder="0" style="position:absolute;width:100%;height:100%">
    </iframe>
    </div></div></td><td class="p_AFResizable x14l" id="j_id13::_cee"> </td></tr><tr><td class="p_AFResizable x14n" id="j_id13::_fse"><div></div></td>
    <td class="p_AFResizable x14p" id="j_id13::_fce">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr>
    <td class="p_AFResizable x14u" id="j_id13::_fcc"></td><td align="left" valign="bottom"><div class="p_AFResizable x14y"><a tabIndex="-1" class="x14w" id="j_id13::_ree" title="Resize"></a></div></td></tr></table></td><td class="p_AFResizable x14r" id="j_id13::_fee">
    <div></div></td>
    </tr></table></div></div></div></div>]]>
    </fragment>
    <script-library>/EmpApp/afr/partition/gecko/default/opt/frame-SHEPHERD-PS1-9296.js</script-library>
    This is how it launches the taskflow-call, so there is no way to control this behaviour from the calling taskflow's jspx, feels very closed system,why ADF is not making this behavior Open by some kind of client listener,
    <script>
    <![CDATA[AdfDhtmlLookAndFeel.addSkinProperties({"AFPopupSelectorFooterStart":"x11b","AFPopupSelectorHeader":"x114","af|panelWindow-tr-open-animation-duration":"300","AFPopupSelectorHeaderStart":"x115","AFPopupSelectorContentEnd":"x119","AFPopupSelectorContent":"x117","af|panelWindow::resize-ghost":"x144","AFPopupSelectorContentStart":"x118","AFPopupSelectorFooter":"x11a","AFPopupSelectorFooterEnd":"x11c","AFPopupSelectorHeaderEnd":"x116","AFPopupSelector":"x110",".AFPopupSelector-tr-open-animation-duration":"200"});AdfPage.PAGE.addComponents(new AdfRichPopup('j_id12',{'_dialogURL':'/EmpApp/faces/adf.dialog-request?_adf.ctrl-state=5plp6ahes_76&_rtrnId=1285074907739&__ADFvDlg__=true','_inlineFrameId':'j_id14','_launchId':'r1:0:cb2','_panelWindowId':'j_id13','_rtnId':'1285074907739','contentDelivery':'immediate'}),new AdfRichPanelWindow('j_id13',{'modal':true,'resize':'on','stretchChildren':'first'}),new AdfRichInlineFrame('j_id14',{'source':'javascript:\'\x3chtml>\x3chead>\x3ctitle/>\x3c/head>\x3cbody/>\x3c/html>\''}));AdfPage.PAGE.clearMessages();AdfPage.PAGE.clearSubtreeMessages('r1');]]>
    </script>
    AdfDhtmlRichDialogService.getInstance().launchInline there is no way for me to put af:statusindicator for the wait time using this way
    <script>AdfDhtmlRichDialogService.getInstance().launchInline('j_id12');*</script>
    </content>

  • Check in dialog with Adobe Drive 4.2 doesn't work

    Hi,
    we are currently implementing a custom check-in dialog using Adobe Drive 4.2.
    The dialog looks like the example given in discussion "Custom check in dialog".
    To build the SWF, I use Flash Builder 4.5 with Adobe Flex SDK 4.0.0 (flex_sdk_4.0.0.14159A).
    I have created a new Flex Project with Application type "Web" and added a MXML Modul with name "CustomUI" and option "Do not optimize (module can be loaded by multiple applications)".
    After compiling the project I extract the "CustomUI.swf" and copy the file in the "resources" folder of my Custom Adobe Drive adapter.
    I implement the "IGetCustomCheckInUIHandler", "ICanEnableCustomCheckInUIHandler" and "IGetCustomCheckInUIContextInfoHandler":
    "IGetCustomCheckInUIHandler" sets the module url like
    response.setModuleURL(Thread.currentThread().getContextClassLoader().getResource("resource s/CustomUI.swf"));
    "ICanEnableCustomCheckInUIHandler" enables the custom ui dialog with
    response.setCanEnable(true);
    "IGetCustomCheckInUIContextInfoHandler" adds some context data like
    Map<String, Object> contextInfo = new HashMap<String, Object>();
    contextInfo.put("key1", "test1");
    response.setContextInfo(contextInfo);              
    (Also hidding the "IGetCustomCheckInUIContextInfoHandler" in "IRemoteHandlerFactory" doesn't work.)
    Right click on an checked out asset in Windows Explorer and click on "Adobe Drive 4/Check in..." does following:
    1. "IGetCustomCheckInUIHandler" called
    2. "ICanEnableCustomCheckInUIHandler" called
    3. "IGetCustomCheckInUIHandler" once more called
    4. "IGetCustomCheckInUIContextInfoHandler" called
    5. The default check in dialog is shown (with no custom ui extension), the default dialog hangs (OK/Cancel doesn't react on click, the dialog is freezed). Only the close button (X in the right upper corner) works.
    How is it possible to provide a custom ui check in dialog?
    Thanks

    Hi again.
    I found where the problem was (at least in my case).
    To go to the point: go in the "properties" of your flex project. In the menu, go in "Flex Build Path" and then in "Library Path". Then, the option "Framework linkage" is with the default value in a new flex project.
    So here is the trick : with Flex 3 (so Adobe Drive 3), the default value is "merged into code".  Bug in the Flex 4 (so Adobe Drive 5), the default value is "Runtime Shared Library".
    And because the module is ran independently (with no link with the flex code that load your module), the flash player crashes because it doesn't find your libraries (like ICustomCheckinUI).
    I discovered this problem running the Custom UI from the windows explorer (not with Bridge) and using the Flash Player Debug version, and watching the error log files of the Flash Player.
    So in the end, when I checked "merged into code" in the Framework Linkage option, all my dependencies of my flex module were merged into my final module swf, and no more flash crash.
    Sorry for my bad english and hope it helped.
    Guillaume
    (edit : screenshot at http://www.hostingpics.net/viewer.php?id=276932flexbuildpath.png )

  • HT204266 I was trying to buy an app from the apple store, it asked for confirmation , when I re-entered my credit card details, got the message that your payment method is not valid!!!! How can I fix this problem?

    I was trying to buy an app from the apple store, it asked for confirmation , when I re-entered my credit card details, got the message that your payment method is not valid!!!! How can I fix this problem?

    Is this a pre-paid card thing? Or different billing address than your iTS account?

  • HT4061 Every time I use my I pad it keeps popping up with enter my iTunes password. I have nothing waiting to download and not trying to purchase anything yet every time I want to listen to music or use my apps this happens. Can anyone tell me how to stop

    Every time I use my I pad it keeps popping up with enter my iTunes password. I have nothing waiting to download and not trying to purchase anything yet every time I want to listen to music or use my apps this happens. Can anyone tell me how to stop this?

    If you get an error that says can't backup, try moving the existing backup file to a safe location and thry again. again. You can find the location of the backup file here:
    iPhone and iPod touch: About backups

  • A simple dialog with semi-transparent border (MFC)

    Hi,
    I have to make a image dialog with semi-transparency border in MFC.
    I had web surfing all the day and found this solution in the codeproject.
    http://www.codeproject.com/Articles/42032/Perfect-Semi-transparent-Shaped-Dialogs-with-Stand
    But it creates two dialogs to make a semi-transparent dialog and the mechanism was so complex.
    And the release of the dialog object is difficult so that it may have memory leaks.
    I want a dialog (background is an image) with a semi-transparent border (corner - rounded).
    And I have to make it with only one dialog. If it's possible, how can I do it?
    Please help me, Thank you.

    The child control will become semi-transparency as your dialog.
    Do you want to show some child control on your dialog? If yes, you need the second dialog to host your child control. 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Keyboard problems with Enter, delete, backspace, and right/left arrows

    In some applications, such as Yahoo and this message block right now !!, when composing a message, the arrow keys and delete, backspace keys become non responsive. Various ones will work on a random basis.
    I am getting double "carriage returns" also. Maybe this is why in Omegle when I press ENTER, it will not post a chat message; it will bring up a scroll box and for me to post the comment, I have to use the mouse to click ENTER.
    I have changed batteries in my keyboard, uninstalled /reinstalled Firefox. I have checked the above websites in Chrome and other browsers, and there are no problems.
    This has happened before, I don't recall what the solution was or if it just went away.'''
    Affected sites -- at least these
    http://us.mg6.mail.yahoo.com/neo/launch?ncrumb=Fx5R4O7ccqb&.rand=1041364415&nmig=yes#
    http://omegle.com/
    https://support.mozilla.com/en-US/questions/new?product=beta&category=b2&search=Keyboard+problems+with+Enter%2C+delete%2C+backspace%2C+and+right%2Fleft+arrows&showform=1

    PROBLEM SOLVED: http://forum.archlinux-br.org/viewtopic.php?id=1257
    Solution posted on Brazilian Archlinux forum. Credits to user "920608".
    [cache]
    /etc/xorg.conf
    Section "Files"
             #RgbPath "/usr/X11R6/lib/X11/rgb"
    EndSection
    Section "ServerFlags"
               Option "AutoAddDevices" "False"
    EndSection
    C'ya

  • My daughter has forgot her passcode for her iPod touch was disabled reset it but now still comes up with enter passcode

    Daughter forgot password so then it was disabled reset it but still comes up with enter passcode how can we clear passcode

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

Maybe you are looking for

  • Can Time Machine backup a USB drive connected to Airport Extreme?

    Hi all, I have an airport extreme that I used to run a shared USB drive for the family. I have a network drive attached to the airport extreme which I used for Time Machine backups, how do I tell Time Machine to back up the USB drive also? All help v

  • Pages not loading properly since last update

    Since the last update, Firefox just isn't working any more. It takes multiple clicks to load or reload pages, and often the page loads without any graphics. I may have to click the Reload button a dozen times to get a page to load properly (or to loa

  • New iPod - computer won't register it .. getting errors  HELP!!

    So i got a brand new 30GB video iPod for Christmas today (had a mini but the battery died) and I isntalled iTunes and everything and followed all the directions and i hooked up my ipod to transfer my songs and it was stuck on the do not disconnect an

  • Olympus epl-1 Raw files not supported?

    I recently purchased an epl-1 olympus camera. I am running 10.6.5 anh have all the updates through update software. I am using aperture 2.1.4. Aperture is not recognizing the orf files. do I need to get Aperture 3.x to recognize these. also when I im

  • LR 3.3 not finding catalogs

    I have used LR3.3 for many months, successfully making adjustments and saving files in subfolders as jpegs. After processing photos today, I shut down the LR3.3 and worked in another program unrelated to LR3.3. When I came back to LR3.3 to review the