Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Fabio Fioretti
Thanks everybody for the precious help, a custom lazy AjaxFormSubmitBehavior was the way to go. Fabio Fioretti - WindoM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Paolo Di Tommaso
I would propose the following patch to AjaxFormSubmitBehavior. Basically adding a form-less constructor so that when the form obejct is not specified it will discovered using the findParent(Form.class) method. Core developers what do you think about it ? Paolo abstract public class

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Igor Vaynberg
jira is a better place for this... -igor On Jan 7, 2008 1:32 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: I would propose the following patch to AjaxFormSubmitBehavior. Basically adding a form-less constructor so that when the form obejct is not specified it will discovered using the

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Timo Rantalaiho
On Mon, 07 Jan 2008, Paolo Di Tommaso wrote: I would propose the following patch to AjaxFormSubmitBehavior. Basically adding a form-less constructor so that when the form obejct is not specified it will discovered using the findParent(Form.class) method. Could you get the same event by

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Paolo Di Tommaso
Emh .. not really because that source IS the patch ;) On Jan 8, 2008 4:52 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 07 Jan 2008, Paolo Di Tommaso wrote: I would propose the following patch to AjaxFormSubmitBehavior. Basically adding a form-less constructor so that when the

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-05 Thread Paolo Di Tommaso
Let me guess .. you need the form to create a AjaxSubmitLink instance. But the #findParent(Form.class) will return null until the component hierarchy is constructed, being so you cannot invoke it at component construction-time. A possible workaround is to postpone the findParent(Form.class)

Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-05 Thread Eelco Hillenius
Yeah, the form is initialized in the Wizard's init method, not right away during construction. You could try patching the wizard and creating the form in the constructor instead and see if that solves your problem and propose a patch if it does. I wouldn't mind having another wizard example in

[Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-04 Thread Fabio Fioretti
First of all, many compliments for the great Wicket 1.3 release: we're looking forward to port our application to the new cool version! How can I get the Wizard's form from inside a WizardStep? I need it to trigger an AjaxSubmitLink which should update a part of my model while remaining inside