this is a general html form thing. when you have a single textfield and you
press enter, the form is submitted. sometimes it happens even when you have
more then one textfield. to fix it you need to capture the enter keypress on
the field and return false so the event is discarded.

-igor


On 5/4/07, Anupama pullela <[EMAIL PROTECTED]> wrote:

Hi,
In my wicket page I have a AjaxSubmitLink(which is a <a> link in html
template) beside the textfield in a form.
And when I press enter after entering data in textfield, the form is
getting submitted but the onSubmit() function of AjaxSubmitLink is not
getting callled.
when I debug  in to the source code of Form.java , the onFormSubmitted()
function is called and which inturn calls findSubmittingButton() which is
returning null.
Can you kindly provide me a solution for this.
Thanks & Regards
Anupama

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to