dev@javaserverfaces.java.net

Re: Setting focus on input fields

From: Jacob Hookom <jacob_at_hookom.net>
Date: Fri, 28 Mar 2008 13:15:09 -0500

I thought the same thing, but documentation/forums online say that this
will not work

Doug Donahue wrote:
> Jim;
>
> Would the "tabindex" attribute on the input element do the same thing?
>
> example:
> <h:inputText id="fname" label="First Name" tabindex="0"/>
>
> Would the focus default to the lowest tabindex?
>
> Dougd
>
>
>
> Jim Driscoll wrote:
>> How about this for a RFI on the API - setting focus on an input field.
>>
>> Right now, if I understand correctly, you end up coding in javascript...
>>
>> http://forum.java.sun.com/thread.jspa?threadID=651739
>>
>> Thoughts? It's a not uncommon request. It would seem a shame to
>> have to intermingle javascript with your page for such a common task.
>>
>> Jim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
>> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>
>