You have t:id="link" on two different components. That is not allowed.

On Fri, Aug 7, 2009 at 4:06 AM, Sebastian
Hennebrueder<use...@laliluna.de> wrote:
> The following snippet in a page template leads to the exception
>
> # java.lang.RuntimeException
> Exception assembling root component of page Navigation: Exception assembling
> embedded component 'link' (of type
> org.apache.tapestry5.corelib.components.ActionLink, within Navigation):
> Component Navigation already contains a child component with id 'link'.
> Embedded component ids must be unique (excluding case, which is ignored).
>
> But actually there won't be the same id rendered. Is it a bug?
>
> <t:loop source="1..10" value="current">
>   <t:if test="luckyNumber">
>       <t:actionlink t:id="link" context="current">${current}</t:actionlink>
>       is my lucky number -
>       <p:else>
>           <t:actionlink t:id="link"
> context="current">${current}</t:actionlink>
>           -
>       </p:else>
>   </t:if>
>
>
> </t:loop>
>
> --
> Best Regards / Viele Grüße
>
> Sebastian Hennebrueder
> -----
> Software Developer and Trainer for Hibernate / Java Persistence
> http://www.laliluna.de
>
>
>
>
> ---------------------------------------------------------------------
> 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
Director of Open Source Technology at Formos

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

Reply via email to