Hi, The easiest way I see is to use onBeforeSend() callback listener on the Ajax submit behavior of the form. There you can do a **synchronous** Ajax call to get your key and then modify (i.e. encrypt) the data to be sent.
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 16, 2017 at 8:08 AM, James Selvakumar <[email protected]> wrote: > Hi all, > > I have this requirement where some of the data entered by the user are to > be encrypted in the client side before the request is submitted to the > Wicket server even though the communication is over HTTPS. > > I am thinking of having some JavaScript code in the client which shall > intercept the form submission, request the Server for a randomly generated > key and encrypt the form data using the key received and then submit the > form again. > > Any idea how to achieve this in Wicket? > > -- > Thanks & regards > James >
