How sort the collection of MenuComponent returned by getTopMenus() of MenuRepository?
Damien GUERIN <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Organization | Atos Origin - Systems Integration |
| Message-ID | <[email protected]> |
Hi,
in my menu-config.xml file, i've got some menus but these menus aren't
known. So in my jsp, i use the following code:
<menu-el:useMenuDisplayer name="CoolMenu">
<c:forEach var="menu" items="${repository.topMenus}">
<menu-el:displayMenu name="${menu.name}"/>
</c:forEach>
</menu-el:useMenuDisplayer>
However, i noticed, this collection aren't sorted... How sort it by name
(for example).
I hnow it's possible by java code in my jsp but this solution is rather
bad for me. I tried to find a taglib to sort collection but for the
moment i didn't find a taglib with an good license (for me). I want
avoid GPL license.
Any idea?
Thanks.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click