How can I get id of urlMapping when using pretty faces through the Seam3 @ViewConfig interface?
In pretty-config.xml id is specified on url-mapping element.
<url-mapping id="foo">
<pattern value="/page/foo/">
<view-id value="..." />
</url-mapping>
With @URLMapping annotation provided by Pretty Faces i can use id attribute.
@URLMapping(id = "foo", pattern = "/page/foo", viewId = "...")
public class FooBean {
// some code here
}
But @UrlMapping annotation provided by Seam faces doesn't have any id attribute so I wonder what will be id of this mapping.
@ViewConfig
public interface PagesConfig {
static enum Pages {
@ViewPattern("...")
@UrlMapping(pattern = "/page/foo")
FOO,
}
static enum AnotherPages {
@ViewPattern("...")
@UrlMapping(pattern = "/page/foo2")
FOO,
}
}