Yes, rename one to link1 and the other to link2
On Fri, Aug 7, 2009 at 8:30 AM, Howard Lewis Ship<hls...@gmail.com> wrote: > 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 > > -- _________________________________ Joshua S. Martin CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney client or other legal privileges, and or proprietary non public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org