You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tony Wu <e9...@gmail.com> on 2010/04/01 19:47:15 UTC

BookmarkablePageLink auto-generated "name" is no longer there

I've been using BookmarkablePageLink for my site navigation. A month or so
ago I remember each BookmarkablePageLink would autogenerate a
name="{wicket:id}" in the HTML, and I was using this to hook into functional
testing as the locator, etc.

For example:
.html
<a wicket:id="enrollNowLink" href="#">

.java
add(new BookmarkablePageLink("enrollNowLink", EnrollmentPage.class));

This USED to output:
<a *name="enrollNowLink"* href="enrollment/">

But now outputs:
<a href="enrollment/">

What would cause the auto generated name={wicket:id} to drop off? It seems
like it's random too, as some links still have the autogenerated name and
some don't. Any insights?

Thanks,
Tony