[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...

Gavin King gavin.king at jboss.com
Wed Feb 14 02:05:41 EST 2007


  User: gavin   
  Date: 07/02/14 02:05:41

  Modified:    src/main/org/jboss/seam  Model.java
  Log:
  fixed a problem
  
  Revision  Changes    Path
  1.2       +7 -15     jboss-seam/src/main/org/jboss/seam/Model.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Model.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Model.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- Model.java	14 Feb 2007 05:46:29 -0000	1.1
  +++ Model.java	14 Feb 2007 07:05:41 -0000	1.2
  @@ -56,13 +56,6 @@
            throw new IllegalStateException("No application context active");
         }
         
  -      String componentName = Seam.getComponentName(clazz);
  -      if (componentName!=null)
  -      {
  -         return Component.forName(componentName);
  -      }
  -      else
  -      {
            String name = clazz.getName() + ".model";
            Model model = (Model) Contexts.getApplicationContext().get(name);
            if ( model==null )
  @@ -73,6 +66,5 @@
            }
            return model;
         }
  -   }
   
   }
  
  
  



More information about the jboss-cvs-commits mailing list