Hi Malcolm,

> That could be an enhancement, but the issue I have is that there are
> so many ways you could render a Menu: drop down list, accordion style,
> I don't think the control can deal with all the permutations. This is
> why I think a Velocity macros are good for this stuff.

I absolutely agree, the control cannot and should not try to deal with
all the possibilities.

But I was referring to the default rendering of Menu (i.e. toString())
which renders itself as a simple anchor link. When you are happy with
that default, I don't think it would be out of scope to add class="selected"
on the selected item. When you are rendering menus in a different way,
you are not using the toString() method of Menu anyway, so you can still
use whichever representation that suits you.

What do you think?

Thanks,
Freddy


Reply via email to