Hi,

In Wicket 1.5.3, if I have the following mapping:
mountPage("/admin/user/", AdminUserListPage.class);
mountPage("/admin/user/${id}", AdminUserPage.class);

When I click on a link to AdminUserListPage.class, it's the
AdminUserPage which is called (and doesn't work because there isn't
any id parameter).

While I can find workaround to make it work, I think the mapping of
/admin/user/ should have a higher compatibility score. For example, we
could have a compatibility score of mountSegments.length * 10 + (url
is an exact match ? 1 : 0).

In fact I'm not even sure AdminUserPage should match as ${id} is
supposed to be mandatory.

Any opinion?

Thanks for your feedback.

-- 
Guillaume

Reply via email to