I believe this is intended and I personally like it. Frameworks tend to hijack the DOM id too often. I ran into the same problem though and found the following Mixin:

public class DomIdPrinter {
@Parameter(value = "prop:componentResources.id", defaultPrefix = "literal")
   private String clientId;
@SuppressWarnings("unused")
   @BeforeRenderBody
   private void begin(MarkupWriter writer) {
       Element el = writer.getElement();
       if(el.getAttribute("id") == null) {
           el.attribute("id", clientId);
       }
   }

}

which you can then mix into your AcionLink like:

@Mixins("DomIdPrinter")
@Component(id = "yourLinkId")
private ActionLink yourLinkId;

Cheers,
Joost

Glenn Sudduth wrote:
I upgraded my project to T5 v5.0.13 from .11 this morning. This was a
very smooth upgrade except for one issue which has caused some breakage
in my integration tests.
This (slightly simplified) code in .11 ....

<t:grid
   source="foos"
   row="foo"
   model="model">
   <t:parameter name="editFooCell">
      <t:actionlink t:id="editFoo" context="foo.fooId"> Edit </t:actionlink>
   </t:parameter>
</t:grid>

... generates HTML anchor which includes an id ...

<a id="editFoo" href="/MyApp/managefoos.editfoo/1"> Edit </a>
<a id="editFoo_0" href="/MyApp/managefoos.editfoo/2"> Edit </a>
<a id="editFoo_1" href="/MyApp/managefoos.editfoo/3"> Edit </a>

However, .13 doesn't seem to ...

<a href="managefoos.editfoo/1">Edit</a>
<a href="managefoos.editfoo/2">Edit</a>

My tests were referencing these elements by id and now can't find them. How can 
I get them back?

Thanks,
--
Glenn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to