Bugs item #1361532, was opened at 2005-11-19 18:43 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1361532&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Arto Arffman (artoarffman) Assigned to: Nobody/Anonymous (nobody) Summary: <wicket:link> fails when more than 10 links Initial Comment: When the template is parsed each link-tag inside <wicket:link> is assigned id named "_autolink_". Later this tag is handled by AutoLinkResolver. AutoLinkResolver: private final Component resolveAutomaticLink(final MarkupContainer container, final String id, final ComponentTag tag) ... final String autoId = id + Integer.toString (page.getAutoIndex()); // By setting the component name, the tag becomes a Wicket component // tag, which must have a associated Component. tag.setId(autoId); ... When this is done second time id will contain already handled id, e.g _autolink_1 and a new number is appended. And when there are more than 9 links inside one <wicket:link> there will be an error like: The markup file must not contain the same wicket:id at the same level: _autolink_11 If links are meant to be recreated each time, then AutoLinkResolver should make sure that the number will not be appended each time and old components should be removed. But the right solution (imo) is that link components would be created only once. Error can be repeated with navomatic example. Diff file is attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1361532&group_id=119783 ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
