Incidentally, I just opened up an enhancement issue to optionally specify
fieldname for autofocus rather than boolean only. Do vote if you feel it's
important to you: https://issues.apache.org/jira/browse/TAP5-650.

Kalle


On Sat, Apr 18, 2009 at 7:32 PM, Thiago H. de Paula Figueiredo <
[email protected]> wrote:

> Em Sat, 18 Apr 2009 16:04:38 -0300, Yury Luneff <[email protected]>
> escreveu:
>
>  Hello, users.
>>
>
> Hi!
>
>  When the page is rendered, it has "$('control_id').activate();" in the
>> JS part of the page. How do I manually decide which control gets
>> focus? As for now tapestry seem to choose control that is first on
>> page.
>>
>
> Take a look at the autofocus parameter from the Form and BeanEditForm
> components: "If true (the default), then the JavaScript will be added to
> position the cursor into the form. The field to receive focus is the first
> rendered field that is in error, or required, or present (in that order of
> priority)."
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to