Re: AjaxSubmitlink vs AjaxButton

2008-08-12 Thread Milan Křápek
Thaks. You are right. I thought I need just add the AjaxSubmitLink to form as a 
Button but it must be set as default button. 

Best regards

Milan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AjaxSubmitlink vs AjaxButton

2008-08-12 Thread Ryan O'Hara

I think you'll need to call form.setDefaultButton(submitLink).

Ryan

On Aug 12, 2008, at 11:13 AM, Milan Křápek wrote:


Hi
  In my web application I realized form submiting by AjaxButtons.  
This wokrs great. I love the possibility to refresh just part of my  
page after submiting the form. Then  I decided to refactor my  
webapp tu use AjaxSubmitLink because I want to use some images and  
texts instead of buttons.
  This works too, but one thing make me confused. When I was using  
buttons I can submit my forms just by pressing the enter key, but  
with AjaxSubmitlink this  feathure does not work.
  I try to debug it and get this results. When I use buttons and  
press enter, Wicket call onSubmit method implemented by AjaxButton,  
but when I use AjaxSubmitLinks and press enter, wicket call  
onSubmit method on the form not on the link.


Why? Has it some purpose, should I use AjaxSubmitLinks by another  
way, or it is some bug?

Thanks for any response.

Milan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]