Hello, we've been working on some javascript code that needs to compute
some values before sending the request to wicket server side. Currently,
we bind directly to the component's click event using jquery from js,
and send the request using Wicket.Ajax.post function. To pass the needed
variables to make the ajax call (e.g. callbackUrl) from java to js we
are using PackageTextTemplate.
Everything works fine, but then I saw lots of examples using
getCallbackScript, and they modify the AjaxRequestAttributes through the
AbstractDefaultAjaxBehavior#updateAjaxAttributes() method to pass extra
parameters that need to be sent with the request.
I believe both approaches would work, but updating the
AjaxRequestAttributes seems the best way to go... am I missing something
here?
Thanks in advance.
Edgar Merino.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]