Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
> the form should be reachable in #onInitialize(). try again No it is not reachable - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Doing an action on press of key in a form

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 1:56 PM, Krishna Mohan wrote: > >> Put this code in PanelWithTheButton#onInitialize() > > > > i did the same but it did not work the form should be reachable in #onInitialize(). try again > > > > > > > >

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
> Put this code in PanelWithTheButton#onInitialize() i did the same but it did not work - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Doing an action on press of key in a form

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 1:31 PM, Krishna Mohan wrote: > Martin Grigorov apache.org> writes: > >> >> I'm not sure what Igor meant with this suggestion. >> >> I think .setDefaultButton() should do what you need. >> >> Here is another suggestion from me: >> >> Add a non-Ajax behavior to the text fie

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
Martin Grigorov apache.org> writes: > > I'm not sure what Igor meant with this suggestion. > > I think .setDefaultButton() should do what you need. > > Here is another suggestion from me: > > Add a non-Ajax behavior to the text field which adds 'keyup' event > handler. When the user types som

Re: Doing an action on press of key in a form

2012-01-19 Thread Martin Grigorov
I'm not sure what Igor meant with this suggestion. I think .setDefaultButton() should do what you need. Here is another suggestion from me: Add a non-Ajax behavior to the text field which adds 'keyup' event handler. When the user types something in the field then check the keyCode from the event

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
Yes i understood that, but how to solve my original problem Regards Krishna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

RE: Doing an action on press of key in a form

2012-01-19 Thread Michal Wegrzyn
Doing an action on press of key in a form > > i get below error on using AjaxFormComponentUpdatingBehavior > > WicketMessage: Behavior > nl.planon.hera.filters.quicksearch.PnWebAdvancedSearchPanel$3 can only > be added > to an instance of a FormComponentRoot > cause:o

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
i get below error on using AjaxFormComponentUpdatingBehavior WicketMessage: Behavior nl.planon.hera.filters.quicksearch.PnWebAdvancedSearchPanel$3 can only be added to an instance of a FormComponentRoot cause:org.apache.wicket.WicketRuntimeException: Behavior nl.planon.hera.filters.quicksearc

Re: Doing an action on press of key in a form

2012-01-18 Thread Igor Vaynberg
use FormComponentUpdatingBehavior instead -igor On Wed, Jan 18, 2012 at 2:12 AM, Krishna Mohan wrote: > I have a form, few panels in it. > > In one of the panel i have few fields and in other panel a search button. > > I have requirement wherein after entering text in the field on press of > "E