tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pferr...@apache.org
Subject cvs commit: jakarta-tapestry/framework/src/java/org/apache/tapestry IForm.java
Date Mon, 06 Jun 2005 18:48:42 GMT
pferraro    2005/06/06 11:48:42

  Modified:    framework/src/java/org/apache/tapestry/form Form.jwc
               framework/src/test/org/apache/tapestry/form MockForm.java
               framework/src/java/org/apache/tapestry IForm.java
  Log:
  Added clientValidationEnabled parameter to the form component, also exposed via IForm.isClientValidationEnabled().
  
  Revision  Changes    Path
  1.12      +8 -1      jakarta-tapestry/framework/src/java/org/apache/tapestry/form/Form.jwc
  
  Index: Form.jwc
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/java/org/apache/tapestry/form/Form.jwc,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Form.jwc	15 May 2005 22:56:36 -0000	1.11
  +++ Form.jwc	6 Jun 2005 18:48:41 -0000	1.12
  @@ -63,7 +63,14 @@
           Form provides a default instance of org.apache.tapestry.valid.ValidationDelegate.
       </description>
     </parameter>
  -
  +  
  +  <parameter name="clientValidationEnabled" default-binding="ognl">
  +    <description>
  +    If true (the default) then client-side validation will be generated upon render for
any
  +        required or validating fields.
  +	</description>
  +  </parameter>
  +  
     <reserved-parameter name="action"/>
     <reserved-parameter name="name"/>
     
  
  
  
  1.6       +5 -0      jakarta-tapestry/framework/src/test/org/apache/tapestry/form/MockForm.java
  
  Index: MockForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/test/org/apache/tapestry/form/MockForm.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MockForm.java	10 May 2005 16:55:32 -0000	1.5
  +++ MockForm.java	6 Jun 2005 18:48:42 -0000	1.6
  @@ -312,4 +312,9 @@
               r.run();
           }
       }
  +
  +    public boolean isClientValidationEnabled()
  +    {
  +        return false;
  +    }
   }
  \ No newline at end of file
  
  
  
  1.6       +7 -0      jakarta-tapestry/framework/src/java/org/apache/tapestry/IForm.java
  
  Index: IForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/java/org/apache/tapestry/IForm.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- IForm.java	3 May 2005 17:41:26 -0000	1.5
  +++ IForm.java	6 Jun 2005 18:48:42 -0000	1.6
  @@ -63,4 +63,11 @@
        */
   
       public IValidationDelegate getDelegate();
  +    
  +    /**
  +     * Indicates whether or not client-side validation will be generated during render.
  +     * @return true, if client-side validation is enabled, false otherwise
  +     * @since 4.0
  +     */
  +    public boolean isClientValidationEnabled();
   }
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message