I just tried t5commons component's Button component, it works. I think the Button in t5commons should be the same as CK lib because CK originates from T5commons.
<t:commons.button type="button" t:id="button" value="search" event="clicked" /> void onClicked() { System.out.println("I can get it."); } I don't use annotation here, but they should be the same. DH ----- Original Message ----- From: "b...@umd" To: <users@tapestry.apache.org> Sent: Friday, June 26, 2009 12:24 AM Subject: Re: Tapestry 5 and Event component. > > Here is the component reference : > http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/Button.html > > Indeed the parameter "value" is useless. So I remove it. But it does not > work. > > > > DH-14 wrote: >> >> I don't have source of ck lib. >> What about removing the parameter 'value' of the method? >> >> BTW what does the parameter mean? >> >> DH >> >> ----- Original Message ----- >> From: "b...@umd" >> To: <users@tapestry.apache.org> >> Sent: Thursday, June 25, 2009 11:11 PM >> Subject: Re: Tapestry 5 and Event component. >> >> >>> >>> Actually I did. I first tried to use it with the OnEvent mixins, but the >>> problem was the same. Then by checking on the ck component reference, I >>> noticed that the component <t:button> has already a parameter named >>> "event". >>> That's why I removed the parameter "mixins". >>> >>> I have just tried again with Try <t:button type="button" t:id="button" >>> value="search" mixins="ck/OnEvent" event="clicked" />, and I got the same >>> exception. >>> >>> >>> >>> Thiago H. de Paula Figueiredo wrote: >>>> >>>> On Wed, Jun 24, 2009 at 5:26 PM, b...@umd<bben...@umd.edu> wrote: >>>>> gentoo.tml : >>>>> <t:button type="button" t:id="button" value="search" event="clicked" /> >>>> >>>> You haven't used the ck/OnEvent mixin in the button, so the event is not >>>> fired. >>>> Try <t:button type="button" t:id="button" value="search" >>>> mixins="ck/OnEvent" event="clicked" /> >>>> >>>> -- >>>> Thiago >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Tapestry-5-and-Event-component.-tp24192270p24205124.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >> > > -- > View this message in context: > http://www.nabble.com/Tapestry-5-and-Event-component.-tp24192270p24206567.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >