I have a wicket form with multiple components and a button in the bottom to validate the user input and generate a file to download upon successful validation.
I am using an AjaxSubmitLink to display the user feedback when the onError() is called but I am puzzled on how to have the onSubmit() behave like a ResourceLink.
Thanks for the help!
you need the approach described at https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow because you cannot return bytes in the Ajax response.