You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Denis McCarthy <dm...@annadaletech.com> on 2010/10/02 18:02:32 UTC

Re: Dynamically setting tabindex for input elements in a component

Perfect, thanks

On Mon, Sep 27, 2010 at 6:44 PM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Mon, 27 Sep 2010 14:09:18 -0300, Denis McCarthy <
> dmccarthy@annadaletech.com> wrote:
>
>   <t:select t:id="country" t:model="dummyModel" t:value="country"
>> t:label="message:COUNTRY" tabindex="${tabIndexStart + 1}" />
>>
>
> <t:select t:id="country" t:model="dummyModel" t:value="country"
>        t:label="message:COUNTRY" tabindex="${getTabIndex(1)}" />
>
> public int getTabIndex() {
>        ....
> }
>
>
> public int getTabIndex(int skip) {
>        getTabIndex() + skip;
> }
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Annadale Technologies Limited