Hi,

Sorry, but it is still not clear to me.

On Thu, Dec 10, 2015 at 5:47 AM, Rakesh A <[email protected]>
wrote:

> 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.
>

The 'close' link triggers POST request ?!
Is this Wicket's ModalWindow or some custom Modal implementation?


> 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 'close' link usually is something like "<a id="someId12">Close</a>",
i.e it doesn't wrap a <form> (or any form elements) and
thus has nothing to serialize.
It is interesting to me how this 'close' button looks like. Both its Java
code and HTML code.


>
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to