org.wicketstuff.annotation.mount
Annotation Type MountPath


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface MountPath

Specify the primary and alternate paths to mount a Page. If this annotation is used by itself, the default encoding strategy is used (see AnnotatedMountScanner.getDefaultStrategy(java.lang.String, java.lang.Class)).

If you do not wish to use the default strategy, you also need to annotate the page with an annotation that defines which strategy to use. Those annotations are annotated with MountDefinition.

A good example is MountMixedParam.

The primary mount path is listed ahead of alternate paths in any list returned by AnnotatedMountScanner. This is done because of the implementation of org.apache.wicket.protocol.http.request.WebRequestCodingStrategy#getMountEncoder(org.apache.wicket.IRequestTarget) getMountEncoder() returns the first mount that matches the given Page. Thus, when determining which path to mount a page on, it always picks the first one found.

Author:
Doug Donohoe

Required Element Summary
 String path
           
 
Optional Element Summary
 String[] alt
           
 

Element Detail

path

public abstract String path
Returns:
primary mount path

alt

public abstract String[] alt
Returns:
alternate mount paths
Default:
{}


Copyright © 2012. All Rights Reserved.