AF:autoSuggestBehavior in af:inpuptText of postbacks problem w / BACKSPACE key

Hi all, I am new to ADF and need help with workaround for this problem. Basically, when I try to use the af op: autoSuggestBehavior in the af:inpuptText component it seems that after you enter two characters, one at a time with the break between the two (for example, where the first character is of ' brings back all of the suggested items 10, and the second character is 'y' which narrows down to a single proposed item) and then clicking the BACKSPACE key once to get rid of the last character input the return key back does not initiate the postbacks so the result set of suggested elements never refreshes and remains at 1 instead of back to 10. Here are snippets of my BackingBean and the jspx page. Any help would be greatly appreciated.


JDev Build: JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536

= BackingBean.java
Overview;

import java.util.ArrayList;
import java.util.List;

javax.faces.component.UIComponent import;
Import javax.faces.context.FacesContext;
Import javax.faces.model.SelectItem;

public class BackingBean {}

private list < SelectItem > suggestions = new ArrayList < SelectItem > ();

public BackingBean() {}
Super();

initialize the list of choices
suggestions. Add (new SelectItem("Sydney"));
suggestions. Add (new SelectItem ("Melbourne"));
suggestions. Add (new SelectItem ("Singapore"));
suggestions. Add (new SelectItem ("Tokyo"));
suggestions. Add (new SelectItem ("Beijing"));
suggestions. Add (new SelectItem ("San Francisco"));
suggestions. Add (new SelectItem ("New York"));
suggestions. Add (new SelectItem ("Houston"));
suggestions. Add (new SelectItem ("Seattle"));
suggestions. Add (new SelectItem ("London"));
suggestions. Add (new SelectItem ("Paris"));
suggestions. Add (new SelectItem ("El Cajon"));
suggestions. Add (new SelectItem ("Palo Alto"));
suggestions. Add (new SelectItem ("Dunsmuir"));
suggestions. Add (new SelectItem ("Eastvale"));
suggestions. Add (new SelectItem ("Dublin"));
suggestions. Add (new SelectItem("Duarte"));
suggestions. Add (new SelectItem ("Downey"));
suggestions. Add (new SelectItem ("Hayward"));
suggestions. Add (new SelectItem ("Hemet"));
suggestions. Add (new SelectItem ("Hercules"));
suggestions. Add (new SelectItem ("Hesperia"));
suggestions. Add (new SelectItem ("Gilroy"));
suggestions. Add (new SelectItem ("Galt"));
suggestions. Add (new SelectItem ("Glendora"));
suggestions. Add (new SelectItem ("Goleta"));
}

public list getSuggestions (string input) {}

create a new list to contain no matching items
List < SelectItem > items = new ArrayList < SelectItem > ();

Scroll through the list of suggestions
for (SelectItem point: suggestions) {}
check if each element contains the input string
Convert them to upper case, a case-insensitive comparison
If (item.getLabel () .toUpperCase () .contains (input.toUpperCase ())) {}
If the element contains our input string, add it to our list of matching items
Items.Add ("Item");
}
}

return the matching items
to return elements;
}

public list getSuggestionsThatStartWith (string input) {}

create a new list to contain no matching items
List < SelectItem > items = new ArrayList < SelectItem > ();

Scroll through the list of suggestions
for (SelectItem point: suggestions) {}
Convert them to upper case, a case-insensitive comparison
Check if the point of starting with our input string, add it to our list of matching items
If (item.getLabel () .toUpperCase () .startsWith (input.toUpperCase ())) {}
Items.Add ("Item");
}
}

return the matching items
to return elements;
}


public void it3_validator (FacesContext facesContext,
UIComponent uIComponent object object) {}
Add the code in the event here...
}
}

= MyPage.JSPX

<? XML version = "1.0" encoding = "windows-1252'?" " >
< jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.1";
xmlns:f = "http://java.sun.com/jsf/core".
xmlns:h = "http://java.sun.com/jsf/html".
xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >
< jsp:directive.page contentType = text/html"; charset = windows-1252 "/ >
< f: view >
< af:document id = "d1" >
< af:form id = "f1" >
< af:panelGroupLayout layout = "scroll".
xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
ID = "pgl1" >
< af:panelSplitter id = "ps3" splitterPosition = "142".
orientation = "vertical" >
< f: facet = 'first' name >
< af:panelBox text = "Of the ADF AutoSuggestBehavior (Contains)" id = "pb2.
Type = "stretch" >
< name f: facet = "toolbar" / >
< af:inputText label = 'City' id = 'it3.
Validator = "#{BackingBean.it3_validator} '"
autoSubmit = "true" >
< af:autoSuggestBehavior suggestedItems = "#{BackingBean.getSuggestions}" / >
< / af:inputText >
< / af:panelBox >
< / f: facet >
< f: facet 'second' = name >
< af:panelBox text = "of the ADF AutoSuggestBehavior (StartsWith).
ID = "pb3" type = "stretch" >
< name f: facet = "toolbar" / >
< af:inputText label = "City" id = "it4.
Validator = "#{BackingBean.it3_validator} '"
autoSubmit = "true" >
< af:autoSuggestBehavior suggestedItems = "#{BackingBean.getSuggestionsThatStartWith}" / >
< / af:inputText >
< / af:panelBox >
< / f: facet >
< / af:panelSplitter >
< / af:panelGroupLayout >
< / af:form >
< / af:document >
< / f: view >
<!--oracle-jdev-comment:preferred-managed-bean-name:BackingBean-->
< / jsp:root >
=====================================================

Hello

I created SR 3-2230550051 yesterday for that matter because I have the same problem.
The problem seems to be associated with IE7. With Firefox, the BACKSPACE key works as expected.

@Shay: this issue is reproducible too with Oracle and IE7 components demo.
(http://jdevadf.oracle.com/adf-richclient-demo/components/autoSuggestBehavior.jspx)

concerning
Peter

Tags: Java

Similar Questions

  • SideWinder X 6 problems with certain keys

    Hey, I have a new sidewinder x 6 and it was send me problems with some keys. Whenver I want to press 'e' or 'v' (and perhaps others, but those are the ones that I noticed to be more frequent) I sometimes have to press several times on it or it will not be saved.  This problem started yesterday and its getting boring.

    I love my Sidewinder and I wouldn't go back to a normal keyboard
    Please any ideas would help!

    LD49,
    I know you said that you used canned air to blow out the keyboard, but have you tried turning upside down and tapping gently on the bottom to see if something grave?  The keys you are having issues with that are all in the same general area of the keyboard, for the most part using the same finger to activate.  You might have something like a trombone, a small piece of paper, or whatever it be as incorporated under the keys.  Or is it possible that something sticky might have gotten there from your hands like a few drops of soda or candy?  Which might make the keys stick.  You can take some cotton pads with a small amount of alcohol on them and clean between the keys to see if they are stuck together.

    Other than that, you can try unplugging the keyboard and plugging, reload the driver and checking all macros that can be assigned to these keys.

    Also, check the keyboard settings in the control panel and play with the repeat delay and speed to see if that will solve your problem of repetition.

    Let us know if you need help.
    Thank you
    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Pavilion 15-e070sl: problem with the key "cancelled."

    Hi guys,.

    I have some problems with the key "cancelled." It does not work for a few months. But the more serious problem is that sometimes when I double click on a file or a folder with my mouse compares the window cancellation asking me to confirm moving the file to the trash. This window disappears until I have restart the system. He thus annoyng. It seems that the key 'cancelled' suddenly to work again when I double click on something.

    I hope you find a solution

    With the availability!

    Hi @MichaelMazz ,

    Thank you for visiting the Forums HP's Support and welcome. I looked in your question about your HP Pavilion Notebook 15-e070sl and the keys does not properly.  Select an on-screen keyboard layout using this document , as this could be the problem.

    If this is not enough, try this document on troubleshooting the keyboard. You can watch the laptop marked key stuck section.

    Here is a link to uninstall the keyboard. Restart the computer after the uninstall, it must be reinstalled automatically.

    Have you tried to clean the key or use air to blow the key there could be debris in the key itself?

    I hope this helps.

    Thank you.

  • I have a problem with the key, I aktivate Photoshop CS 6 after buying fo little years. But the drive hard ist crasht a moment the aktivate display the error. Please you can reset the key?

    I have a problem with
    the key, I have aktivate Photoshop CS 6 after buying fo little years. But the
    Drive hard ist crasht a moment the aktivate display the error. Please you can reset the
    key?

    Hi berndp3095653,

    Greetings.

    You must contact the customer as some changes to do on the backend

    Contact the customer service

    Concerning

    Rohit

  • Satellite M50 Pro: Problem with keyboard - key Crtl gets stuck

    Jin

    have a little problem with the keyboard, and I was wondering if there was something I could do...

    the problem is sometimes when I am typing the keyboard, it will get stuck at random with the Ctrl key is pressed. I did no successful diagnosis as to what could be the cause of this, so I hope I can get it fixed here.

    Thanks in advance,

    NovaKry

    Hello

    I can give you some suggestions. I think the key Ctrl mechanism fits because of the debris under the key cutting.
    It of possible to remove the cup from the keyboard. Check the place around the key and try to clean it up.

  • Satellite C850 - 1-5 - problem with function keys

    Good evening

    Since a few days, I noticed on my laptop that I could not do more as before, which is the volume with the button located at the top of the keyboard (F9 - F10) or the brightness. On the square, it's functions F1, F2, F3 etc. who went. I have already tried using parameters and setting key 'special functions' systems, but that worked again, then in "mode F1 - F12", still nothing and I challenged 'special functions', but again without success.

    How to solve this problem, please?

    Can you please tell us what model of laptop do you have?

  • Problem with some keys on Satellite Pro L300

    Hello

    I have a problem with the keyboard on my Toshiba Satellite Pro L300. I can not type 'a', 'q' and 'z '.
    ESC, F1, tab and Caps Look are also don't work.
    I don't spill any liquid on my PC. Need help please, I don't know what to do. Thank you

    You have the latest model of laptop. If there is a problem with the hardware keyboard will be replaced free of charge.
    I recommend you contact the nearest authorized maintainer and ask for help.
    With diagnostic programs, they can check the functionality of the keyboard, and see if the keyboard needs to be replaced.

  • Satellite P755-S5262 problem with Fn keys

    EDIT: never forget - I solved the problem on my own.

    Post edited by: realisminflicts

    It s great that you solved the problem on your own but an error description short and some information that you did would be nice just to other owners of Satellite P755 ;)

    Please send feedback

  • Satellite Pro A100: Problem of posting Key

    Hello

    Last summer, we bought twenty Satellite Pro A100 computer laptop for use in our school. In the last six months, we had several problems with keys off keyboard. It is a great disappointment as it was at my suggestion that buy us Toshiba laptops. Is it possible that we can get this situation corrected? I think that the best approach would be to transfer all the missing keys on a laptop and then put it back, but if this is going to be a constant problem in the loss of keys, then I would prefer that another solution is found.

    I would appreciate an answer as soon as possible, because we are currently without the use of these machines.

    Thank you

    Simon Robinson
    ICT technician
    Winchester House School

    Hello Simon

    I read this forum for a long time because I use Toshiba laptops. To be honest, your story is really amazing. To untie me key cannot be done without a current and pull them up. Each unique key is set with small plastic hooks. I use the keyboard on my Satellite M70 (older than your A100) every day and quite extensively, but the keyboard is still in good condition.

    Please don't be crazy about me, but its use in school is also... How to say... in question. Are you sure that the students of your school correctly use laptops? In my opinion, you should contact the nearest authorized partner and attempt to clarify the situation.

  • Toshiba Satelite a300 Windows 7 32 bit problem with music keys

    Hi, I just installed Windows 7 (32 bit) and I have a problem with the music keys. I can't find driver for it even on the toshiba official site. I had been looking in this and many other forums, but no answers have been good enough to solve my problem. "I've been to the installation of several ' for sure the work drivers" and nothing. It is with my Web camera - no driver. After I installed my touchpad began to be brighten up, but I still can't use the music BIOS update keys. I hope someone can help. Please :)

    Sorry for my English

    Install the Toshiba value added for the A300 (use the PVAT Win7, not the PVAT Vista).

    This site of Toshiba: http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp?nav=Download

  • Pavilion 15: Problem of function keys.

    Hello

    I have a little problem with my function keys. Apparently, I can use them without pressing the "Fn" key on my keyboard. It's really annoying because I have other uses for these keys F1 - F12 and modification of custody whenever I try to use their brightness, sound, etc.

    Is there a way to disable this, so I can use the function with the function key options?

    Kind regards

    Ndiaye

    Hello

    You should be able to change the default behavior as follows.

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then make the relevant changes contained in the document on the following link.

    http://support.HP.com/us-en/document/c02035108

    Kind regards

    DP - K

  • Halo Combat evolved - installation problem - invalid CD Key?

    So I bought Halo Combat Evolved for PC and tried to install it when it came today. Everything was fine. The computer is restarted after installation. Then, when I click on the shortcut, the game says my CD key is not valid, and I need to uninstall and reinstall before I could play.

    Problem is that I can't understand how to install it. I went to my control panel and went to uninstall/change program, but it is not which are listed there. Not at all! How can I uninstall something when it is not yet here? Also? How my CD key is the problem? I know that I input correctly!

    Alright. So apparently, you open Halo in your Microsoft Games folder on your computer (if it's where everyone installs it as I did). In this case, scroll to UNINSTAL. EXE... why the _ it must be uninstalled in a stupid way is beyond me. I'm starting to regret this purchase already.

  • Windows Vista activation problem, error: product key is already in use on another computer.

    Original title: activation problems.

    After installing Windows Vista Ultimate 64-bit on my laptop, he asks now the product key to activate windows.  He won't accept him, indicating that the product key is already used on another computer.  It is not the case! What can I do?

    Hello les1helen,

    If you get a message that the product key is already in use then the next step is to use telephone activation. See this link from my Web site: http://vistasupport.mvps.org/product_key_already_in_use.htm

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Activation problems - "the product key you entered is already in use.

    I got my copy of windows vista since its first release with a valid certificate. I just had to re-boot it and when I try to activate I get a screen telling me "the product key you entered is already in use. Any ideas? I tried to contact the experts but my product id will not register.

    You must phone activate.

    To activate by phone: -.
    Activation by phone, click on the Start button and type:
    slui 4
    in the search box and then press the Enter"" key.
    This will bring up the activation of the phone dialog window.
    Follow the steps indicated by the window.
     
    If need phone normal activation fails, recompose the number, and this time do NOT respond when the ansafone asks that maintain you - this should oblige the operator to pick up that can solve your problem.

  • keyboard problem - ctrl, alt key Caps and windows does not

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: Hi friends I have serious laptop keyboard problem. Initially, I had a problem as my keyboard as control key function is jammed up. After giving the driver update, it work properply. After a few days at each reboot my system, I need to give the driver update to make my keyboard working properply. After a while when I press BACKSPACE again once he goes back to the same problem as the stuck key then upward. now the keys to my car, control, windows and alt do not work

    Hello
     
    1. What is the number of brand and model of your laptop?
    2. have you contacted the manufacturer of your laptop?
     
    Follow the steps mentioned below.
    Method 1:
     
    Step 1:
     
    Test the keyboard in safe mode and check if the problem persists in safe mode.
     
    Step 2:
     
    If it works in safe mode, perform the clean boot and check. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.
     
    Note When you perform a clean boot, you may temporarily lose some functionality. When you start the computer as usual, the function returns. However, you may receive the error message, or you can experience the original behavior.
     
    Note : follow step 7 to your computer as usual, after the test.

    Method 2:
    a. check if on-screen keyboard funvtions normally.
    b. If possible, try to connect an external keyboard and check if the problem persists.
     
    If the problem does not persist if could be a hardware problem and suggest you contact the manufacturer of the laptop.
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

Maybe you are looking for

  • HP Pavilion p6-2133w: graphics card will be not updated of the drivers

    My Amd Radeon HD 6530d will not update the drivers I have tried everything to update the drivers from 15.201.1151.0 to Crimson Edition Beta 16.2.1 any help will be appreciated

  • MS-DOS command window

    I know that this does not apply to LabVIEW, but it is not a Council "off topic" forums for posting slot, and you guys know more about computers than anyone else, I know that I decided to ask this question here. I have windows vista (if this is import

  • print on one side

    I can't do mt Officejet 6700 impression on one side... try to get mail labels

  • Lack of Audio Dell

    I've updated my audio driver for a newer version. After restarting dell audio feature is missing in the control panel. without it, I have a lot of problems while plugging my headphones and microphone on a taken single 3.5 mm. my computer model is run

  • Navigate the screens

    Hi all How to navigate a single screen to another screen means how to add another sprite. Thank you Smail