• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tab index not working fine for radio buttons

 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam facing some tab index problem. There is one jsp, say abc.jsp which includes header.jsp. In header.jsp we have help, exit and cancel tabs(so i gave tabinxed=1,2and 3 for these things)
Now in abc.jsp, iam trying to include two set of radio buttons



Now, when i press tab, it goes to help, exit, cancel (i.e header.jsp
) and then it comes directly to tab prepery DEF (i.e tab index=5) and skips radio buttons with tab index=4


[ December 17, 2008: Message edited by: Maan Shenoy ]
[ December 17, 2008: Message edited by: Maan ]
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's not really a Struts questions; sounds more like something's wrong with however your tabbing solution is set up--does it actually try to display what's in the tab or does it not display it at all, which is what it sounds like?
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<span class="infoText"><html:radio property="ABC" value="Yes" tabindex="4" styleId="requested_yes" titleKey="abc.comnTitle.ABC" onKlick="javascript:callABC(this);"></html:radio><label for="requested_yes"><bean:message key="abc.rdbutton.yes" /></label> <html:radio property="ABC" value="No" tabindex="4" styleId="requested_no" titleKey="abc.comnTitle.ABCNO" onKlick="javascript:callABC(this);"> </html:radio> Now i have another property say updateDEF, which again is radio button <span class="infoText"> <html:radio property="updateDEF" value="Yes" tabindex="5" styleId="requested_yes" titleKey="abc.comnTitle.DEFYes"></html:radio><label for="requested_yes"><bean:message key="abc.rdbutton.yes" /></label> <label for="requested_no"><bean:message key="abc.rdbutton.no" /></label> </span> </td>


It displays, but after exit(tab index=3),i expected the focus to be at
property = ABC ( i.e tab index =4). However it skips tab index 4 and it focuses on tab index=5 (i.e property updateDEF).

However if i remove the the radio buttons present at tab index=5, then it works as expected. i.e it focuses on tab index=4 after tab index=3


The question is bit complex to put it here, but i appreciate your patience and thanks in advance
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, that kind of tabbing--I get it now.

I'd be suspicious about having two tabindex=4; have you tried it with only one tabindex=4?
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i tried removing one of the tab indexes........but still the same prblm......
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic