use ajaxforcomponentupdatingbehavior for the event onblur/onchange or
any other depending on your need

set the focus on the formcomponent ajaxrequesttarget.focuscomponent(component)

On Mon, Oct 17, 2011 at 5:04 PM, SreedharGanduri
<sreedhar.gand...@gmail.com> wrote:
> Hi,
> I have a form, and list of fields in it.
> based on input entered in the field i have to update form (remove some
> components/ add new ones).
> When i update such a field and focus in the next field, i loose the focus
> after the ajax update.
>
> Is there a way in wicket in which i can save last focused component and set
> the focus back when my model is updated?
>
> Regards
> Sree
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Retain-Focus-After-Ajax-Update-tp3911732p3911732.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
thank you,

regards,
Vineet Semwal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to