autoAdd components like AutoLink are removed from the component
hierachie at the end of the render cycle. Hence, they can not be found
during the second render. Which makes me wonder, how/why you get the
exception. But may be I misunderstand you comment.

> When this is done second time id will contain already handled id, e.g
> _autolink_1 and a new number is appended.

appended to _autolink_, not to _autolink_1, correct?

> 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

you mean "_autolink_1" + "1"?

> I think it would be more efficient to create the link components only once.

That is true, but not possible with autoAdd components. Unfortunately
you have wait until we separated the build and render phase. But that
is scheduled for Wicket 2 because of the large amount of changes
required.

Not sure I already understand why you get "The markup file must not
contain the same wicket:id at the same level: _autolink_11"

Juergen


-------------------------------------------------------
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_idv28&alloc_id845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to