[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2576) Add attribute to @PerNestedConversation annotation type to allow disabling of inherited @PerNestedConversation behavior

Wolfgang Schwendt (JIRA) jira-events at lists.jboss.org
Mon Feb 4 10:01:03 EST 2008


Add attribute to @PerNestedConversation annotation type to allow disabling of inherited @PerNestedConversation behavior
-----------------------------------------------------------------------------------------------------------------------

                 Key: JBSEAM-2576
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2576
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: Core
    Affects Versions: 2.0.1.CR1
         Environment: Seam 2.0.1.SNAPSHOT based on SVN trunk
            Reporter: Wolfgang Schwendt
            Priority: Minor


The definition of annotation type org.jboss.seam.annotations.PerNestedConversation is annotated with @Inherited.  While inheritance of annotations can be comfortable, it has the drawback that every Seam component which subclasses/extends a Seam component annotated with @PerNestedConversation automatically inherits the @PerNestedConversation behavior. 

Consequently, there is currently no easy way to disable the @PerNestedConversation setting for a Seam component   (if one wants to do this for certain reasons).   It is NOT possible to subclass a  Seam component annotated with @PerNestedConversation in order to override that component and disable the @PerNestedConversation behavior.


Feature Request:  it would be nice if an attribute could be added to the @PerNestedConversation annotation type to disable inheritance of the @PerNestedConversation behavior.  The following example illustrates the idea:


@Name("org.jboss.seam.pageflow.pageflow")   // override framework provided Pageflow component 
@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
{...
}
	


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list