Re: T5: multiple forms

2007-12-08 Thread Filip S. Adamsen
It's all in the Component Reference - and Form emits quite a few events: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsform -Filip Ted Steen skrev: value="validate". but I cant find any documentation on it? The component event me

Re: T5: multiple forms

2007-12-08 Thread Ted Steen
value="validate". but I cant find any documentation on it? The component event mechanism seems poorly documented. This is all I find on the site, http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html 2007/12/8, Penyihir Kecil <[EMAIL PROTECTED]>: > @OnEvent(component="searchForm 1

Re: T5: multiple forms

2007-12-08 Thread Penyihir Kecil
@OnEvent(component="searchForm 1", value="success") ---> what else value can be filled beside "success" ?? On Dec 8, 2007 10:51 PM, Ted Steen <[EMAIL PROTECTED]> wrote: > It should be onSuccessFromSearchForm1() and onSuccessFromSearchForm2() > as it is the form, not the button that succeeds. > >

Re: T5: multiple forms

2007-12-08 Thread Ted Steen
It should be onSuccessFromSearchForm1() and onSuccessFromSearchForm2() as it is the form, not the button that succeeds. alternatively @OnEvent(component="searchForm1", value="success") public void search1() { } 2007/12/8, Angelo Chen <[EMAIL PROTECTED]>: > > Hi, > > I have two forms in a page, a

T5: multiple forms

2007-12-08 Thread Angelo Chen
Hi, I have two forms in a page, and I need to determine which form trigger the onSuccess, tried following code, but does not work, any idea? Thanks, A.C. String onSuccessFromSubmit2() { System.out.println("submit1"); return null; } String onSuccessFromSubmit2() { Syste

Re: T5: Multiple forms in a page

2007-10-20 Thread Nick Westgate
Use "From" to specify which component you want events from. http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html Cheers, Nick. Angelo Chen wrote: Hi, I have two forms so far in one page, so there are two submit buttons. now how to detect which form fires those events like onVal

T5: Multiple forms in a page

2007-10-20 Thread Angelo Chen
Hi, I have two forms so far in one page, so there are two submit buttons. now how to detect which form fires those events like onValidate/success/submit? Thanks, A.C. -- View this message in context: http://www.nabble.com/T5%3A-Multiple-forms-in-a-page-tf4658089.html#a13310243 Sent from the Tap