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

Peter Muir peter at bleepbleep.org.uk
Tue Mar 13 04:56:32 EDT 2007


  User: pmuir   
  Date: 07/03/13 04:56:32

  Modified:    src/ui/org/jboss/seam/ui  UIValidateAll.java
  Log:
  JBSEAM-501
  
  Revision  Changes    Path
  1.5       +46 -45    jboss-seam/src/ui/org/jboss/seam/ui/UIValidateAll.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UIValidateAll.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/UIValidateAll.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- UIValidateAll.java	2 Oct 2006 01:01:37 -0000	1.4
  +++ UIValidateAll.java	13 Mar 2007 08:56:32 -0000	1.5
  @@ -2,8 +2,9 @@
   
   import java.util.List;
   
  +import javax.faces.component.EditableValueHolder;
  +import javax.faces.component.UIComponent;
   import javax.faces.component.UIComponentBase;
  -import javax.faces.component.UIInput;
   
   public class UIValidateAll extends UIComponentBase
   {
  @@ -27,17 +28,17 @@
      {
         for (Object child: children)
         {
  -         if (child instanceof UIInput)
  +         if (child instanceof EditableValueHolder)
            {
  -            UIInput uiInput =  (UIInput) child;
  -            if ( uiInput.getValidators().length==0 && uiInput.getValidator()==null )
  +            EditableValueHolder evh =  (EditableValueHolder) child;
  +            if ( evh.getValidators().length==0 && evh.getValidator()==null )
               {
  -               uiInput.addValidator( new ModelValidator() );
  +               evh.addValidator( new ModelValidator() );
               }
            }
  -         else if (child instanceof UIComponentBase)
  +         else if (child instanceof UIComponent)
            {
  -            addValidators( ( (UIComponentBase) child ).getChildren() );
  +            addValidators( ( (UIComponent) child ).getChildren() );
            }
         }
      }
  
  
  



More information about the jboss-cvs-commits mailing list