updating form component models when a link is clicked

2007-09-13 Thread tbt
be updated. -- View this message in context: http://www.nabble.com/updating-form-component-models-when-a-link-is-clicked-tf4434008.html#a12649853 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: updating form component models when a link is clicked

2007-09-13 Thread Jan Kriesten
I'm a newbie to wicket and I have a form and several components attached to it. There are several links in this form and when each link is clicked a different page is loaded. But the component models are not getting updated when the onClick event is called in each link. How can the models be

Re: updating form component models when a link is clicked

2007-09-13 Thread Martijn Dashorst
Or SubmitLink, which seems more appropriate in this case. Martijn On 9/13/07, Erik van Oosten [EMAIL PROTECTED] wrote: Hi, If you are using links, the browser won't submit the values. You should use buttons. Regards, Erik. tbt schreef: Hi I'm a newbie to wicket and I have a

Re: updating form component models when a link is clicked

2007-09-13 Thread Gerolf Seitz
On 9/13/07, Erik van Oosten [EMAIL PROTECTED] wrote: Hi, If you are using links, the browser won't submit the values. You should use buttons. you could use SubmitLink or AjaxSubmitLink... gerolf Regards, Erik. tbt schreef: Hi I'm a newbie to wicket and I have a form and

Re: updating form component models when a link is clicked

2007-09-13 Thread Erik van Oosten
You cannot use SubmitLink in a browser without javascript, right? Erik. Martijn Dashorst wrote: Or SubmitLink, which seems more appropriate in this case. Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: updating form component models when a link is clicked

2007-09-13 Thread Martijn Dashorst
Ehrm... Double negative question... Yes, you can't use it without JavaScript. As a a href= doesn't provide a way to submit a form, it uses javascript for calling form.submit(). In that case the only solution would be to use input type=submit / everywhere, and have the form surround all the