You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by RajaSekhar KS <ks...@gmail.com> on 2005/03/21 11:14:40 UTC
Am i doing right for "Form submit"
Hi,
I am having a form and inside the form i am having submit buttons
like "New", "Edit", "copy"...etc..
I am writing SEPERATE listeners for each "New", "Edit", "copy". now in
class file i am defining the methods.
I think i am defining more listeners...
Am i doing the right thing for form?
I want to know can i use one listener for "Form" and can i find which
button is clicked as we do in jsp.....??? ie...the button clicked is
....New/Edit/Copy
Is this the best way or defining separate listeners is a good way...?
Ur suggestion is more appriciated....
Regards,
RajaSekhar K S
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Am i doing right for "Form submit"
Posted by RajaSekhar KS <ks...@gmail.com>.
Hey thanks for the solutions .....i got a detailed explanation from
"creatingEShop" ....here he specified 3ways to implement
1.separate form for each submit buttons.
2.separate listener for each submit button.
3.only one listener for a form and accessing which button is clicked
so i am changing from 2nd type to 3rd type of implementation......
Thanks Saqib Rasul & t.n.a.
RajaSekhar
On Mon, 21 Mar 2005 12:15:00 +0100, t.n.a. <tn...@sharanet.org> wrote:
> RajaSekhar KS wrote:
>
> >Hi,
> >I am having a form and inside the form i am having submit buttons
> >like "New", "Edit", "copy"...etc..
> >
> >I am writing SEPERATE listeners for each "New", "Edit", "copy". now in
> >class file i am defining the methods.
> >
> >I think i am defining more listeners...
> >
> >Am i doing the right thing for form?
> >
> >I want to know can i use one listener for "Form" and can i find which
> >button is clicked as we do in jsp.....??? ie...the button clicked is
> >....New/Edit/Copy
> >
> >Is this the best way or defining separate listeners is a good way...?
> >
> >Ur suggestion is more appriciated....
> >
> >
> It's covered in the "CreatingEShop" tutorial at
> http://www2.cpttm.org.mo/cyberlab/softdev/tapestry/
> You might want to search the tutorial for the "tag" word.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Am i doing right for "Form submit"
Posted by "t.n.a." <tn...@sharanet.org>.
RajaSekhar KS wrote:
>Hi,
>I am having a form and inside the form i am having submit buttons
>like "New", "Edit", "copy"...etc..
>
>I am writing SEPERATE listeners for each "New", "Edit", "copy". now in
>class file i am defining the methods.
>
>I think i am defining more listeners...
>
>Am i doing the right thing for form?
>
>I want to know can i use one listener for "Form" and can i find which
>button is clicked as we do in jsp.....??? ie...the button clicked is
>....New/Edit/Copy
>
>Is this the best way or defining separate listeners is a good way...?
>
>Ur suggestion is more appriciated....
>
>
It's covered in the "CreatingEShop" tutorial at
http://www2.cpttm.org.mo/cyberlab/softdev/tapestry/
You might want to search the tutorial for the "tag" word.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org