Fer
Fer

Reputation: 460

Wicket turns form into a div and panel into a form

I currently have a tabbed panel inside a model window in which I want a form to exists.

Everything is working properly, BUT the form declared in my markup is turned into a DIV and the panel into a form.

Below you can see my 1. markup for the modal window, 2. the code of the button which created the component within a page 3. the markup of my form being added to the SubmitToRegistrarPanel 4. The resulting html ...

This prohibits me from controlling action, onSubmit etc... ultimately, I want to set the original action of the form, when the panel is being created in such a way it will first post to an external CAS, then come back as a service to the handler (back to wicket)so I can get a service ticket.

Please help, thanks.

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 694

Answers (1)

svenmeier
svenmeier

Reputation: 5681

Have you put the ModalWindow inside a form?

https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html

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

Upvotes: 2

Related Questions