Question

I want to create a settings-dialog in my wicket page. I created a ModalWindow that contains a form to achieve this. This works great, the dialog shows up and it contains the form but now I need to return some of these values in the form back to the caller page. Is there someone who could give me pointers on how to do this?

Thanks in advance.

Was it helpful?

Solution

Quote from ModalWindow API:

"If you want to use form in modal window component make sure that you put the modal window itself in another form (nesting forms is legal in Wicket) and that the form on modal window is submitted before the window get closed"

This way when you submit the form in the modal window actually the parent form gets submitted and you get the values transferred.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top