You can look at how that is done in loop and grid components where you can have multiple links bound to the same event handler, normally with a context and do the same in your page/component.
2009/4/20 Andy Pahne <andy.pa...@gmail.com> > > Yes, that would work. > > I'd prefer if ActionLink would take a listener parameter, just like with > T4. > > Andy > > > > > > > Ulrich Stärk schrieb: > > Right now I don't think that there is another solution then the one you >> already suggested. It would be great however, if @OnEvent's component >> paramter accepted an array of strings. >> >> Uli >> >> Am 20.04.2009 14:05 schrieb Andy Pahne: >> >>> >>> >>> I have the requirement to add a button a second time in the page. This >>> button is an ActionLink. >>> >>> In my page class I have the listener: >>> >>> >>> Object onActionFromButton(){ >>> ... >>> } >>> >>> >>> How can I dupliucate the button in the template? I cannot simply copy and >>> poaste it, because t:id has to be unique. I certainly don't want to add sth >>> like the following to my class files: >>> >>> >>> >>> Object onActionFromButtonClone(){ >>> return onActionFromButton(); >>> } >>> >>> >>> I hope that there is an easy and clean solution available. I guess that >>> the requirement is not too uncommon. >>> >>> >>> Thanks, >>> Andy >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >