1 Reply Latest reply on Feb 4, 2008 6:05 AM by Pete Muir

    Disabling @PerNestedConversation

    Wolfgang Schwendt Newbie

      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?