Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Igor Vaynberg
btw, when submitting a form through _javascript_ form's onsubmit is not called so you have to call it manually from the button anyways.-IgorOn 7/17/06, Dorel Vaida <[EMAIL PROTECTED]> wrote: It works, sorry, I was not paying enough attention. In the first phase Iwasn't looking to the right form, t

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Eelco Hillenius
> It works, sorry, I was not paying enough attention. In the first phase I > wasn't looking to the right form, the the second phase I forgot to add > the 'return' in the 'onsubmit' form handler > > Correct is *add(new SimpleAttributeModifier("onsubmit", "return > confirmSubmission()"));* and it wor

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
It works, sorry, I was not paying enough attention. In the first phase I wasn't looking to the right form, the the second phase I forgot to add the 'return' in the 'onsubmit' form handler Correct is *add(new SimpleAttributeModifier("onsubmit", "return confirmSubmission()"));* and it works with

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Matej Knopp
Dorel Vaida wrote: > Eelco Hillenius wrote: >> Yeah do it like that. > The form is submitted no matter what I return in submit button's > onclick. Eventually the solution would be to add a simple button and NOT Can you check the generated output, if the javascript is there? I see no reason why

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
Eelco Hillenius wrote: > Yeah do it like that. The form is submitted no matter what I return in submit button's onclick. Eventually the solution would be to add a simple button and NOT a submit button and force submiting the form through javascript when pressing the button. (Which I do not lik

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Eelco Hillenius
Yeah do it like that. I wouldn't know why attaching attribute modifiers to your form didn't work though... Eelco On 7/17/06, Matej Knopp <[EMAIL PROTECTED]> wrote: > I think you should add Button(s) to the form and add onclick attribute > modifier on them (or right on to the markup wicket:id="s

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Matej Knopp
I think you should add Button(s) to the form and add onclick attribute modifier on them (or right on to the markup ) -Matej Dorel Vaida wrote: > I'm using wicket 1.2 final and trying to use the form's 'onsubmit' > handler to prompt the user to confirm a message or not. I've tried to > solve t

[Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
I'm using wicket 1.2 final and trying to use the form's 'onsubmit' handler to prompt the user to confirm a message or not. I've tried to solve this by adding the "onsubmit" to the form with a SimpleAttributeModifier but it doesn't work, the onsubmit attribute is simply not rendered ?! If this