-
1. Re: Seam 3 @ViewConfig not working
bram666 Feb 9, 2012 10:20 AM (in response to testvogel)ola,
i think it is the way how the pretty filter works, you call the xhtml directly and the pretty filter is not called then.
if you map the /admin/test.xhtml to a url /admin/test it prolly will work if you call /admin/test but not if you call /admin/test.jsf (not tested it myself).
-
2. Re: Seam 3 @ViewConfig not working
testvogel Feb 9, 2012 10:26 AM (in response to bram666)Hi,
is there any other solution or workaround available? I think in seam 2 this could be done by using the pages.xml.
-
3. Re: Seam 3 @ViewConfig not working
lightguard Feb 9, 2012 1:47 PM (in response to testvogel)There's also been some people talking about bugs in this, a work around may be to make sure your restrictions are taking place in the RESTORE_VIEW phase. I don't know if this will fix your particular issue or not, but it certainly couldn't hurt.
-
4. Re: Seam 3 @ViewConfig not working
testvogel Feb 9, 2012 1:54 PM (in response to lightguard)I think I have already defined the security binding to take place in the restore_view phase:
@SecurityBindingType
@RestrictAtPhase(PhaseIdType.RESTORE_VIEW)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
public @interface Admin {
}
-
5. Re: Seam 3 @ViewConfig not working
testvogel Feb 10, 2012 3:53 PM (in response to testvogel)Hi all,
I figured out what the problem is. I just have forgot to include the seam-faces in my pom file:
<dependency> <groupId>org.jboss.seam.faces</groupId> <artifactId>seam-faces</artifactId> <scope>runtime</scope> </dependency> As soon as I include the faces lib the redirecting to the login page is working but now i get an observer exception by every self executed redirect . Does anyone has an idea what I have forgot? The online workaround is to remove the seam-faces dependency from the pom file.