I solved it now by overriding getCompatibilityScore. Thanks for your hints.
britta Am 26.02.2013 10:25, schrieb Martin Grigorov: > Hi, > > This #sort() sorts by the compatibility score the mapper returns for this > Request. > If two or more mappers return the same score then the order in the list > depends on the order of the mounting in Application#init(), i.e. the order > of insertion in the non-sorted list. > > > On Tue, Feb 26, 2013 at 11:16 AM, Dr. Britta Landgraf < > b.landg...@fz-juelich.de> wrote: > >> Hi, >> >> in public IRequestHandler mapRequest(final Request request) >> the mappers will be sort by: >> Collections.sort(list); >> >> So there is no chance to influence the order of the mappers :( >> >> regards britta >> >> Am 25.02.2013 11:18, schrieb Martin Grigorov: >>> Hi, >>> >>> I've just tried it in a quickstart and my conclusion seems to be valid. >>> I am able to reproduce the problem with the initial order and to >> workaround >>> it with the reverse order. >>> >>> To debug what happens in your case you can put a breakpoint >>> in org.apache.wicket.request.mapper.CompoundRequestMapper#mapRequest(). >>> Check what is the order of 'list' after the sorting. >>> >>> >>> On Mon, Feb 25, 2013 at 12:00 PM, Dr. Britta Landgraf < >>> b.landg...@fz-juelich.de> wrote: >> >> >> >> ------------------------------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------------------------ >> Forschungszentrum Juelich GmbH >> 52425 Juelich >> Sitz der Gesellschaft: Juelich >> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 >> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher >> Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), >> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, >> Prof. Dr. Sebastian M. Schmidt >> >> ------------------------------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------------------------ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > -- Dr. Britta Landgraf phone: +49 2461 61 5647 IEK-4 fax: +49 2461 61 5452 email: b.landg...@fz-juelich.de WWW: www.fz-juelich.de/iek/iek-4/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org