Re: The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread 小司

Thanks to Nick Westgate and Korben Zhang.I know the mistake where I make.
I confused  the Action Event and Component Event.

Thank you very much.


2007/7/18, Nick Westgate <[EMAIL PROTECTED]>:

Your "Summ" component is a Submit, which does not send an "Action" event.
This is not well documented - perhaps only in the reference for Submit:
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html

You can also check the source for Submit to see the event is "Selected".
So your handler for the event from Summ should be:

void OnSelectedFromSumm() { ...

Cheers,
Nick.



С˾ wrote:
> hi:
>
> The method onActionFrom[componentId] doesnot work in my application .
> I use OnEvent annotation does not work too.When i click the submit
> button ,The method onActionFromSumm is not invoked. but the method
> onSuccess(),setupRender(),onActivate(),pageLoaded() all work well. I
> can not find the mistake where I make. anybody can help me??



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





--
得与失都是生活


Re: The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread Nick Westgate

Your "Summ" component is a Submit, which does not send an "Action" event.
This is not well documented - perhaps only in the reference for Submit:
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html

You can also check the source for Submit to see the event is "Selected".
So your handler for the event from Summ should be:

void OnSelectedFromSumm() { ...

Cheers,
Nick.


С˾ wrote:

hi:

The method onActionFrom[componentId] doesnot work in my application .
I use OnEvent annotation does not work too.When i click the submit
button ,The method onActionFromSumm is not invoked. but the method
onSuccess(),setupRender(),onActivate(),pageLoaded() all work well. I
can not find the mistake where I make. anybody can help me??



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



Re: The method onActionFrom[componentId] doesnot work in my application .

2007-07-17 Thread Korben Zhang

You can use form's action.

As you define, you can use:

void onActionFromXxxForm(){

}


void onSuccess() should work, You can choose one.


On 7/18/07, 小司 <[EMAIL PROTECTED]> wrote:


hi:

The method onActionFrom[componentId] doesnot work in my application .
I use OnEvent annotation does not work too.When i click the submit
button ,The method onActionFromSumm is not invoked. but the method
onSuccess(),setupRender(),onActivate(),pageLoaded() all work well. I
can not find the mistake where I make. anybody can help me??

the source code is :
.html
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>



--
Korben Zhang http://korben-zhang.blogspot.com
Backup Blog: http://korbenzh.spaces.live.com