One use-case is, we've a modal window with a form (with lot of form fields -
50 to 200 ) in it, dialog has 'Ok' button which, submits form field values
using Wicket Ajax POST call.
Modal window also has a 'onClose' Ajax callback. When I click on the 'Ok'
button it results
1. POST call with all form feild values, in this case the
"Wicket.Form.serializeElement(el)" call at line#656 of
'wicket-ajax-jquery.js', results empty array as the modal window DOM is
empty.
2. GET call (dialog close callback - settings.onClose property of modal
window), in this case "Wicket.Form.serializeElement(el)" call at line#656 of
'wicket-ajax-jquery.js', results array with all form fields in the dialog; I
see that the DOM for modal window gets changed before this call.

The second call in our case results a GET URL with all the form field values
appended to URL, resulting a http status code 400 - bad request.

Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-adding-all-form-component-values-to-request-parameters-tp4672911p4672916.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to