You should use an eventlink instead.
In that case you can provide an explicit event name that all the links
can map to, while not having overlapping component Ids.
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/EventLink.html
On 05/25/2011 05:58 PM, degressor wrote:
Hi, I would like to have many actionlinks with different contextes, like:
<t:actionlink t:action="linkAnfrage_list"
context="literal:pdf">pdf</t:actionlink>
<t:actionlink t:action="linkAnfrage_list"
context="literal:csv">csv</t:actionlink>
<t:actionlink t:action="linkAnfrage_list"
context="literal:html">xml</t:actionlink>
<t:actionlink t:action="linkAnfrage_list"
context="literal:xml">xml</t:actionlink>
I get the error:
Exception assembling root component of page Report: Exception assembling
embedded component 'linkAnfrage_list' (of type
org.apache.tapestry5.corelib.components.ActionLink, within Report):
Component Report already contains a child component with id
'linkAnfrage_list'. Embedded component ids must be unique (excluding case,
which is ignored).
The links should lead to the same action, but with differen parameters. The
problem is, I generate this links per some generator and put them to
tapestry. So it is not easy to use t:loop here.
Is there any way to get many links to the same action, with different
parametes in tapestry?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Actionlink-action-tp4426703p4426703.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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org