This content has been marked as final.
Show 1 reply
-
1. Re: pages.xml in Seam 3 and login-required
bleathem Jun 17, 2011 3:32 PM (in response to hamtho2)You'll want to use the @ViewConfig view configuration from Seam Faces. It looks like:
@ViewConfig public interface MyAppViewConfig { static enum Pages { @ViewPattern("/admin.xhtml") @Admin ADMIN, @ViewPattern("/item.xhtml") @UrlMapping(pattern="/item/#{id}/") @Owner ITEM, @ViewPattern("/*") @FacesRedirect @AccessDeniedView("/denied.xhtml") @LoginView("/login.xhtml") ALL; } }
See the Seam Faces reference documentation for more details, and a proper explanation.
http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html