Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Igor Vaynberg
you can create a subclass of hiddenfield that would add the necessary javascript for you and you will end up with a nice reusable component. -igor On Wed, Apr 21, 2010 at 11:43 AM, Warren Bell wrote: > Thats what I am currently doing. It just felt to much like something I > used to do in Struts.

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Thats what I am currently doing. It just felt to much like something I used to do in Struts. I don't know if there is much call for this, but it would be nice to have an onSubmit for a text field or other form components that would get fired off if that component was in focus when the form was subm

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Igor Vaynberg
you have to keep a HiddenField component and populate its value using javascript. -igor On Wed, Apr 21, 2010 at 9:41 AM, Warren Bell wrote: > Is there a way to figure out in a forms onSubmit which text field or > button had focus when the form is submitted. I have done something in js > to achie

Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Is there a way to figure out in a forms onSubmit which text field or button had focus when the form is submitted. I have done something in js to achieve this, but wanted to see if there was something already built in Wicket. I am limited to using form submit only no Ajax. Windows CE is having probl