Base extracted from fiftyfive.wicket.mapper.PatternMountedMapper An improved version of Wicket's standard {@link MountedMapper} that additionally allowsregular expressions inside placeholders. This feature is inspired by the pattern matching behavior of the JAX-RS {@code @Path} annotation.
mount(new PatternMountedMapper("people/${personId:\\d+}", PersonPage.class));
This will map URLs like {@code people/12345} but yield a 404 not found for something like{@code people/abc} since {@code abc} doesn't match the {@code \d+} regular expression.
@author 55minutes.com
@author cgatay