@Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) @Documented public @interface UrlMapping
Modifier and Type | Required Element and Description |
---|---|
String |
pattern
Specify the pattern for which this URL will be matched.
|
Modifier and Type | Optional Element and Description |
---|---|
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.
|
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.
public abstract boolean outbound
public abstract boolean onPostback
Optional boolean (default true), if set to false
, path
parameters will not be injected on form postbacks.
Copyright © 2012 Seam Framework. All Rights Reserved.