-
1. Re: How to set tabindex for inputNumberSlider?
ppitonak Jun 3, 2011 12:35 PM (in response to ericford)Hi Eric,
it works fine for me. Could you please write which version of RichFaces and which browser do you use?
Regards,
Palo
-
2. Re: How to set tabindex for inputNumberSlider?
ericford Jun 3, 2011 4:41 PM (in response to ppitonak)Using RF 3.3.3 Final and FF 3.6.
-
3. Re: How to set tabindex for inputNumberSlider?
ppitonak Jun 6, 2011 7:08 AM (in response to ericford)Hi Eric,
I can reproduce it with 3.3.3.Final. The tabindex attribute is not rendered at all so it will not behave correctly in any browser. You can create an issue in our Jira (https://issues.jboss.org/browse/RF). Since all development is focused on RichFaces 4 and there are no plans for other RichFaces 3.x releases, you should consider migration to RichFaces 4.
Regards,
Palo
-
4. Re: How to set tabindex for inputNumberSlider?
ericford Jun 6, 2011 10:01 PM (in response to ppitonak)Pavol,
Thanks very much for the follow-up. I have been considering migration but may be too close to my delivery date with some other even more significant issues to resolve first. That migration may have to wait for a later release.
Regards,
Eric
-
5. Re: How to set tabindex for inputNumberSlider?
ericford Jun 10, 2011 10:02 AM (in response to ppitonak)Someone suggested I might be able to achieve the needed results using a jQuery tag to add the tabindex attribute directly. I have only just started delving into jQuery and would appreciate any tips regarding if/how this could be done before I spend a lot of time getting up to speed (especially if this idea is not a workable one).
-
6. Re: How to set tabindex for inputNumberSlider?
esford Jun 20, 2011 11:36 AM (in response to ericford)I added the following tag but haven't had any luck getting it to work:
<rich:jQuery selector="document" query="ready(function(){$('myForm:maxNumberInput').attr('tabindex', '6')})"/>
I've verified that my selector is picking the correct input. Changing the tag to:
<rich:jQuery selector="document" query="ready(function(){alert($('myForm:maxNumberInput').value)})"/>
produces the expected alert box with the default value from the input. However, the call to ".attr" appears to have no effect. I tried it with ".prop" as well, with the same result.
-
7. Re: How to set tabindex for inputNumberSlider?
ericford Aug 5, 2011 10:07 AM (in response to esford)My error - the jQuery approach works if you use the correct selector:
<rich:jQuery selector="document" query="ready(function(){$('myForm\\:maxNumberInput').attr('tabindex', '6')})"/>
I forgot the "\\" required for the ":" literal in the id. It also works if I add "prependId=false" to the form tag and just use the component id:
<rich:jQuery selector="document" query="ready(function(){$('maxNumberInput').attr('tabindex', '6')})"/>