You don't need an ajax behavior to do this. This is all client-side
javascript only, as described in the stackoverflow post.

You can of course use a regular behavior to emit the necessary
javascript.

Carl-Eric

On Sat, 7 Sep 2013 15:50:06 +0500
"Farrukhjon SATTOROV (farrukh)" <[email protected]> wrote:

> My code here:
> sizeTextField.add(new
> AjaxEventBehavior("ENETER_KEY_OR_SOMTHING_LIKE_THIS") {
>  @Override
> protected void onEvent(AjaxRequestTarget target) {
> target.focusComponent(unitTextField);
> }
> });
> but i don't known how handler passing ENTER key and pass this as
> parameter to AjaxEventBehavior.
> 
> 
> On Sat, Sep 7, 2013 at 3:36 PM, Sven Meier <[email protected]> wrote:
> 
> > http://stackoverflow.com/**questions/4494552/change-**
> > enter-from-submission-to-tab/**4494691#4494691<http://stackoverflow.com/questions/4494552/change-enter-from-submission-to-tab/4494691#4494691>
> >
> >
> > On 09/07/2013 12:11 PM, Farrukhjon SATTOROV (farrukh) wrote:
> >
> >> Hi everyone, how to set focus on next form component (TextField) by
> >> pressing on ENTER key in current TextField. Thanks in advance.
> >>
> >>
> >
> > ------------------------------**------------------------------**---------
> > To unsubscribe, e-mail:
> > users-unsubscribe@wicket.**apache.org<[email protected]>
> > For additional commands, e-mail: [email protected]
> >
> >

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to