Thanks all for the replies, ctually this onSelected method works only with submit component. finally i have finished my work using a hidden field. Still couldn't find a tapestry solution for this matter.
nille hammer 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] > > > -- View this message in context: http://www.nabble.com/how-to-capture-the-submit-event-which-occured-from-a-input-type%3Dimage-tp17511184p17529120.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]