[jboss-user] [JBoss Seam] - Re: Force method to be run before page redirect (no pages.xm

jteb do-not-reply at jboss.com
Thu Jan 24 13:29:27 EST 2008


It's been a while, but from the top of my head:

  | @Target(TYPE)
  | @Retention(RUNTIME)
  | @Interceptors(QuestionRemovedInterceptor.class)
  | public @interface QuestionRemoved {}
  | 
  | @Interceptor
  | public class QuestionRemovedInterceptor {
  | 
  |    @AroundInvoke
  |    public aroundInvoke(SecurityContext ctx) {
  |    
  |       // your code
  |       return ctx.proceed();
  |    }
  | }
  | 

Check section 5 of the manual

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123157#4123157

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123157



More information about the jboss-user mailing list