Re: Nested forms onSubmit() question ...

2010-11-05 Thread armandoxxx

Just a feature request: 

- beforeSubmit() method on Form would be usefull
- make it configurable order of onSubmit() method calls
(SUBMIT_NESTED_FIRST, SUBMIT_NESTED_LAST)


Regards

Armando

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3028422.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Nested forms onSubmit() question ...

2010-11-04 Thread armandoxxx

Hey

well ... that's also the way to do it .. thanks for idea ... 

regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3027217.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Nested forms onSubmit() question ...

2010-11-04 Thread Andrea Del Bene

Hi Armando,

have you tried calling method visitChildren(Form.class, visitor) in the 
main onSubmit? Maybe this could help you to gather  children's data 
before submit root form.


Bye.



Hey wicket ppl ...

Is there any beforeSubmit() event like method available on Form.

I need it cause I have nested forms and only one form is allowed to store
data in the database, so if I had a method beforeSubmit() all my nested
forms could send data to the root form and root form would submit it to the
database. I also though of it because I was looking at sources of Form class
and nested forms onSubmit() method gets called after main form onSubmit() is
executed, so In my case data is first stored into database and after that
nested forms provide data to the main form to be stored in database.

So either I implement procesing on my own (which I really wouldn't like to
do, cause it's allready there (validation, processing, etc...)) or is there
a beforeSubmit() kinda way available and I can't find it anywhere ...

Any help appreciated.

Regards

Armando

   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Nested forms onSubmit() question ...

2010-11-04 Thread armandoxxx

Hey wicket ppl ...  

Is there any beforeSubmit() event like method available on Form. 

I need it cause I have nested forms and only one form is allowed to store
data in the database, so if I had a method beforeSubmit() all my nested
forms could send data to the root form and root form would submit it to the
database. I also though of it because I was looking at sources of Form class
and nested forms onSubmit() method gets called after main form onSubmit() is
executed, so In my case data is first stored into database and after that
nested forms provide data to the main form to be stored in database.

So either I implement procesing on my own (which I really wouldn't like to
do, cause it's allready there (validation, processing, etc...)) or is there
a beforeSubmit() kinda way available and I can't find it anywhere ... 

Any help appreciated.

Regards

Armando

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3026993.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: nested forms onSubmit

2010-01-31 Thread Martijn Dashorst
VisitChildren(Form.class, )

Martijn

On Friday, January 29, 2010, Dave Kallstrom  wrote:
> Hi,
> Is there anyway to notify nested forms that they are being submitted?  The
> onSubmit method of nested forms do not get called when the parent form is
> submitted.
> I tried implementing IFormSubmitListener but that didn't seem to help.
>
> --
> Dave Kallstrom
>

-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: nested forms onSubmit

2010-01-30 Thread Dave Kallstrom
Nested forms in wicket component hierarachy. Not in html. You can nest forms
in wicket which are replaced when the page is rendered and swapped out for
divs.
http://cwiki.apache.org/WICKET/nested-forms.html

On Fri, Jan 29, 2010 at 5:38 PM, Riyad Kalla  wrote:

> Are nested forms a valid HTML construct? I'm running through the use-case
> here in my head and it doesn't click -- form submission is 1:1 with an HTTP
> POST, what do multiple embedded forms even mean in this regard?
>
> I don't think this is kosher...
>
> On Fri, Jan 29, 2010 at 2:04 PM, Dave Kallstrom  >wrote:
>
> > Hi,
> > Is there anyway to notify nested forms that they are being submitted?
>  The
> > onSubmit method of nested forms do not get called when the parent form is
> > submitted.
> > I tried implementing IFormSubmitListener but that didn't seem to help.
> >
> > --
> > Dave Kallstrom
> >
>



-- 
Dave Kallstrom


Re: nested forms onSubmit

2010-01-29 Thread Riyad Kalla
Are nested forms a valid HTML construct? I'm running through the use-case
here in my head and it doesn't click -- form submission is 1:1 with an HTTP
POST, what do multiple embedded forms even mean in this regard?

I don't think this is kosher...

On Fri, Jan 29, 2010 at 2:04 PM, Dave Kallstrom wrote:

> Hi,
> Is there anyway to notify nested forms that they are being submitted?  The
> onSubmit method of nested forms do not get called when the parent form is
> submitted.
> I tried implementing IFormSubmitListener but that didn't seem to help.
>
> --
> Dave Kallstrom
>


nested forms onSubmit

2010-01-29 Thread Dave Kallstrom
Hi,
Is there anyway to notify nested forms that they are being submitted?  The
onSubmit method of nested forms do not get called when the parent form is
submitted.
I tried implementing IFormSubmitListener but that didn't seem to help.

-- 
Dave Kallstrom