Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread Igor Vaynberg
i dont think its that new, but maybe changed since youve written your wiki. -igor On Thu, Aug 6, 2009 at 8:24 AM, John Krasnay wrote: > Oh, is that new? Perhaps my example on the wiki is indeed fubar. > > jk > > On Thu, Aug 06, 2009 at 08:14:51AM -0700, Igor Vaynberg wrote: >> no, when a form's i

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread John Krasnay
Oh, is that new? Perhaps my example on the wiki is indeed fubar. jk On Thu, Aug 06, 2009 at 08:14:51AM -0700, Igor Vaynberg wrote: > no, when a form's isenabled() returns false then all of its > descendants are also disabled. when a formcomponent is disabled it > adds disabled="disabled" attribut

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread Igor Vaynberg
no, when a form's isenabled() returns false then all of its descendants are also disabled. when a formcomponent is disabled it adds disabled="disabled" attribute, so you wont be able to use it in the browser. -igor On Thu, Aug 6, 2009 at 7:32 AM, John Krasnay wrote: > On Thu, Aug 06, 2009 at 07:0

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread John Krasnay
On Thu, Aug 06, 2009 at 07:09:20AM -0700, nytrus wrote: > > John Krasnay wrote: > > > > The isEnabled method only controls form processing on the server. If you > > can't even type characters in your text field you have something else > > going on at the browser level. > > > > Well usually in a

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread nytrus
John Krasnay wrote: > > The isEnabled method only controls form processing on the server. If you > can't even type characters in your text field you have something else > going on at the browser level. > Well usually in a disabled box you cannot type, no matter what browser you are using. Any

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread John Krasnay
On Thu, Aug 06, 2009 at 02:40:13AM -0700, nytrus wrote: > > In the example, the inner form is enabled only when the submitter button is > that of itself (i.e. I'm submitting the inner form). In all other cases the > form is always disabled: Yes, that is the point. > I've tried the example and in

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread nytrus
In the example, the inner form is enabled only when the submitter button is that of itself (i.e. I'm submitting the inner form). In all other cases the form is always disabled: I've tried the example and in factthe form is totally disabled, I can't fill my textfield and I can't even submit the for

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread John Krasnay
Have a look at the bottom of this page: http://cwiki.apache.org/WICKET/conditional-validation.html The example shown disables the whole inner form when the outer form is submitted, meaning the inner form won't even be submitted. If you want the inner form to be submitted but just not required, re

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread Marieke Vandamme
Thanks for the suggestions, but I'm still not sure how to implement it. My innerform implements IFormVisitorParticipant. I override processChildren(), but how do I know which form is getting submitted??? Because when innerform is submitted, i want to return true, otherwise false. Thanks for any h

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-09 Thread Igor Vaynberg
try letting your inner form implement IFormVisitorParticipant. another way is to override isrequired() and check for the submitting component. -igor On Mon, Feb 9, 2009 at 3:17 AM, Marieke Vandamme wrote: > > Hello, > > I've been reading a lot about nested forms and what should happen with the

Nested forms : don't process inner form when outer form is submitted

2009-02-09 Thread Marieke Vandamme
Hello, I've been reading a lot about nested forms and what should happen with the inner forms when the outer form gets submitted. But I didn't found out how you can implement what i'm trying: I have inner form with some RequiredTextFields on it. These are required when the inner form is process