well, it depends on what kind of reuse you want. if you have a particularly cool form panel, it might be something that should stand on its own or nest. but i think you're probably right in general. i've got quite a few panels that just hold some fields for inclusion in a form.
igor.vaynberg wrote: > > imho all he should do is extend a panel, and make sure that panel is > always > inside a form. > > there is no need to have a form to group a few fields together. > > -igor > > > On 4/29/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: >> >> One note: this is a 1.3 feature so only expect it to work there. >> >> What happens with the nested forms is that the buttons stay, and iirc >> only the inner form is submitted when a button is pressed inside that >> inner form. >> >> I think the discussion never got to a conclusion on what happens when >> the outer form is submitted. I think we can still change that behavior >> (we're not final or in release candidate mode). >> >> FormComponent is for input controls (textfields, buttons, >> dropdownchoice, etc). Forms are for the form tag. So in your case, you >> should extend Form, and Wicket should take care of processing the >> right form (inner, outer, sibling) for you. >> >> But as I said, it probably is still a bit raw currently, as it is a >> new feature and not widely used. >> >> Martijn >> >> On 4/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> > >> > > Wicket supports nested forms. The inner form tags are replaced with >> > > elements. This is a component framework, where you expect forms >> > > to be able to be nested (form on a reusable panel anyone?). >> > >> > I'm just starting to work on a similar thing: an address form panel to >> > be used in other forms. >> > >> > Had assumed I should be extending FormComponent rather than Form >> itself. >> > Are you suggesting otherwise? Or does the nested form's submit button >> > get removed too? >> > >> > Is there an example of this kind of thing? I couldn't find one. >> > >> > Cheers, >> > Derek >> > >> > >> > >> > -----Original Message----- >> > From: [EMAIL PROTECTED] on behalf of Martijn >> Dashorst >> > Sent: Fri 4/27/2007 2:37 PM >> > To: wicket-user@lists.sourceforge.net >> > Subject: Re: [Wicket-user] Nested Forms and onSubmit()? >> > >> > On 4/27/07, jan_bar <[EMAIL PROTECTED]> wrote: >> > > I think that you cannot nest <form> in HTML. You have to "nest" them >> with >> > > CSS. This will also solve your trouble with form submits - I think >> that the >> > > browser simply ignores the nested <form> tags. >> > >> > Wicket supports nested forms. The inner form tags are replaced with >> > elements. This is a component framework, where you expect forms >> > to be able to be nested (form on a reusable panel anyone?). >> > >> > Martijn >> > -- >> > Learn Wicket at ApacheCon Europe: http://apachecon.com >> > Join the wicket community at irc.freenode.net: ##wicket >> > Wicket 1.2.6 contains a very important fix. Download Wicket now! >> > http://wicketframework.org >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > _______________________________________________ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> > ***** Email confidentiality notice ***** >> > This message is private and confidential. If you have received this >> message in error, please notify us and remove it from your system. >> > >> > The London School of Economics and Political Science (the School) is a >> company limited by guarantee, registered in England and Wales, under >> registered number 00070527, and having its registered office at 10th >> Floor, >> Tower One, Houghton Street, London WC2A 2AE. >> > >> > The inclusion of this information does not of itself make this email a >> business document of the School and, to the maximum extent permitted by >> law, >> the School accepts no liability for the content and opinions in any >> non-business emails. >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > _______________________________________________ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> > >> >> >> -- >> Learn Wicket at ApacheCon Europe: http://apachecon.com >> Join the wicket community at irc.freenode.net: ##wicket >> Wicket 1.2.6 contains a very important fix. Download Wicket now! >> http://wicketframework.org >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10244961 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user