Well I'm afraid you just can't set focus on a hidden element. So you have to
try to set the focus after it is visible. Maybe use of
Tapestry.ZONE_UPDATED_EVENT as lance firstly suggested might work.
$('formZone').observe(Tapestry.ZONE_UPDATED_EVENT, function(event) {
// set the focus
});
t;
> > -Original Message-
> > From: Thomas Jensen [mailto:tapes...@tj-development.dk]
> > Sent: Wednesday, October 03, 2012 10:14 PM
> > To: Tapestry users
> > Subject: Re: Change textfield focus on zone update
> >
> > 2012/10/3 Poder, Ja
-
> From: Thomas Jensen [mailto:tapes...@tj-development.dk]
> Sent: Wednesday, October 03, 2012 10:14 PM
> To: Tapestry users
> Subject: Re: Change textfield focus on zone update
>
> 2012/10/3 Poder, Jacob
>
>> There is even a specific method for the purpose, see
y.OVERRIDE,
transactionText.getClientId());
}
Best regards,
Jacob Poder
-Original Message-
From: Thomas Jensen [mailto:tapes...@tj-development.dk]
Sent: Wednesday, October 03, 2012 10:14 PM
To: Tapestry users
Subject: Re: Change textfield focus on zone update
2012/10/3 Poder, Jacob
> There is ev
lance.j...@googlemail.com]
> Sent: Wednesday, October 03, 2012 9:50 AM
> To: users@tapestry.apache.org
> Subject: Re: Change textfield focus on zone update
>
> On second thought... it might be easier to send some javascript to the
> client when form 1 is posted via JavaScriptSupport.addSc
@tapestry.apache.org
Subject: Re: Change textfield focus on zone update
On second thought... it might be easier to send some javascript to the client
when form 1 is posted via JavaScriptSupport.addScript(...)
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Change-textfield
On second thought... it might be easier to send some javascript to the client
when form 1 is posted via JavaScriptSupport.addScript(...)
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Change-textfield-focus-on-zone-update-tp5716599p5716601.html
Sent from the Tapestry - U
Tapestry fires a clientside event when a zone is updated with new content.
You can attach a listener to the event Tapestry.ZONE_UPDATED_EVENT
("tapestry:zoneupdated"). Listening to clientside events depends on the
clientside framework you are using. Use observe(...) for prototype or
on(...) for tap