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

Gavin King gavin.king at jboss.com
Tue Jul 10 05:37:10 EDT 2007


  User: gavin   
  Date: 07/07/10 05:37:10

  Modified:    src/main/org/jboss/seam/faces  UiComponent.java
  Log:
  JBSEAM-1628
  
  Revision  Changes    Path
  1.5       +8 -1      jboss-seam/src/main/org/jboss/seam/faces/UiComponent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UiComponent.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/faces/UiComponent.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- UiComponent.java	21 Jun 2007 05:27:28 -0000	1.4
  +++ UiComponent.java	10 Jul 2007 09:37:10 -0000	1.5
  @@ -45,8 +45,15 @@
            public UIComponent get(Object key)
            {
               if ( !(key instanceof String) ) return null;
  +            try
  +            {
               return FacesContext.getCurrentInstance().getViewRoot().findComponent( (String) key );
            }
  +            catch (IllegalArgumentException iae)
  +            {
  +               return null;
  +            }
  +         }
            
         };
      }
  
  
  



More information about the jboss-cvs-commits mailing list