Prevent autosuggest selection from dismissing dialog

prevent autosuggest selection from dismissing dialog
Hello -
Using JDeveloper 11.1.1.3.0.
In my page I have a popup dialog window in which is a form for editing data. One of the form fields is an <af:inputListOfValues> that itself contains an <af:autoSuggestBehavior> tag. Like so:
        <af:popup id="editPopup" contentDelivery="lazyUncached"
                  popupCanceledListener="#{myBean.editPopupCancelListener}">
          <af:dialog id="d2" title="EditThe Data" stretchChildren="first"
                     contentWidth="600" type="okCancel"
                     affirmativeTextAndAccessKey="Save Changes"
                     cancelTextAndAccessKey="Cancel Changes"
                     dialogListener="#{myBean.editPopupDialogListener}">
            <af:panelFormLayout id="pfl1">
              <af:inputListOfValues id="myField"
                                    popupTitle="Search and Select: #{bindings.myField.hints.label}"
                                    value="#{bindings.myField.inputValue}"
                                    label="#{bindings.myField.hints.label}"
                                    model="#{bindings.myField.listOfValuesModel}"
                                    required="#{bindings.myField.hints.mandatory}"
                                    columns="#{bindings.myField.hints.displayWidth}"
                                    shortDesc="#{bindings.myField.hints.tooltip}">
                <f:validator binding="#{bindings.myField.validator}"/>
                <af:autoSuggestBehavior suggestedItems="#{bindings.myField.suggestedItems}"/>
              </af:inputListOfValues>
            </af:panelFormLayout>
          </af:dialog>
        </af:popup>If a user make a choice from the autosuggest popup by hitting the Enter key, the choice will be made AND the dialog's OK button (in this example, the "Save Changes" button)will also be triggered.
Is there a way to have the Enter key select the choice from the autosuggest popup but NOT propogate to the dialog?
Thank you for reading my question,
-- Scott

Hello -
Thanks for replying. However, I do not understand what you are suggesting - the code shows that my input component is in a popup component. Plus, I am not having any trouble with cancel functionality - my problem is that when the user selects a choice from the autoSuggestBehavior list, the user chooses his choice by hitting the Enter key (the user is using the keyboard as much as possible instead of the mouse) and that also triggers the "Ok" button in the dialog.
What would you do differently?
Thanks

Similar Messages

  • Prevent show 'select download folder' dialog when click export csv button in a flash-based website

    I want to download csv file from a flash-based website. When i click the button with export icon, Firefox always pop up dialog box with title 'select download folder for ...'. I have set up default download folder and uncheck 'always ask me where to save files'. If i download from other websites (not a flash one) then the download automatically started without pop up folder selection dialog. I want to prevent firefox from showing download folder selection dialog because i need to use it for web automation. by the way, i use ubuntu 12.04 with firefox 21.0. I have used flashgot extension but still no luck. Any suggestion about this?

    I already have followed the instruction above, but still no luck. The dialog still appear. I think this is not a regular download link since it's made with flash. It's look like an export button which will force browser to pop up 'select folder location' dialog and when i click save then there is no download progress like usual, the file just saved automatically. I think the file itself is rendered when the flash website loaded, and then embeded into the web page. When i download, it didn't send any request, it just get the embeded file.

  • Enable "Prevent this website from creating dialog boxes" for a page

    Firefox has an option to prevent a website from creating a any more dialog boxes. I have a website which creates too many of them, so I want those to be disabled whenever I visit that website.
    So, is it possible to disable dialog boxes permanently for a page, or even something that I can do everytime before visiting that page..

    See http://forums.mozillazine.org/viewtopic.php?f=25&t=2172671

  • How can transfer data from a dialog to another panel?

    Will anyone help me?Thanks.
    In our project,When the user need to fill some data into the textfield in a panel,he can simplify this action by click a button,when the button is clicked,then a dialog which contains a table of all the imformation of all customers will show,then the user can select one customer's information from the table,after click a button such as "OK",the selected information will show in corresponding textfiled in another panel.Because the dialog and the panel are two
    different object,so how can I transfer the data selected from the dialog to the panel and show the updated information timely??

    try this program. it exchanges some data between s adialog and a frame.
    akz
    * @version 1.20 01 Sep 1998
    * @author Cay Horstmann
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DataExchangeTest extends JFrame
    implements ActionListener
    {  public DataExchangeTest()
    {  setTitle("DataExchangeTest");
    setSize(300, 300);
    JMenuBar mbar = new JMenuBar();
    setJMenuBar(mbar);
    JMenu fileMenu = new JMenu("File");
    mbar.add(fileMenu);
    connectItem = new JMenuItem("Connect");
    connectItem.addActionListener(this);
    fileMenu.add(connectItem);
    exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(this);
    fileMenu.add(exitItem);
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if (source == connectItem)
    {  ConnectInfo transfer= new ConnectInfo("yourname", "pw");
    if (dialog == null)
    dialog = new ConnectDialog(this);
    if (dialog.showDialog(transfer))
    {  String uname = transfer.username;
    String pwd = transfer.password;
    Container contentPane = getContentPane();
    contentPane.add(new JLabel("username=" + uname + ", password=" + pwd),"South");
    validate();
    else if(source == exitItem)
    System.exit(0);
    public static void main(String[] args)
    {  JFrame f = new DataExchangeTest();
    f.show();
    private ConnectDialog dialog = null;
    private JMenuItem connectItem;
    private JMenuItem exitItem;
    class ConnectInfo
    {  public String username;
    public String password;
    public ConnectInfo(String u, String p)
    { username = u; password = p; }
    class ConnectDialog extends JDialog implements ActionListener
    {  public ConnectDialog(JFrame parent)
    {  super(parent, "Connect", true);
    Container contentPane = getContentPane();
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(2, 2));
    p1.add(new JLabel("User name:"));
    p1.add(username = new JTextField(""));
    p1.add(new JLabel("Password:"));
    p1.add(password = new JPasswordField(""));
    contentPane.add("Center", p1);
    Panel p2 = new Panel();
    okButton = addButton(p2, "Ok");
    cancelButton = addButton(p2, "Cancel");
    contentPane.add("South", p2);
    setSize(240, 120);
         //custom method to create and buttons to a container
    JButton addButton(Container c, String name)
    {  JButton button = new JButton(name);
    button.addActionListener(this);
    c.add(button);
    return button;
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if(source == okButton)
    {  ok = true;
    setVisible(false);
    else if (source == cancelButton)
    setVisible(false);
    public boolean showDialog(ConnectInfo transfer)
    {  username.setText(transfer.username);
    password.setText(transfer.password);
    ok = false;
    show();
    if (ok)
    {  transfer.username = username.getText();
    transfer.password = password.getText();
    return ok;
    private JTextField username;
    private JTextField password;
    private boolean ok;
    private JButton okButton;
    private JButton cancelButton;

  • Is there a way to prevent an image from turning blue when selecting it?

    I'm exported a pdf from InDesign that will be used as a brochure for one of the exhibitions at our museum. I'm wondering if there's any way to prevent an image from turning blue when a reader clicks on it. Since all of the images are works of art, I'd rather that they not change color when people click on them.
    I changed the security settings so the images couldn't be copies, hoping that would prevent the blue square, but it didn't help.
    thanks for any suggestions.
    Chris

    There are several ways to do that and here are but two of them.
    1. If you want to make a new image you can right click on the channel, click on Duplicate Channel and under Destination>Document, select New
    2. If you want to add a new layer to your document, click on the channel in the channels panel, go to Select>All, then Edit>Copy, click on RGB in the channels panel and then Edit>Paste

  • I am trying to sync music from my iTunes library on my iMac to my iPhone. I only want selected music but I'm getting unwanted songs. How can I delete those songs on my iPhone or how can I prevent these unwanted songs that have not been selected from appea

    I am trying to sync music from my iTunes library on my iMac to my iPhone. I only want selected music but I'm getting unwanted songs. How can I delete those songs on my iPhone or how can I prevent these unwanted songs that have not been selected from appearing on my iPhone? Help!

    http://support.apple.com/kb/HT1296

  • Prevent Ctrl-A from selecting in JList

    How can I prevent Ctrl-A from causing all items
    in my JList to become selected?
    This may seem like a strange question, but I have
    a custom JList which uses a mouse listener to
    detect selections rather than its usual selection
    listener. Nevertheless, the Ctrl-A key combination
    still causes all items to be selected.
    How can I avoid this? I have tried simply
    unregistering the key combination:
    unregisterKeyboardAction(
    javax.swing.KeyStroke.getKeyStroke(
    java.awt.event.KeyEvent.VK_A,
    java.awt.Event.CTRL_MASK,
    false));
    But this has no apparent effect.
    b.c

    Thanks, Dave.
    I'm finding other inconsistent behaviour that is exacerbating the problem. If I close the last PDF file with ctrl-W, the search window stays open.  If I close the last PDF file from the task bar, boom, the search window gets clobbered too, which entails another lengthy re-search.

  • What does the PopUp "Prevent this page from creating additional dialogs" really mean and if I check the Box, how do I undo this if this was the Wrong Thing To Do?

    What does the PopUp "Prevent this page from creating additional dialogs" really mean and if I check the Box, how do I undo this if this was the Wrong Thing To Do?
    Details
    Constantly, while using Firefox (Beta v 11.0), and/or ESPECIALLY, when I have my eMail @ Mail.com open, I get this PopUp stating: "For security reasons, restarting mail.com Mail is possible only via the mail.com Mail Service. Please close this window and restart mail.com Mail" BUT Then there is a CHECKBOX: "Prevent this page from creating additional dialogs."
    I have no idea if Checking this Box is a Good Idea or if it will Screw-Up my mail.com Mail Service...
    Anyone have an answer or explanation of the Use of this Little Check-Box?
    BJ Orden [email protected]

    You do not get any pop-up windows on that website if you tick that box.
    That setting is stored in the cache and you should see pop-ups again if you reload the page and bypass the cache.
    Reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)

  • Inequality condition prevents the optimizer from selecting indices on tabl

    Dear all,
    I have the below query which takes 4 minutes to give the output:
    original query
    select t_sub.contrno "contNo" from tsk_subno t_sub ,arm_subs_balance bal where order_no = '5360' and
    order_type='NET' and t_sub.subno = bal.subno (+);sql tuning advisor is giving the below advise.. Restructure SQL
    Predicate NVL("IVM_BILLING"."BILLED",'N')<>'Y' used at line ID 14 of the execution plan is an inequality condition on indexed column "SYS_NC00071$". This inequality condition prevents the optimizer from selecting indices on table "TABS"."IVM_BILLING".How I can restructure the sql..
    FYI. arm_subs_balance is a view which takes data from IVM_BILLING.
    view script :
    CREATE OR REPLACE VIEW ARM_SUBS_BALANCE
    (CONTRNO, SUBNO, PAST_DUE, DEPOSIT, UNBILLED,
    TOTAL)
    AS
    SELECT contrno,subno,sum(past_due) past_due,sum(deposit) deposit,
           sum(unbilled) unbilled,
           sum(past_due+deposit+unbilled) total
    from
    select subno,0 past_due,0 deposit,0 unbilled,contrno
      from CRM_USER_INFO
    union all
    select nvl(H.subno,'0000000') subno, sum(nvl(R.ar_am_loc,0)) past_due,
           0 deposit,0 unbilled, R.contrno
      from     IVM_INVOICE_DETAIL R, IVM_INVOICE_RECORD H
      WHERE R.AR_REF=H.AR_REF
       and R.contrno = H.contrno
    group by nvl(H.subno,'0000000'),R.contrno
    having sum(nvl(R.ar_am_loc,0)) != 0
    union all
    select subno,0 past_due,nvl(add_deposit,0) depoist,
           0 unbilled, contrno
      from CRM_USER_EQUIPMENTS
    union all
    select subno,0 past_due,0 deposit, nvl(billamount,0) unbilled,
           contrno
      from IVM_BILLING
    where nvl(billed,'N') != 'Y'
    group by subno,contrnoThanks
    Kai
    Edited by: KaiS on Sep 30, 2009 10:10 AM

    Justin,
    I always thought that nvl(billed,'N') != 'Y' meant that the query should include all rows with a null-value or a value other than Y. :p
    But I agree that the index would moste likely not be that helpfull, but we need more information for that: [When your query takes too long|http://forums.oracle.com/forums/thread.jspa?messageID=1812597] and [HOW TO: Post a SQL statement tuning request |http://forums.oracle.com/forums/thread.jspa?threadID=863295]
    I expect that the conditions on tsk_subno will result in a small number of rows and that there's an index on tsk_subno.order_no which will be used to retrieve those rows.
    In that case view arm_subs_balance will be accessed on subno. This means that if the tables crm_user_info, crm_user_equipments and ivm_billing have indexes on subno, those indexes will be used, but an index on ivm_invoice_record.subno will not be used because of select nvl(H.subno,'0000000') subnoWithout more information I would guess that this part of the union takes longest and should be tuned by rethinking/redesigning the view or a function based index: create index i on IVM_INVOICE_RECORD ( nvl(H.subno,'0000000') );

  • Forcing a user to only select from Parameter LOV list

    Hi,
    I suspect that the answer is no but I'd appreciate clarification on the matter. I am wondering if there is any way to prevent a user entering a value into a parameter field - I want them to only select from the parameter's drop down LOV list. This will apply to Discoverer Viewer but would like to know if it could be done for Plus ( or not ) as well,
    Kevin.

    Hi Kevin
    Try changing the item class property called Require user to always search for values.
    According to my notes: This is unchecked by default. If you check this, Discoverer will launch the Search dialog box whenever a user clicks on the list of values. Should you have a large list of values, you may want to consider turning on this optionto making the LOV box pop up automatically.
    I am not convinced this will make the pop-up come up but it's worth a try.
    I'd be interested in hearing how you get on.
    Best wishes
    Michael

  • Why do I get "Select Input Method" dialog when trying to open tabs on some sites?

    This is what I'm experiencing with Firefox mobile on an Android tablet.
    On some sites, when I click a button which should open a new tab, I get the "Select Input Method" dialog box. First, I don't know why this dialog is popping up. Second, it is an empty dialog; there is nothing to select, only a heading that says "Select Input Method". When I touch the heading, I get another "Select Input Method" dialog, this time with "Android Keyboard" as the sole item to be selected. It is already selected. Touching it or backing up to dismiss it leaves me on the page I started on. Touching the original button which should open a new tab simply repeats the entire dialog sequence. Backing up from the original, empty dialog, does the same thing.
    Once or twice, by magic or something, I was able to get the page to open the new tab. But I cannot confirm what sequence of selecting or backing up out of the dialogs may have led to the correct behavior.
    Any help would be appreciated.

    kbrosnan,
    Thanks for the reply. Sorry it took so long to get back to you.
    My wife is working on a project so I'm a little light on details. Apparently she figured out that her Javascript is calling ShowModalDialog and this was what was causing the Select Input Method dialog to open. I don't fully understand the details but she's looking for a different way to do this. I believe she said she subsequently found out that the Firefiox mobile browser doesn't support ShowModalDialog.
    She's new to mobile web development (and I know nothing about it) so she's kind of feeling her way. If you have a good resource for how the FF Android mobile browser differs from the normal desktop browser, that wouldbe a big help, I think. Otherwise, thanks for you reply and she'll keep plugging away discovering what she needs to change in her program to make it work for mobile.
    Thanks.

  • BCM 2007 error: "To help prevent malicious code from running, one or more objects"

    Recently we changed our e-mail accounts around to a new domain name. After this switch, BCM no longer allows adding, editing or any other manipulation of contact records. I get an error message saying "To help prevent malicious code from running, one
    or more objects in this form were not loaded."
    I have tried clearing the forms cache, uninstalling and reinstalling BCM and even adding the old e-mail address back into the Outlook profile and nothing works.
    Is there something I have missed somewhere or am I looking at a complete reinstall of Outlook and BCM?
    Jon

    Hi Jon
    Thank you for the update.  It could be another Active X Component - BCM 2007 calls several of them
    On thing you could do is run a Process Monitor Log to see if perhaps another component is Blocked. To do that try the following:
    1. Close Outlook and as many other programs as possible
    2. Download and Extract Process Monitor from here -
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    3. Start Process Monitor
    4. Start Outlook
    5. Reproduce the error in BCM
    6. Stop Process Monitor by going to the File menu and unchecking "Capture Events"
    At this point you can try filtering by clicking the Filter Icon (the Funnel) on the menu bar.  Click on the Left Drop down at the top of the Dialog and Select "Path"
    For the second dropdown select "Contacts" and then filter on "ActiveX Compatibility" (without the quotes)
    in my lab, every GUID under HKLM\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility came up with a result of "Name Not Found"
    On your system, are there any are present (the Result Column will show "Success")?
    If so, then I would check the Compatibility Flag for that one (Hint - if you right-click on an Entry you can select "Jump To" to open Regedit to that location)
    - or -
    If you would like for me to take a look at it, in Process Monitor Go to the File > Save Menu and save it as a .PML file. Then send it to me at cts-larrymei at live.com
    Note - Please ZIP the file prior to sending it
    Thanks!
    Larry - MSFT
    Larry Meinstein

  • My iTunes wont close and is preventing my laptop from shutting down

    I plugged out my iPod touch when iTunes was asking me whether I wanted an update or not, and now iTunes wont close and has frozen, preventing my laptop from shutting down. I have intel Celeron inside and Windows 7.

    Mail is open but it is frozen, being this the reason why you cannot open the Mail window. Press Alt, Command and Esc keys or go to  > Force Quit, select Mail and force quit it. Finally, you will be able to turn off or restart the MacBook

  • I am trying to download a video file which I have on my computor to facebook but Firefox continuously shows theis message"Firefox automatically prevented this page from reloading.

    Steps.
    Open Facebook page.
    On the wall select video.
    Select upload a video from your drive.and click on it.
    Drop down window opens.
    Select a video file on your computer.
    Please upload only if:
    The video is under 1,024 MB and 20 minutes.
    The video was made by you or your friends.
    Click on browse
    Firefox"File Upload window opens"Pictures Library"Exposing available videos on my file.Double click on the video selected.
    Browser window opens and shows:"Brian on the move again..MPG.
    Click on "Share"Uploading Video-Mozilla Firefox"window opens and shows: http://www.facebook.com/video/upload_popup.php?video_id=2654584286114&qn=1321170149&xhpc_composerid=uqj39y_10&xhpc_context=profile&profile_id=185862931498895
    Bellow that :Firefox prevented this page from automatically reloading."Please wait while your video uploads."But is blocked .
    Check the "Allow"button Allows it to run for about 5 seconds before blocking again. This is uploaded in the 5 second intervals 1.) 4.13 MB of 39.87 MB (13.16 KB/sec) -- 46 minutes remaining. 2.) 5.33 MB of 39.87 MB (13.22 KB/sec) -- 44 minutes remaining 3.) 6.09 MB of 39.87 MB (13.11 KB/sec) -- 43 minutes remaining. 4.) 6.67 MB of 39.87 MB (13.18 KB/sec) -- 43 minutes remaining. 5.) 6.) 7.43 MB of 39.87 MB (13.11 KB/sec) -- 42 minutes remaining etc etc and so on and so on,each time the "Allow"button is checked the message :Waiting for vupload.facebook.com -Connecting-Connected-Sending request-Transferring data appears and after checking the "Allow" button 10 or 12 times we arrive at"11.93 MB of 39.87 MB (13.22 KB/sec) -- 36 minutes remaining.The upload shows 36 minutes remaining but the video itself is no longer than 1 min 54 sec and 39.8 MB in size.

    See:
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • When I click on a link in an email I get the following message at the top of the screen: "Firefox prevented this page from automatically redirecting to another page...[Allow]. How can I stop this?

    When I click on a link in an email using gmail in the Mozilla brower, I get the following message at the top of the screen:
    "Firefox prevented this page from automatically redirecting to another page...[Allow].
    How can I stop this?

    # Press Alt+T
    # Select Options
    # Select Advanced Panel
    # Select General Tab
    # You will see option "Warn me when websites try to redirect or reload page"
    # Uncheck it as given in the screenshot.
    <img src=http://dl.dropbox.com/u/7456129/Firefox/advancedgeneraltab.jpg width=600px height=600px>
    ''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.''

Maybe you are looking for

  • Balancing field "Segment" in line item 001 not filled while posting through

    HI All, I am experiencing the below error while processing FB70 transaction in Foreign currency with Tax codes (earlier this problem was not there, this is happening recently). The error description as given below. "Balancing field "Segment" in line

  • On occasion, airdisk speed slows going from AC to battery on MB

    Just putting it out there to see if anyone else has this. I've had issues with airdisk issues in leopard where video streaming would occasionally sputter. i've noticed this recently that it occurs when I unplug and run off the battery. it continues e

  • Web Gallery recommendations

    I've been mainly using IVMP to make manage my photos and produce my web galleries. I've customized the output using IVMP hooks and PHP. Needless to say since I'm posting here is that I'm moving to Aperture. The readily available options with Aperture

  • Curve rendering

    I will create a class for drawing spirals (all different types), having GeneralPath as a member Will it be a lot of trouble having CubicCurve elements instead of the usual lines?? Any experience? Francis

  • Quiet line test has mains hum - how to fix

    My BT incoming pair is located right below the electrical mains distribution board. A Quiet line test has main hum which goes away when I trip the RCDs (there are two) My speed has never been good (2.5Mb max - we are nearly in the next exchange area)