Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Marc Hauptmann
Hello, I want to use FormComponentPanels in forms to deal with more complex model-objects. I think it should be possible to chain the Model of every FormComponentPanel to the Model of the Form. So every FormComponent has automatically the right data in its Model when it changes. But somehow I

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Igor Vaynberg
show us your code. -igor On Tue, May 5, 2009 at 10:04 AM, Marc Hauptmann wrote: > Hello, > > I want to use FormComponentPanels in forms to deal with more complex > model-objects. I think it should be possible to chain the Model of every > FormComponentPanel to the Model of the Form. So every For

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread FlyingMustang
t null. Perhaps I did not use the Models correctly ...? -- View this message in context: http://www.nabble.com/Example-for-FormComponentPanel-best-practice-for-reusable-form-components-tp23391811p23393211.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Igor Vaynberg
ue); >                cityField.add(StringValidator.lengthBetween(0, 50)); > >                this.add(streetField); >                this.add(postcodeField); >                this.add(cityField); >        } > } > > After submitting the whole form (with an AjaxButton) the A

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread John Krasnay
> this.add(streetField); > this.add(postcodeField); > this.add(cityField); > } > } > > After submitting the whole form (with an AjaxButton) the Address-Property

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread FlyingMustang
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) -- View this message in context: http://www.nabble.com/Example-for-FormComponentPanel-best-practice-for-reusable-form-components-tp23391811p23395642.html Sent from the Wicket - User mailing list archive at N

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Igor Vaynberg
.onFormSubmitted(Form.java:876) > -- > View this message in context: > http://www.nabble.com/Example-for-FormComponentPanel-best-practice-for-reusable-form-components-tp23391811p23395642.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ---