Topic
  • 6 replies
  • Latest Post - ‏2012-06-15T13:38:25Z by SystemAdmin
SystemAdmin
SystemAdmin
6420 Posts

Pinned topic tabindex is not functioning

‏2007-09-11T14:09:39Z |
Hi,

I used tabindex="" to all the input component tags in the JSF page.
When I use tab to switch from one input component to another component, It's not functioning correctly.

In my JSF page, there were 10 input components.
I used tabindex="1" through tabindex="10".
When I use tab to switch from first through last, It's not going sequentially.
After 3 tab hits, It's coming back to first one and then going correctly.

I am giving the index numbers, how it goes....
1...2...3...1...2...3...4...5...6...7...8...9...10

Please suggest me, where i am going wrong?
Thanks for your help in advance.
Updated on 2012-06-15T13:38:25Z at 2012-06-15T13:38:25Z by SystemAdmin
  • yurykats
    yurykats
    2186 Posts

    Re: tabindex is not functioning

    ‏2007-09-11T14:24:23Z  
    Hard to tell anything, really, without seeing the JSP and the HTML it produces.
  • SystemAdmin
    SystemAdmin
    6420 Posts

    Re: tabindex is not functioning

    ‏2007-09-11T16:21:09Z  
    • yurykats
    • ‏2007-09-11T14:24:23Z
    Hard to tell anything, really, without seeing the JSP and the HTML it produces.
    I am attaching the viewSource HTML

    Thanks for reply.
    Updated on 2007-09-11T16:21:09Z at 2007-09-11T16:21:09Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6420 Posts

    Re: tabindex is not functioning

    ‏2007-09-11T16:23:01Z  
    • yurykats
    • ‏2007-09-11T14:24:23Z
    Hard to tell anything, really, without seeing the JSP and the HTML it produces.
    I am attaching JSP page.

    Attachments

    Updated on 2007-09-11T16:23:01Z at 2007-09-11T16:23:01Z by SystemAdmin
  • yurykats
    yurykats
    2186 Posts

    Re: tabindex is not functioning

    ‏2007-09-11T17:24:41Z  
    I am attaching the viewSource HTML

    Thanks for reply.
    If I open the attached file in a browser (FF2/IE6), the tab order works correctly, as you'd expect (ie 1, 2, 3, 4 etc).
  • blruser
    blruser
    2 Posts

    Re: tabindex is not functioning

    ‏2012-06-08T05:52:36Z  
    Hi

    I am also facing this problem for h:selectOneMenu component. I am working on jsf 1.2 and IE 6. I am unable to download the attached jsp with this thread.

    Issue : when i tab through the screen then tab key is skipping the drop downs (h:selectOneMenu) component. tabindex is not working for drop downs.

    Please help me to fix this issue. thanks in advance.
  • SystemAdmin
    SystemAdmin
    6420 Posts

    Re: tabindex is not functioning

    ‏2012-06-15T13:38:25Z  
    • blruser
    • ‏2012-06-08T05:52:36Z
    Hi

    I am also facing this problem for h:selectOneMenu component. I am working on jsf 1.2 and IE 6. I am unable to download the attached jsp with this thread.

    Issue : when i tab through the screen then tab key is skipping the drop downs (h:selectOneMenu) component. tabindex is not working for drop downs.

    Please help me to fix this issue. thanks in advance.
    Try your page with a newer version of IE (IE8 or later) and in Firefox. If the problem is only occuring in IE 6, then it's a browser bug (since fixed by the browser vendor).

    I suspect the issue is that the ajax implementation you are using is not explicitly destroying components that have a tab index set on them (it's relying on the browser to destroy them) and when components are added to the page that re-use the same tab index number, the browser is confused as to what to do (it has multiple things with the same tab index, some of which are no longer present). You can try using unique tab index numbers for everything that is added to the page via ajax (no duplication of tab index values).