If the link elements are wicket component then you could do:

  add(new SimpleAttributeModifier("id", "menu1"));
or
  setMarkupId("menu1");


Bilgin Ibryam



On Thu, Jun 24, 2010 at 10:43 PM, Chris Colman <[email protected]
> wrote:

> I am using a CSS stylesheet that requires each <a> tag link in a menu to
> specify a differently numbered id value:
>
> Eg.,
>
> The output needs to be something like this where each <a> tag has a
> sequentially numbered id: menu1, menu2, menu3 etc.,
>
> <div id="menu">
>  <ul>
>    <li><a id="menu1" href="#" title="Home">Home</a></li>
>    <li><a id="menu2" href="#" title="Info">Info</a></li>
>    <li><a id="menu3" href="#" title="About">About</a></li>
>  </ul>
> </div>
>
>
> Is it possible to get wicket to inject an id tag into the links markup?
> If so, how ?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to