[jboss-user] [JBoss Seam] - Disabling @PerNestedConversation

wschwendt do-not-reply at jboss.com
Sun Feb 3 19:41:06 EST 2008

I'd be very interested in being able to disable a @PerNestedConversation setting.

In particular, I'd be interested in disabling @PerNestedConversation  for component "org.jboss.seam.pageflow.pageflow"   (motivation is to use nested conversations for subflows).

Unfortunately, Seam's annotation type @PerNestedConversation is defined with the annotation type @java.lang.annotation.Inherited.

Therefore, it isn't possible to define a subclass of "org.jboss.seam.pageflow.pageflow" in order to override org.jboss.seam.pageflow.pageflow", but WITHOUT the @PerNestedConversation behavior.

Because @PerNestedConversation is defined with @Inherited, every subclass of a Seam component annotated with @PerNestedConversation   inherits the @PerNestedConversation  behavior, no matter whether the subclass itself is annotated with @PerNestedConversation or not.

Therefore it would be nice if an attribute could be added to @PerNestedConversation to disable the @PerNestedConversation behavior, such as in the following example:

  | @Name"org.jboss.seam.pageflow.pageflow" 
  | @PerNestedConversation(disable=true)  // disables @PerNestedConversation setting inherited from superclass org.jboss.seam.pageflow.Pageflow
  | @Install(dependencies="org.jboss.seam.bpm.jbpm", precedence=FRAMEWORK, classDependencies="javax.faces.context.FacesContext")
  | public class OverridingPageflowComponent extends org.jboss.seam.pageflow.Pageflow
  | {...
  | }

Any chances such a mechanismn to disable @PerNestedConversation could be added to Seam?

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

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

More information about the jboss-user mailing list