On Tue, Aug 19, 2008 at 09:15:55AM -0400, John Krasnay wrote:
> On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote:
> > Can't you just override isEnabled() on the inner form and return
> > true/false depending on whether the inner form should be processed?
> > 
> 
> Hrm, something like this I suppose?
> 
>   public boolean isEnabled() {
>     return findFormSubmittingButton().getForm() == this;
>   }
> 
> I'll give it a try. Thanks!
> 
> jk
> 

It should be like this...

    @Override
    public boolean isEnabled() {
        return getRootForm().findSubmittingButton().getForm() == this;
    }

...but it works fine. I've updated the wiki with an example.

Thanks again, Matej.

jk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to