Submit non-wicket form through wicket form

2011-05-02 Thread Alec Swan
Hello, We have an interesting situation here. We have a Wicket page which we deliver to our web designer. The web designer uses this page as a template to build many pages and on each page may or may not choose to add a non-wicket form. Our webapp should collect the names and values submitted

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Igor Vaynberg
or you can write a servlet to process form submissions from all these different forms and call it a day. -igor On Mon, May 2, 2011 at 9:21 AM, Alec Swan alecs...@gmail.com wrote: Hello, We have an interesting situation here. We have a Wicket page which we deliver to our web designer. The web

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Alec Swan
Igor, we would like have access to the Wicket page model while processing the custom form submission, so using separate servlets is not a good solution for us. I started implemented the 3.1 step in our solution and immediately ran into a problem because wicket form contains a DIV with a hidden

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Clint Checketts
You could direct the non-wicket form's action to direct to a page and use the PageParameter's object to parse the input. I did that for a while until I finally learned how to use Wicket forms the right way. It worked quite well. You can parse in the values, manually checking validity (even

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Igor Vaynberg
an alternative would be to write your own form-like component. form impl doesnt use any internal hooks that you dont have access to, so its feasible you can easily write your own version that processes dynamic fields, etc. -igor On Mon, May 2, 2011 at 11:47 AM, Alec Swan alecs...@gmail.com

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Alec Swan
I ended up adding an empty Wicket form to my base page and creating submitCustomForm() JavaScript function which can be called from any non-Wicket form submission. The function copies all form elements from the form being submitted to the Wicket form and submits the Wicket form. Works like a