Re: dupluication of ActionLinks in pages

2009-04-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Apr 2009 09:05:32 -0300, Andy Pahne escreveu: I have the requirement to add a button a second time in the page. This button is an ActionLink. Why don't you use an EventLink? Just give the two copies the same event name and then use Object onEventName() {...}. -- Thiago H. de

Re: dupluication of ActionLinks in pages

2009-04-20 Thread Otho
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 > > Yes, that would work. > > I'd prefer if ActionLink would take a listener parame

Re: dupluication of ActionLinks in pages

2009-04-20 Thread Andy Pahne
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

Re: dupluication of ActionLinks in pages

2009-04-20 Thread Ulrich Stärk
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.

dupluication of ActionLinks in pages

2009-04-20 Thread 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