How to implement JSF text input down-arrow key = next record navigation?

Hi All,
I've got a small query which you experts might be able to help me through. I would not be surprised if such questions would already have been raised in this forum.
Formerly, I've created an Oracle Form that allow user to quickly insert data in bulk. It only has three 3 fields - first name, second name and address. Because of the flexibility of the Oracle Form, by pressing the down arrow key, user is able to create record when the last record is detected. And vice versa by hitting the up arrow key, it will move to the previous record when the current record is not the first record. So basically, the form is very 'key-driven' and without the use of the mouse, a lot of data can be inserted very quickly and efficiently.
I've successfully converted such form to an ADF BC JSF page using the JHeadstart toolkit. But when I showed it to my users for comment, they were really disappointed with the number of mouse interactions they need to click every time to navigate between records as well as creating new records. My question is can I build some sort of ADF JSF event handler on any of the text items to perform the following tasks:
1.) When 'down arrow key' is pressed AND not the last record THEN
Go to the next record.
2.) When 'down arrow key' is pressed AND is the last record THEN
Go to the next blank record.
3.) When 'up arrow key' is pressed AND not the first record THEN
Go to the previous record.
4.) When 'up arrow key' is pressed AND is the first record THEN
Do nothing.
If all the four above tasks are achievable in ADF JSF, can you please guide and brief me on the steps to implement them. Or these functionalities are already available somewhere in other open source toolkits. Your help is much appreciated. Thank you and have a nice day.
Kind Regards,
John

Hi Steven,
I've tried to incoporated attached link's codes with the JHeadstart generated code inside the jspx but I still cannot get it to work. There is a lot of Javascript error and is impossible to debug.
Regards,
John

Similar Messages

  • Up and Down Arrow Keys for  BasicComboPopup

    How do I get the Up / Down Arrow Keys to work with the BasicComboPopup?
    Could someone send me an example, which allows a user to use
    the up and down arrow keys to select items in a BasicComboPopup?
    Thanks: Alex

    How do I get the Up / Down Arrow Keys to work with the BasicComboPopup?With the example that I've provided you at the link shown below:
    http://forum.java.sun.com/thread.jsp?thread=454021&forum=57&message=2069966
    ...it's impossible to trap the keyevents since the combobox is trapping all events! Because the popup's parent is not visible, these events end up in the bits bucket somewhere.
    I'll tell you what you have to do (CAVEAT: it's still a bit tricky for beginner):
    1) Since a JComboBox is already set up to handle all the events that you need, use the BasicComboPopup created for the JComboBox instead of creating a new one like I showed you.
    2) Set the preferred size of the combo box to 0,0 and make it visible (nothing will be actually shown because of the size setting)
    3) set the location of the combo box to the same location of the component for which you want to display the popup to make it easier to show the popup
    Now, the trick is that by nature, an up/down arrow key will fire an ActionEvent and you'll have to somehow disable that or pull some rabbits out of the hat to determine if the actionPerformed is caused by an arrow key, an Enter key, or a mouse click.
    I'm sorta busy right now, so I'll let somebody else who is up to the challenge to tackle the problem for you.
    Cheers,
    ;o)
    V.V.

  • How change the sort order of searched items so last search item shows first. I DO NOT mean the order of search engines, but existing searches by down arrow key

    I want to be able to change the sort order of items I have already searched for in the search box. I want to be able to hit the down arrow key and see my previous searches in the order of last search showing first. At the moment I have no idea how it is sorting and it's very annoying to have to re-type a query I typed 5 minutes earlier but because I typed in another 10 since it is lost somewhere in the list. Can this be done, I have googled but did not find the topic anywhere. Just to clarify, I DO NOT MEAN the order of search engines (which is all that comes up in google), I mean the actual text typed in which has been saved in the drop down list.
    Thanks

    The "form fill" feature uses a "frecency" algorithm, frequency + recency, similar to the address bar autocomplete list.
    I found an extension that seems relevant, but the reviews are old so I'm not sure it's still working: [https://addons.mozilla.org/en-us/firefox/addon/searchbar-autocomplete-order/ Searchbar Autocomplete Order].
    But... is the autocomplete not working? I would expect that typing a couple characters of the earlier query would filter the list so you can easily select it? Or is the problem that the list doesn't remember enough searches for that?

  • How to stop record scrolling using up and down arrow key in forms

    Hi ,
    how we can restrict the record navigation using up & down arrow key...
    Thanks & Regards.
    vvm

    write key-up & key-down triggers at form level.
    inside that write the code
    BEGIN
      NULL;
    END;

  • How do i get my down arrow key unstuck????

    My down arrow key is stuck and its driving me crazy! I believe its slowing function on my computer because it thinks something else is going on.  No spills and I mostly use for browsing.  Took to Genius Bar in local Apple Store and they replaced the button but its not functioning correctly.  Pretty Please Help!!!!

    i personally WOULD call and talk to them again.  hopefully its not a hassle to go back into the apple store.

  • Scrolling down a pdf with the down arrow key ...

    Hello,
    I have a 20 page newsletter pdf with about 12 articles. At the top of the first page there's our text logo, and just below it is a table of contents compiled using table of contents styles (btw this pdf was compiled in Indesign 5.5) and just below that is the first article, then below that, the second.. and so on. At the bottom of each page there's a "return to the table of contents" button that shoots the reader back up to the TOC on the first page when clicked, in addition to a page number. There is also a header with the name of the publication and issue number..
    the problem I'm having is, when scrolling through the first article on the first page with the down arrow key, once I get to the bottom of the first page, the cursor then shoots back up to the table of contents. WHat I would like it to do is just scroll down to the next page. Once I get to the bottom of the first page the second time, the cursor jumps down to the bottom of the second page, straight to the page number, a few more taps of the down arrow key takes the cursor up to the header on page 2
    I'd like the down arrow scrolling to just go through the articles and skip the page numbers and other header/footer items. Any thoughts? Should I take my question to the InDesign forums? Thanks in advanced
    -J

    That behavior is controlled when Scrolling is selected from the Page Display Toolbar.
    You might want it defined in the Document Properties > Initial View, but I am not certain if it is a choice. Experiment with the options.
    I am not familair with Javascript in pdf, but that might set the control.

  • Up and Down Arrow Keys Not Functioning in CS2 for Windows

    A little over 6 months ago I purchased Adobe Photoshop CS2 for Windows XP and installed it on my work PC and my home PC. Everything works fine and dandy on my work PC, however when I try to do some editting on my home PC there are some quirks that I can't figure out. The main thing is that my Up/Down Arrow Keys do absolutely nothing. Whether I am trying to edit text and scroll through my fonts or if I'm trying to nudge a part of a picture, the Arrow keys do nothing.
    Does anybody have any suggestions for me?
    Any help would be greatly appreciated.
    Thanks.

    >but that's beside the point.
    it's not. what you describe is typical behavior of a high quality cracked version that's been floating around. a great copy with shrink wrap, nice manuals, etc. but you've been burned. usually the discs are stamped "made in singapore".
    try to get your money back.

  • Down Arrow Key Problem

    Ok, so i was just messing around on my computer like always.  I held down the up arrow key to scroll up to a page, and when doing so the bottom arrow key came off.  This is where the fun begins .... I have tried numerous attempts to put the arrow key back on, but like most computers, it doesn't just "snap" back on as some people suggested.  And, if you haven't noticed, you can't go to google and type in "How to fix my down arrow key", so naturally i came here hoping to find some answers. 
    My computer is an HP dv7t Core i3-380 2.53 GHz Integrated Webcam and Fingerpring Reader.  Any and all assistance would be appreciated.  Pictures, tutorials, information ANYTHING to get this key back on.  Even suggestion will do; I can still use the key, but even that is messing up on me now.  What should i do?? Online help, take it to someone, or what?

    Does the problem happen if you reboot the system into Safe Mode by holding the Shift key at startup?
    Additionally, does the problem happen if you create a new user account in the Users & Groups system preferences and log into that?

  • Spacebar,Enter,Delete,up and down Arrow keys are not working...

    Hello Everyone,
    My Hp Laptop has gone through a serious problem. Its Spacebar,Enter,Delete,up and down Arrow keys have stopped working . I am not sure how this problem caused . So i gone  through varios fixes, that were -
    1. Rstoring to an earliar date.
    2. Re-installling Keyboard driver
    3. Formating the System.
    The third fix Formating helped me and my keys started working . After some day I installed a software HP Network Manager but this after installing it again those keys stopped working and also the LED lights on Caps Lock and Wi- fi are not turning on but these two are functioning normally.
    the some of the information related my HP laptop are-
    Model: Pavilion G6
    ram 4 gb.
    OS: Windows 7 Home Basic
    can anyone please suggest me is it a hardware related problem or some software/driver  related ? And also what next i do to fix this serious issue...
    Thanks in Advance.
    This question was solved.
    View Solution.

    Hi Alien004,
    You and Advance23 have pretty much covered everything at this point and I believe that it is a hardware issue. I would advise that you contact HP regarding a possible repair. You can reach HP Total Care at 1-800-474-6836 in North America or start here outside of North America.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Disabling the 'down arrow' key that takes me to the 2nd record. ?

    pressing the 'down arrow' key takes me to the 2nd record.
    well how do i disallow this...
    this is very funy and stupid also.

    I've also encountered the similar issue like this now in SQL*Form 3.0. If we have a 'down' trigger inside which we put 'null', it should not allow us to go to the next new record (at least I had ever experienced something like this in 6i forms).
    But now it will still go to the next new empty record even if I've already disabled that by including that trigger inside. Can anyone advise on this?

  • Setting the Down Arrow Key. Help Needed.

    Folks
    I am having a problem.
    I have a custom cell renderer which displays a list.
    I am setting the focus of this list to the 1st element.
    Now,when I press the down Arrow key,this doesnt seem to
    go down nor the focus is coming downwards.
    Have I overlooked anything? Can someone please help?
    class MyListCellRenderer extends JPanel implements ListCellRenderer{
       private JLabel indexLabel;
       private JLabel imageAndText;      
       public MyListCellRenderer(){
       indexLabel = new JLabel();
       imageAndText = new JLabel();
       setLayout(new FlowLayout(FlowLayout.LEFT,3,0));
       add(indexLabel);
       add(imageAndText);
       setOpaque(true);
    public Component getListCellRendererComponent(
           JList list, Object value,int index,
           boolean isSelected, boolean cellHasFocus) {
    // ** Get the Focus on the first Element.
    list.setSelectedIndex(0);
    list.grabFocus();
    setBackground(isSelected ? Color.red : Color.blue);
    final JList fJList = list;
    // ** Now press the Down Arrow
    final Action downAction = actionMap.get("selectNextRow");
         actionMap.put("selectNextRow", new AbstractAction() {
         public void actionPerformed(ActionEvent e) {
          if (fJList.getSelectedIndex() < fJList.getModel().getSize() - 1)
            downAction.actionPerformed(e);
         else{
            fJList.setSelectedIndex(0);
            fJList.ensureIndexIsVisible(0);

    see
    http://www.replacementlaptopkeys.com/macbook-key.html
    or similar  ebay etc
    Be a bit wary of Glue for obvious reasons

  • Is it possiable to navigate row by row using the down arrow key?

    Hi,
    The table is an ADF page table, and I want to nevigate to the next row by pressing the down arrow key. Is that possiable?
    Thanks
    Stephen

    Let me explain things better. First of all you have to create
    a javascript file , e.g: moveRow.js with the following code:
    i = 0;
    function moveRow()
    if (window.event.keyCode== 25) // 25 is down arrow
    i++;
    // FormID : TableID: tableSelectOneID
    document.getElementById('form1:table1:' i ':tableSelectOne1').checked=true;
    if (window.event.keyCode== 24) // 24 is up arrow
    i--;
    document.getElementById('form1:table1:' i ':tableSelectOne1').checked=true;
    Then in the jspx head, put something like this:
    <afh:head title="testTable" binding="#{backing_testTable.head1}"
    id="head1">
    <script type="text/javascript" src="moveRow.js">
    </script>
    </afh:head>
    // Call to the function when key is pressed:
    <af:tableSelectOne binding="#{backing_testTable.tableSelectOne1}"
    id="tableSelectOne1" onkeypress="moveRow();"/>
    Kind Regards,
    Luis R.

  • Down arrow key press autometically an3 simultaneously

    My hp pavilion g6 has a problem.the down arrow key press automatically and simultaneously after sometime.please tell me how to i get ride of this.

    The down navigation key do not work.please help me.

  • Up/Down Arrow keys do not perform their function on SOME websites or at SOME times, on other websites and at other times these keys work fine, updated firefox, restarted computer. turned off cursor key option in Advanced tab, using autoscrolling option.

    Up/Down Arrow keys do not perform their function on SOME websites or at SOME times, on other websites and at other times these keys work fine, updated firefox, restarted computer. turned off cursor key option in Advanced tab, using autoscrolling option.

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    See http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"

  • Up and Down Arrow Keys Not Working

    I have had the HP Pavilion g6t-1b00 CTO Notebook PC for a year or two now. I've been having a couple of problems with internet connectivity and putting my computer on "sleep".
    However, few days ago, my keyboard randomly started acting weirdly. When I would try to type certain letter/numbers, they would come out differently. 
    Ex. pressing the space bar would show up " ./M" instead
    I tried restarting my computer many times and installed a BiOS update which fixed all of my issues except for my up and down arrow keys. As of now, they have no function; I can't scroll with them and they don't seem to be taking on the role of another key. I have tried using the keys on different programs. Using the touch pad to scroll works but I still can't use the up and down keys.
    Is there anyway to get the up and down arrow keys to work again?
    This question was solved.
    View Solution.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

Maybe you are looking for

  • DO NOT DISCONNECT--files are in use by another application

    I bought a video iPod today, and after downloading some songs from iTunes, my iPod says DO NOT DISCONNECT, but iTunes says the update is complete (but doesn't say it is OK to disconnect). When I try to eject the iPod, I eventually get the following m

  • Conversion problems with Memo field in Access database

    I have the latest version of Migration Workbench and the Access 2000 plug-in. I am using an ODBC driver, and the SQL conversion requirements for converting to a native driver seem too time and labor intensive to be feasable. My problem is that I have

  • Finding number of working days during query execution

    Hi , We have a requirement to calculate number of working days during query execution. In the cube we got "received date", this will be used as a variable in the query. Based on the received date value entered, query needs to display number of produc

  • Does SAP generate COMMIT WORKS when BAdIs end?

    I want to call a function module "IN UPDATE TASK" from within a BAdI. Will SAP generate a "COMMIT WORK" when the BAdI ends, so that the function module is triggered ? If I do have to code a COMMIT WORK in the BAdI to trigger execution of the FM, won'

  • Can ID auto-add crop marks?

    This is something I have always done manually and occured to me that maybe there is some way of it doing this automatically.  I know about the check box to automatically put crop marks on the 4 corners of the entire layout.  Is there a way to also pu