Hi,

I have a menu, with 5 to 10 links, each of which I'd like to be an
actionlink to trigger a zone update. 

I'd like to have just one event handler for the menu, something like:


public Object onActionFromMenu(int context) {
    
... get new results per the context...
 
   return resultsZone.getBody();
}


with my menu like:


<li>
  <t:actionlink t:id="menu" context="literal:1" zone="resultsZone">...
</li>
<li>
  <t:actionlink t:id="menu" context="literal:2" zone="resultsZone">...
</li>
...


However Tapestry complains, saying that t:id should be unique. If t:id
has to be unique, that means I have to have separate event handlers for
each menu item, which is a little verbose. 

Is there a way of having multiple actionlinks in a page, each triggering
the same event handler? This is also useful if I want to have the same
link more than once in the page.

Thanks

Richard.




 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to