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
AjaxFormSubmitBehavior behavior =
new AjaxFormSubmitBehavior(null, "onchange") {
@Override
protected Form getForm() {
return findParent(Form.class);
}
...
}
as stated in the source code:
> /* form component cannot be null */
> if( form == null ) {
> throw new IllegalStateException("Unable to discover parent
> form object. Try to override getForm() method with different deferred
> strategy");
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]