Access table cells using tab key with iterators

Hi,
I use a tableview with iterator and allow users to mouseclick certain column cells. I capture these user interactions using server event "onCellClick". But I cannot access these cells using tab key instead of mouse click. But tab key is a must for visibly challenged users.      Is there any way to access table cells using tab keys (with iterators)?
I use icons in those cells to replace  check box and change the icons to differentiate checked/unchecked status.

Hi Craig,
Thanks for your effort.
But I was able to solve my problem. I don't think I gave all the information to simulate my problem in your environment. I used images in certain table cells and was not able to access those cells using tab key or access key. Tag <b><img></b> doesn't have the attributes <b>tabindex</b> and <b>access key</b>.
I solved the problem by surrounding the <b><img></b> by anchor tag <<b>A>,</b> which has both attributes. I did these changes within the iterator method <b>RENDER_CELL_START</b> using CL_BSP_BEE_TABLE.
In the event handling, I had to do separate processing for  mouse click event and key press event for those cells.
For visibly challenged users:
They can access those cells by tab key or access key and the key press event is used to capture when they hit enter key.
So this problem is irrelevant to service packages (SP38,..).

Similar Messages

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • How to set current row in table after use tab key on inputText

    Hello all,
    My first post .., I'm newbie in ADF and I will try to explain my problem.
    For the moment we use ADF 11g (11.1.1.4), in a jsff page I have a table with an inputText column.
    On the valueChangeListener of the inputText, I invoke a method in a viewScope bean which call an EJB method, make some services in the EJB on the line modified. After that I refresh the VO and the table (because others values on the line have been modified) and reset the focus on the same inputText modified by the user with javaScript because focus was lost after refresh.
    So far, everything works fine.
    When I use the arrow keys to change the selected row in the table, it's work fine (focus is still in the next or previous inputText), but if user try to use tab key to change the current line, the inputText on the next line have the focus but the current row of the table is not changed (I think it's normal).
    My question : how can I change the current row after tab key pressed in this case ?
    I don't know if it's really clear, not easy to explain, don't hesitate to ask more details.
    Thanks in advance.

    Frank Nimphius wrote:
    Hi,
    My question : how can I change the current row after tab key pressed in this case ?
    Use a client event to listen for the keyboard entry and intercept the tab. The use af:serverListener to call the server to set the rowKey on the table and issue a PPR for the table to re-paint
    See sample 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    to learn about how to use the client listener and server listener
    FrankHi,
    Thanks a lot for your advices, I used the client and server listener
    I used this code on the method call in order to change the selection after key tab pressed, I don't know if it can be easier, but it works.
              if (LOGGER.isDebugEnabled()) {
              LOGGER.debug("START changeSelectedRow");
              RowKeySet oldRowKeySet = myTable.getSelectedRowKeys(); // get oldRowKeySet
              if (oldRowKeySet == null) {
                   if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("oldRowKeySet is null");
                   return;
              RowKeySetImpl newRowKeySet = new RowKeySetImpl(); // The new RowKeySet use to change the selectedRow
              DCIteratorBinding bindingIterator = ADFUtils.findIterator(MY_ITERATOR);
              bindingIterator.setRangeSize(-1);
              // set the new index of the current row.
              int index = bindingIterator.getCurrentRowIndexInRange();
              if (index < bindingIterator.getAllRowsInRange().length - 1) {
                   index++;
              bindingIterator.setCurrentRowIndexInRange(index);
              // get the current row after changed the index
              Row currentRow = bindingIterator.getCurrentRow();
              if (currentRow != null) {
                   ArrayList nextLst = new ArrayList(1);
                   nextLst.add(currentRow.getKey());
                   newRowKeySet.add(nextLst);
                   // set the new selectedRow
                   myTable.setSelectedRowKeys(newRowKeySet);
                   SelectionEvent selectionEvent = new SelectionEvent(oldRowKeySet, newRowKeySet, myTable);
                   selectionEvent.queue();
                   AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
              if (LOGGER.isDebugEnabled()) {
                   LOGGER.debug("END changeSelectedRow");
    Best Regards
    Benjamin

  • How to use tab key with JTextArea to shift focus

    Hi
    My problem is simple as whenevr i use tab key in my JTextArea, instaed of shifting focus to next component, it adds a tab space to my text.
    How do i shift focus out of my JTextArea.
    Ashish

    you can also redefine the textarea's TAB Key behaviour. The tutorial has a good example for that - better than i would be able to describe :-)
    look at http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html

  • Data fetch from table without Refresh and without using tab key.

    hi Friends,
    I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
    If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
    Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
    Andy

  • Access table cells

    Hello,
    Could someone please help me understand how to access table cells (in report)?  I have a report with a table populated from a channel.  It shows, in one column, a list of names (which come from a channel).  I have another channel with a list of colors and I want to associate each name in the table with a color from this second channel. I have tried without success to even access a cell using D2TabRow and D2TabCol and display the contents....
    Any help is appreciated
    Thanks 
    Solved!
    Go to Solution.

    Hi Edna-S,
    Thanks again for the help, but I am stuck at a very basic level.   if I can get past that, the rest will work for me.  Rather than using channels, I would like to reference elements in a table using the table row and column.
    I found the script below in a previous post.  Using it, I can create a two column table in Report.  I added a little bit to the script and I can also change the font colour for the headers or a column.
    But, I cannot figure out how to reference just one cell.  If for example, I wanted to change the font colour for the third cell in the second column only, what commands should I use?  In other words is there some equivalent of A= chT (row, channel) for use with tables where I could give the cell reference (row,col) and have the entry stored (A) in that cell returned?
    Many Thanks!
    Dim Length, Ch1, Ch2, GroupIdx
    Length = 8
    GroupIdx = GetCreateGroup("New Group")
    Ch1 = GetCreateChannel(GroupIdx, "New Channel 1", Length)
    Ch2 = GetCreateChannel(GroupIdx, "New Channel 2", Length)
    For i = 1 to Length
       ChDX(i, Ch1) = i
       ChDX(i, Ch2) = i+5
    Next
    Call PicLoad("C:\DiademExercises\Table_test2.TDR")
    Call GraphSheetShow("Property_table")
    Call GRAPHObjOpen("2DTable1")
      D2TABDATATYPE(1) = "Channel"
      D2TABCHNNAME(1)  = "[" & GroupIdx & "]/" & ChnName(Ch1)
      D2TABDATATYPE(2) = "Channel"
      D2TABCHNNAME(2)  = "[" & GroupIdx & "]/" & ChnName(Ch2)
    Call GRAPHObjClose("2DTable1")
    Call PicUpdate
    '******* GetCreateGroup() ***                                     *** NEW Function ***
    Function GetCreateGroup(GroupNameStr)
      Dim ResultsGroupIdx
      ResultsGroupIdx = GroupIndexGet(GroupNameStr)
      IF ResultsGroupIdx = 0 THEN
        Call GroupCreate(GroupNameStr)
        ResultsGroupIdx = GroupCount
      END IF
      Call GroupDefaultSet(ResultsGroupIdx)
    GetCreateGroup = ResultsGroupIdx
    End Function ' GetCreateGroup()
    '******* GetCreateChannel() ***                                   *** NEW Function ***
    Function GetCreateChannel(GroupIdx, ChanName, ChanLength)
      Dim ResultChanNum, ChanIdx
      ResultChanNum = CNo("[" & GroupIdx & "]/" & ChanName)
      IF ResultChanNum = 0 THEN
        ChanIdx = GroupChnCount(GroupIdx) + 1
        Call ChnAlloc(ChanName, ChanLength, 1, DataTypeFloat64, "Numeric", GroupIdx, ChanIdx)
        ResultChanNum = CNoXGet(GroupIdx, ChanIdx)
      END IF
      ChnLength(ResultChanNum) = ChanLength
    GetCreateChannel = ResultChanNum
    End Function ' GetCreateChannel()
    Call GRAPHObjOpen("2DTable1")
    D2TabNumColor(2) = "red"  'Changes font in column2 to red
     D2TabTxtColor = "blue" 'Puts the header text blue in colour
    Call GRAPHObjClose("2DTable1")
    Call PicUpdate

  • How to use TAB key  rolling on the rank of a JTabbedPane ?

    I hope I can use TAB key to switch the different option item , how to do this ?
    Liwei

    You need to use a key listener. Something like:
            static class myKeyListener implements KeyListener
                    //KeyListener reuired methods
                    public void keyPressed(KeyEvent e)
                            int a = e.getKeyCode();
                            //Check if they pressed tab
                            if (a == e.VK_TAB)
                                   //Do whatever
                    public void keyReleased(KeyEvent e)
                    public void keyTyped(KeyEvent e)
            }Then, put "myTabbedPane.add(myInstanceOfMyKeyListener" up where you're creating the pane, replacing "myTabbedPane" and "myInstanceOfMyKeyListener" with whatever variables you're using.

  • 403 Error when access Table Storage using SAS token

    I have Azure Mobile Service which has a custom API to generate a sas token for accessing Table Storage from Windows Store app.
    I get following error in Windows Store app while accessing table storage using sas token:
    Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    Example of sas token generated:
    se=2014-09-12T03%3A10%3A00Z&sp=rw&spk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&epk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&sv=2014-02-14&tn=Folders&sig=91c7S1QM0byNdM80JncwRribXqsWS1iKmOH8cRvHWhQ%3D
    Azure Mobile Services API Code that generates sas token:
    exports.get = function(request, response) {
    var azure = require('azure-storage');
    var accountName = 'myAccountName';
    var accountKey = 'myAccountKey';
    var host = accountName + '.table.core.windows.net';
    var tableService = azure.createTableService(accountName, accountKey, host);
    var sharedAccessPolicy = {
    AccessPolicy: {
    Permissions: 'rw', //Read and Write permissions
    Expiry: dayFromNow(1),
    StartPk: request.user.userId,
    EndPk: request.user.userId
    var sasToken = tableService.generateSharedAccessSignature('myTableName', sharedAccessPolicy);
    response.send(statusCodes.OK, { sasToken : sasToken });
    function dayFromNow(days){
    var result = new Date();
    result.setDate(result.getDate() + days);
    return result;
    Windows Store app code that uses sas token:
    public async Task TestSasApi()
    try
    var tableEndPoint = "https://myAccount.table.core.windows.net";
    var sasToken = await this.MobileService.InvokeApiAsync<Azure.StorageSas>("getsastoken", System.Net.Http.HttpMethod.Get, null);
    StorageCredentials storageCredentials = new StorageCredentials(sasToken);
    CloudTableClient tableClient = new CloudTableClient(new Uri(tableEndPoint), storageCredentials);
    var tableRef = tableClient.GetTableReference("myTableName");
    TableQuery query
    = new TableQuery().Where(TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.Equal,
    this.MobileService.CurrentUser.UserId));
    TableQuerySegment seg = await tableRef.ExecuteQuerySegmentedAsync(query, null);
    foreach (DynamicTableEntity ent in seg)
    string str = ent.ToString();
    catch (Exception ex)
    string msg = ex.Message;
    Exception:
    Any help is appreciated.
    Thanks in advance!
    Thanks, Vinod Shinde

    Hi Mekh,
    Thanks for the links. I checked them and mostly they are due to date time on client and server.
    But this is not the case in this scenario.
    here is the Request and Response from Fiddler.
    Request:
    GET
    https://myaccount.table.core.windows.net/Folders?se=2014-09-13T02%3A33%3A26Z&sp=rw&spk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&epk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&sv=2014-02-14&tn=Folders&sig=YIwVPHb2wRShiyE2cWXV5hHg0p4FwQOGmWBHlN3%2FRO8%3D&api-version=2014-02-14&$filter=PartitionKey%20eq%20%27MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2%27
    HTTP/1.1
    Accept: application/atom+xml, application/xml
    Accept-Charset: UTF-8
    MaxDataServiceVersion: 2.0;NetFx
    x-ms-client-request-id: b5d9ab61-5cff-498f-94e9-437694e9256c
    User-Agent: WA-Storage/4.2.1 (Windows Runtime)
    Host: todoprime.table.core.windows.net
    Response:
    HTTP/1.1 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    Content-Length: 437
    Content-Type: application/xml
    Server: Microsoft-HTTPAPI/2.0
    x-ms-request-id: 22c0543b-0002-0049-7337-da39f4000000
    Date: Thu, 11 Sep 2014 02:33:28 GMT
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
      <code>AuthenticationFailed</code>
      <message xml:lang="en-US">Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    RequestId:22c0543b-0002-0049-7337-da39f4000000
    Time:2014-09-11T02:33:29.6520060Z</message>
    </error>
    Do you see anything different in this request/response?
    Thanks, Vinod Shinde

  • How to insert an in-line image into a table cell using Pages on OS X?

    How can I insert an image into a table cell using Pages (OS X) without it becoming the cell background? I want it to be a regular in-line image, but can't figure out how to do this for the life of me. Thanks!

    Welcome to Discussions.
    To insert an image into a cell, select the cell, then go to the Graphics Inspector and from the Fill drop down choose Image Fill and then select then image you want. You can now select from a new drop down how you want the image to fit.
    Walt

  • I can't use tabbed browsing with my VPN and Intel iMac

    I had no problem using tabbed browsing (with Safari) when connecting to
    my virtual private network (go to my pc), when I used my iMac G5. Now that
    I'm using an 'Intel' iMac, when I tab back to my VPN, it defaults to my log in
    screen. I've checked my Safari settings, and they're all the same as my iMac
    G5. Does anyone have any suggestions?
    Thanks,
    Paul

    It works now...

  • JSTL - access table cells

    I have an html table where rows are added by the user using javascript. I can't figure out a way to reference the table then subsequently the specific row and column. How do I access the cells of the table using jstl tags?
    Thanks, Bill
    Message was edited by:
    rx7haze

    Not sure what you mean.
    JSTL runs on the server, before the page is generated. Javascript runs on the client after the page is generated. So you are separated by both time (JSTL comes first, so can't reference what comes later), and space (the two things are running on different machines).
    If you want the info that the user puts into the table accessible to the server, you will have to submit a form, and all the info the user entered will need to be put in inputs.
    Once you submit the page, JSTL can access an array of all the values with a given input name using request.parameterValues, for which you can either iterate over, or index into.

  • Keyboard Control FAIL: Using TAB key on websites directs cursor to nowhere!!! Why?

    (using 2.3 GHz Intel Core i5 MAC MINI, OS X Lion 10.7.5)
    I have always felt safer using the keyboard rather than mouse-clicking on search fields etc. (Open Firefox, hit command+L to the URL I want to go to, then hop to next field with TAB key).
    Most notably frustrating example is with using Google, this has not worked right for some time. Say that you to start to search for something on google "main page" and then it goes to the search results page... You go to edit your search or type your next search and the cursor is flashing inside (but off center) of the search field and inputting text is not an option. Also you may instictively hit ESC (while in search field) when you are being given suggestions you don't want, and then the cursor moves again to this no-man's land in between fields.
    The other KEYBOARD control issue that I have found is this:
    Sometimes you cannot Close Window or even Quit Firefox with the usual keyboard shortcut. Usually when a few windows or tabs are open, or when there is some pop-up survey etc. on page. You can usually ALT+TAB to another open program and then back, and then you can close window or application. But that seems really sketchy to me! This happens all the time on major websites. You can go File-> Close Window or File->Quit, but when you use the same keyboard command the file menu just flashes with an "error tone."

    The TAB key thing was the same in safe mode. Actually I should add/correct, regarding that google search example: when the cursor is in "inbetween fields" positions, actually it lets you type at the END of the text that you had typed in the field (even though the cursor is blinking before the text). and if you "Command A" to replace the text in the search field while cursor in this position, it instead selects all the rest of the text OUTSIDE the field. Just doesn't make any sense. I think this happens with fields on Facebook as well.
    That first issue is just very annoying because it comes up every day and I never get used to it. I would be actually be curious to hear from someone whom this DOES NOT happen to.
    The 2nd issue I mentioned occurs more randomly, and seems more definately a Firefox issue. (When you can only close a window or quit from the drop down menu with the mouse, Command W and Command Q just give an error beep)

  • Using tab key in SQL developer

    I am trying to write my PL/SQL code using SQL developer and I want to use the tab key for my alignment. Whenever I press the tab key the cursor is not moving forward. Do any of you know how can I make it work?
    Thanks in advance for your help.

    Thank you for pointing out a "known problem" with the accelerators! I've been having a problem whereby I suddenly became unable to use the backspace or delete keys to make changes to code. Interestingly, I loaded the preset accelerators as you suggested to handle problems with the tab key and suddenly everything else works fine now.
    Regards,
    John

  • How to use Control Key with other key as Ctrl+C

    I am using this code to access Shift key + C
    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isShiftDown() && (KEv.getKeyCode() == KEv.VK_C))
    //Shift + C key down
    Please tell me how to do with Control Key?
    Vishwajeet

    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isControlDown && (KEv.getKeyCode() == KEv.VK_C))
    //Cntrl + C key down
    //if u want to create a key stroke for keys with contrl combination use CTRL_MASK.

  • Why can't I use tab key to move around in Add Bookmark Dialog?

    It is much easier and faster if the tab key can be used to move around in the Add Bookmark Dialog. Otherwise, it will be very annoying that every time you add a bookmark, you need to grab a mouse.
    Or could you recommend a addon that let me add bookmark without using mouse and the bookmark is just organized simply in a tree view?

    Never tried that before in Firefox, but the Tab key works for me to navigate thru the Add Bookmark dialog in Firefox 3,6.15 on Ubuntu 10.04 Linux. Might be different in Win7 or you may have a problem with one of your addons.
    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

Maybe you are looking for