org.jboss.seam.faces.rewrite
Annotation Type UrlMapping


@Retention(value=RUNTIME)
@Target(value={FIELD,TYPE})
@Documented
public @interface UrlMapping

Annotation for mapping URLs to JSF Views.

Author:
Brian Leathem

Required Element Summary
 String pattern
           Specify the pattern for which this URL will be matched.
 
Optional Element Summary
 boolean onPostback
           Optional boolean (default true), if set to false, path parameters will not be injected on form postbacks.
 boolean outbound
          Enable or disable outbound URL rewriting for this mapping (default: 'true' / enabled.) If enabled, any links matching the viewId specified will be rewritten (if possible) using parameters mapping to named path parameters specified in the pattern.
 

Element Detail

pattern

public abstract String pattern

Specify the pattern for which this URL will be matched. This element is required.

Any EL expressions #{someBean.paramName} found within the pattern will be processed as value injections. The URL will be parsed and the value found at the location of the EL expression will be injected into the location specified in that EL expression. Note: EL expressions will not match over the ‘/’ character.

The pattern itself is compiled parsed as a regular expression, meaning that the actual URL matching can be as simple or as complex as desired.

outbound

public abstract boolean outbound
Enable or disable outbound URL rewriting for this mapping (default: 'true' / enabled.) If enabled, any links matching the viewId specified will be rewritten (if possible) using parameters mapping to named path parameters specified in the pattern.

Default:
true

onPostback

public abstract boolean onPostback

Optional boolean (default true), if set to false, path parameters will not be injected on form postbacks.

Default:
true


Copyright © 2011 Seam Framework. All Rights Reserved.