aspose file tools*
The moose likes Struts and the fly likes Tab index not working fine for radio buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tab index not working fine for radio buttons" Watch "Tab index not working fine for radio buttons" New topic
Author

Tab index not working fine for radio buttons

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
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 ]

Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Dec 20, 2007
Posts: 299
<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
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Dec 20, 2007
Posts: 299
i tried removing one of the tab indexes........but still the same prblm......
 
Consider Paul's rocket mass heater.
 
subject: Tab index not working fine for radio buttons