Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9079

Custom seam component can extend any built-in component specifying the name of one of the built in components on the custom implementation.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M2
    • 3.2.0.Final
    • seam2
    • None

      User can specify a custom component with the same name as any built-in component. We should mark @Name("...") as duplicate only if a few custom components specify the same name.

      EXECUTE: Create a Seam Web Project.
      EXECUTE: Create:

      package ...
      
      import static org.jboss.seam.ScopeType.SESSION;
      
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.Scope;
      import org.jboss.seam.annotations.Startup;
      import org.jboss.seam.annotations.intercept.BypassInterceptors;
      import org.jboss.seam.international.StatusMessages;
      import org.jboss.seam.security.Identity;
      
      @Name("org.jboss.seam.security.identity")
      @Scope(SESSION)
      @BypassInterceptors
      @Startup
      public class CustomIdentity extends Identity {
      
      }	
      

      EXECUTE: Save the file.
      FAILURE: 'Duplicate component name: "org.jboss.seam.security.identity"' error marker appears.
      ASSERT: No error marker on @Name("org.jboss.seam.security.identity") appears.

            alexeykazakov Alexey Kazakov
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: