it works only wih submit component,
the submit component is pretty basic,
but you might easily create your own submit comp
by copy/paste the original
and add-in extra options you need



On Wed, May 28, 2008 at 2:45 PM, nille hammer
<[EMAIL PROTECTED]> wrote:

>
> Hi Lakshitha,
>
> the event handler Methods for Submit-Buttons end with "ed". See this for an
> example (
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Submit.html)
> rename your methods to:
> onSelectedFromUpload()
> onSelectedFromNext()
>
> That should fix it.
>
> Cheers nillehammer
>
> ----- original Nachricht --------
>
> Betreff: how to capture the submit event which occured from a input
> type=image
> Gesendet: Mi, 28. Mai 2008
> Von: LakshithaS<[EMAIL PROTECTED]>
>
> >
> > HI.. all,
> > I have a situation like this, i have a single form and two image buttons
> > (actually i am using <input type="image" instead of  <input
> type="submit").
> > The problem is identify the which image button has done the form
> > submission.
> > Coz i am doing two tasks from these two image buttons.  one is for data
> > saving and one is for image uploading. Is there a way to find which
> button
> > has done the form submission?
> >
> > i tried like this
> > component Id's are upload and next respectively
> >
> >       public void onSelectFromUpload(){
> >               System.out.println("onSelectFromUpload >>>");
> >               nextPage = null;
> >       }
> >
> >       public void onSelectFromNext(){
> >               System.out.println("onSelectFromNext >>>");
> >               nextPage = "RegistrationStepTwo";
> >       }
> >
> > any idea ? thanks in millions..
> > --
> > View this message in context:
> >
> http://www.nabble.com/how-to-capture-the-submit-event-which-occured-from-a-i
> > nput-type%3Dimage-tp17511184p17511184.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> --- original Nachricht Ende ----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to