Hi Pierre,

On 08/26/2010 11:23 AM, Dalluege, Pierre (extern) wrote:
> Hi Xwiki users,
>
> I am pretty sure, there is already a solution out there...
>
> There is a panel availiable for showing the spaces for navigation purposes. 
> Due to right management issues I have a few and I need to sort them 
> correctly. Is there anyone who sorted this (or other) lists within velocity?

If that panel uses named queries then you're facing this issue 
http://jira.xwiki.org/jira/browse/XWIKI-5394 . Try to update your 
{{queries.hbm.xml}} and see if the problem is fixed.

Alternatively you can edit the panel and use 
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/2.4/xwiki-core-2.4-javadoc.jar/!/com/xpn/xwiki/api/Util.html#sort%28java.util.List%29
 
to sort the list of spaces.

Hope this helps,
Marius

>
> Best regards, thank you very much,
>
> Pierre
>
> Pierre Dalluege
> Externer Dienstleister
> Product Management
> Business Products
> Products&  Innovation
>
> Deutsche Telekom AG
> T-Online-Allee 1
> D-64295 Darmstadt
> Tel     +49 6151 680 - 4054
> E-Mail [email protected]
> http://www.telekom.de
>
> Aufsichtsrat: Prof. Dr. Ulrich Lehner (Vorsitzender)
> Vorstand: René Obermann (Vorsitzender), Hamid Akhavan, Dr. Manfred Balz, 
> Reinhard Clemens, Niek Jan van Damme, Timotheus Höttges, Guido Kerkhoff, 
> Thomas Sattelberger
> Handelsregister: Amtsgericht Bonn HRB 6794, Sitz der Gesellschaft: Bonn
> WEEE-Reg.-Nr.: DE50478376
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail und der darin enthaltenen Informationen ist nicht 
> gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this email in error) please 
> notify the sender immediately and delete this e-mail. Any unauthorized 
> copying, disclosure or distribution of the material in this e-mail is 
> strictly forbidden.
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to