Re: [Wicket-user] Multipleforms good idea?

2006-06-26 Thread Nino Wael
Forms in my components are not nested... -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Frank Silbermann Sendt: fr 23-06-2006 17:33 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] Multipleforms good idea

Re: [Wicket-user] Multipleforms good idea?

2006-06-23 Thread Eelco Hillenius
oh, and a form part like this: private static final class TextFieldDefinitionEditor extends Panel implements IFormEditor { public TextFieldDefinitionEditor(String id, IModel fieldDefinitionModel) { super(id, new CompoundPropertyModel(fieldDefiniti

Re: [Wicket-user] Multipleforms good idea?

2006-06-23 Thread Eelco Hillenius
Looks like this: /** * Parts of form. */ private static interface IFormEditor { /** called by parent form on submitting. */ void onSubmit(); } and the actual form: protected void onSubmit() { ... visitChildren(IFor

Re: [Wicket-user] Multipleforms good idea?

2006-06-23 Thread Eelco Hillenius
2006 2:48 AM > To: wicket-user@lists.sourceforge.net > Subject: [Wicket-user] Multipleforms good idea? > > > > > > Hi > > > > I've been creating some different components with wicket, so that I can > reuse them. On some of my pages there is stuff which does

Re: [Wicket-user] Multipleforms good idea?

2006-06-23 Thread Frank Silbermann
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino WaelSent: Friday, June 23, 2006 2:48 AMTo: wicket-user@lists.sourceforge.netSubject: [Wicket-user] Multipleforms good idea? Hi   I’ve been creating some different components with wicket, so that I can reuse them. On some of my

Re: [Wicket-user] Multipleforms good idea?

2006-06-23 Thread Martijn Dashorst
The problem with using multiple forms is that only the data of one form is submitted. So if your user has entered data in 2-3 forms, only the form that is submitted retains its data. So what we typically do is have one form on a page, and create panels that contain form components, and add those t

[Wicket-user] Multipleforms good idea?

2006-06-23 Thread Nino Wael
Hi   I’ve been creating some different components with wicket, so that I can reuse them. On some of my pages there is stuff which does not encourage reuse. All my components have their own form, none of them have regular submit buttons. This is handled in another component, which also ha