Forums Register Login

Losing Tab Index Order After Ajax Request

+Pie Number of slices to send: Send
Hi Guys,

I've a minor but sticky problem;

After selecting a element from rich:combobox there comes an ajax request and after the "Please Wait" Icon disappear, the current tab index is lost and starts from 1 again.
which completely destroys the user-friendliness of the page.

If you've any idea and if you can help me about this I'll be glad & it'll be very nice for me =)

Thanks for your time.

Umut

P.S. Here is the code,
<r:comboBox id="markaInput"
value="#{birlesikKaskoPrimHesapHome.marka2}">
<a:support ajaxSingle="true" event="onselect"
eventsQueue="selectQueue"
similarityGroupingId="selectGroup"
action="#{birlesikKaskoPrimHesapHome.markaSecildi()}"
reRender="STUFF" />
<f:selectItems value="#{birlesikKaskoPrimHesapHome.markaList2}" />
</r:comboBox>
+Pie Number of slices to send: Send
Hi Umut,

Welcome to Javaranch, you can use the code tags to post your code snippets for better readability.

As for your question does your tab index start from 1? check your reRender value to verify if the
ajax response is going to update the correct components(id's)

I have a dummy example which you can customize for your needs

+Pie Number of slices to send: Send
Hey thanks for the welcome party =D

i'm reRendering just the needed stuff nothing except and not rerendering the big divs, just the id's of the components...
TabIndex starts from 1 but my problem is lets say we are at the 4th combobox which has the tabIndex value is 10; after selecting stg from it and pressing tab the tab order should continue from 11 as usually but in this code it decides to go back to 1...

and cannot use "FOCUS" attribute of Ajax too because the components are disabled, thus focus makes the browser throw a JS Error...

+Pie Number of slices to send: Send
Umut,

I just tried the tab index for more than one combo box and it works , you don't require the focus field, I am not sure if you are tracking
a particular user pattern or the normal flow if a user hits tab after selecting a value from the combobox, it should continue the tab order which it does.

here is an addition to my earlier code snippet

Don't touch me. And dont' touch this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 7643 times.
Similar Threads
Calling a javascript function after getting ajax response + struts 2.1.6
RichFaces conditionally rendered tab actions problem
readyState=4 and Http 404 error in Ajax /Struts
using ajax and struts iterate tags
Tab index not working fine for radio buttons
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:48:58.