Hello,
i'm trying to use the built-in security handling. With the pages.xml it works fine. But, if i try to restrict some controller action, no redirect occurs and the application just throws an exception
17:34:57,328 ERROR [[default]] Servlet.service() for servlet default threw exception org.jboss.seam.security.NotLoggedInException at org.jboss.seam.security.Identity.checkRestriction(Identity.java:222) at de.rwo.login.Identity.checkRestriction(Identity.java:59) at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:38) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106) at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54) at org.javassist.tmp.java.lang.Object_$$_javassist_22.buyNow(Object_$$_javassist_22.java)
<h:commandButton action="#{buyNowController.buyNow}" styleClass="submit" value="Kaufen" > <s:conversationId/> </h:commandButton>
@Restrict("#{identity.loggedIn}") public String buyNow() {...}
Ok, with s:button the redirection to login works properly also on method invocations, but not with h:commandButton, any idea why?!
I'm using trinidad 1.2.1 on the jsf-ri-1.2 latest with latest cvs build of jboss Seam2
Gena