Just thinking out loud... not sure why you need a mixin here in the first place? All of tapestry's links support informal parameters. So, eg:
<a t:id="mylink" t:type="actionlink" hreflang="fr">Link</a> Should should just work? Robert On May 4, 2012, at 5/412:01 PM , Julien Martin wrote: > Hello, > > I am trying to write/code a mixin that will simply add the hreflang > attribute to tapestry action links. > > Here is what I tried (it does not work unfortunately...) > > public class HrefLangMixin { > > @Parameter(name = "lang", required = true, defaultPrefix = > BindingConstants.LITERAL) > private String lang; > > // The code > @AfterRender > public void afterRender(MarkupWriter writer) { > Element actionLinkElem = writer.getElement(); > System.out.println(actionLinkElem.getChildMarkup()); > actionLinkElem.attribute("hreflang", lang); > > } > } > > <t:actionlink page="ContactUs" t:mixins="HrefLangMixin" t:lang="literal:fr" > context="literal:fr">fr</t:actionlink> > > Can anyone please advise? > > Regards, > > Julien. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org