dev@javaserverfaces.java.net

Re: Setting focus on input fields

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Thu, 10 Apr 2008 15:25:46 -0400

>>>>> 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.

Ed
--