This is the exact reason for the EventLink component.

On Tue, Nov 27, 2012 at 8:46 AM, sommeralex <alexander.som...@gmail.com>wrote:

> Hi!
>
> I have in some of my .tml pages several IF statements, which should show
> some - depending on the if clause - actionlinks.
>
> if A
> actionlink 1
> actionlink 2
> if B
> actionlink 1
>
> now, tapestry throws an exception, because i was giving the actionlink 1
> the
> id 1 which then was occuring 2 times in my tml code. I could fix it with
> giving it another id (1a, 1b) but had also then to add onActionFromId1 and
> onActionFromId2 -> which BOTH are doing the same.
>
> Is there some better way to reuse the same actionlink on my page within IF
> statements or is this more a HTML issue / which, at the end, says in
> generel
> that no ID should be reused (ID / as a unique identifier)
>
> thx
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/tml-if-statements-unique-id-components-tp5718312.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
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to