Re: Setting focus on input fields

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Thu, 10 Apr 2008 13:05:06 -0700

Ed Burns wrote:
>>>>>> On Tue, 08 Apr 2008 09:00:24 -0700, Jim Driscoll <Jim.Driscoll_at_Sun.COM> said:
> JD> Jason Lee wrote:
>>> <foo:focus>
>>> <h:inputText></h:inputText>
>>> </foo:focus>
>>> That would be pretty simple.
> JD> Yes, that would be very easy to do. But it seems the opposite of what I
> JD> would expect - and thus ugly.
> JD> Am I the only one who feels this way?
> Wrapping the component to receive focus seems fine to me.

Hi Ed,

The way I eventually implemented it was <foo:focus
for="formID:componentID/> ...

There appears to be fairly wide agreement that it should make it into
2.0 - my suggestion was f:view, but Ken points out that h:body would
probably make a better home.

I've filed a spec feature request on this, 354.