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 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", 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.

alternatively

@OnEvent(component="searchForm1", value="success")
public void search1()
{
}

2007/12/8, Angelo Chen <[EMAIL PROTECTED]>:
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() {
        System.out.println("submit2");
        return null;
 }

<t:form t:id="searchForm1" t:clientValidation="false">
    <input t:type="submit" name="Submit1" t:id="Submit1" value="Search
Now"
/><br />
 </t:form>

<t:form t:id="searchForm2" t:clientValidation="false">
    <input t:type="submit" name="Submit2" t:id="Submit2" value="Search
Now"
/><br />
</t:form>
--
View this message in context:
http://www.nabble.com/T5%3A-multiple-forms-tf4967253.html#a14229085
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
/ted

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to