Thomas R. Corbin wrote: > or do you need to have each tab have it's own form? > > And if each tab has it's own form, does the user need to save their data > before switching tabs? > > Would the submit button be on each form, on each tab, or outside the tabs > entirely?
You can do this however you want. If you want a single form, I'd put the submit button outside the tabs to make it more obvious that you can skip between them before hitting submit. You'd then need to modify your tabs so that the link to each tab is a SubmitLinks, with setDefaultFormProcessing(false) to avoid validating the entire form as you click between the links. Alternatively, you can just put a form on each tab and have a submit button inside each form. The tabs/forms will be independent of each other in this case (although I guess you could link them together like a wizard if you wanted to, the point is that each tab has a form and an onSubmit method and is effectively standalone). This is more a question about UI design than anything else - Wicket doesn't force you to do things like this in any particular way. Is it obvious to your users how a multi-tabbed form works? People aren't used to that kind of way of doing things. If your form is too big to fit on a single screen, you might like to consider other ways of doing things. If you're creating stuff, having a wizard is probably better. If you're editing an existing entity, putting the save buttons inside the tabs is almost certainly more intuitive. You could also investigate something like Mootool's accordion (http://docs.mootools.net/files/Plugins/Accordion-js.html). Al ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
