validating a form that is not visible

2015-01-22 Thread Andrew Geery
I have a top-level form. The top-level form contains two nested forms. The nested forms are inside of a TabbedPanel so only one is visible at a time. The save button for the top-level form is always visible. The save button submits the top-level form and submitting the top-level form also has

Re: validating a form that is not visible

2015-01-22 Thread Ernesto Reinaldo Barreiro
Use a client side TAB...? So, visibility is handled at the client On Thu, Jan 22, 2015 at 11:51 AM, Andrew Geery andrew.ge...@gmail.com wrote: I have a top-level form. The top-level form contains two nested forms. The nested forms are inside of a TabbedPanel so only one is visible at a

Re: validating a form that is not visible

2015-01-22 Thread Martin Grigorov
Hi, I think you will need to write custom tabbed panel that hides the tabs with JS on the client side. The problem with Wicket's default TabbedPanel is that it sees only one tab at a time - the active tab. I.e. the component tree is something like ...form:tabbedPanel:content:nestedFormX:...

Re: validating a form that is not visible

2015-01-22 Thread Ernesto Reinaldo Barreiro
e.g. https://github.com/reiern70/wicket-bootstrap/blob/master/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/tabs/ClientSideBootstrapTabbedPanel.java On Thu, Jan 22, 2015 at 11:57 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, I think you will need to

Re: validating a form that is not visible

2015-01-22 Thread Andrew Geery
Thanks so much for the info and the pointers! Andrew On Thu, Jan 22, 2015 at 7:03 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: e.g.