cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java form-validator.xsl
Date Tue, 10 Jul 2001 17:50:34 GMT
haul        01/07/10 10:50:34

  Modified:    src/org/apache/cocoon/components/language/markup/xsp/java
                        Tag: cocoon_20_branch form-validator.xsl
  Log:
  formvalidation examples
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +22 -16    xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/form-validator.xsl
  
  Index: form-validator.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/form-validator.xsl,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- form-validator.xsl	2001/06/15 11:29:28	1.1.2.1
  +++ form-validator.xsl	2001/07/10 17:50:31	1.1.2.2
  @@ -1,5 +1,5 @@
   <?xml version="1.0" encoding="ISO-8859-1"?><!-- -*- xsl -*- -->
  -<!-- $Id: form-validator.xsl,v 1.1.2.1 2001/06/15 11:29:28 dims Exp $ -->
  +<!-- $Id: form-validator.xsl,v 1.1.2.2 2001/07/10 17:50:31 haul Exp $ -->
   <!--
   
    ============================================================================
  @@ -52,7 +52,7 @@
   -->
   <!--
    * @author <a href="mailto:haul@informatik.tu-darmstadt.de>Christian Haul</a>
  - * @version CVS $Revision: 1.1.2.1 $ $Date: 2001/06/15 11:29:28 $
  + * @version CVS $Revision: 1.1.2.2 $ $Date: 2001/07/10 17:50:31 $
   -->
   
   <!-- XSP Form-Validator logicsheet for the Java language -->
  @@ -158,6 +158,12 @@
   
   
     <xspdoc:desc>
  +    Returns a Map containg all validation results.
  +  </xspdoc:desc>
  +  <xsl:template match="xsp-formval:results">XSPFormValidatorHelper.getResults(objectModel)</xsl:template>
  +
  +
  +  <xspdoc:desc>
       Returns a boolean whether validation of this parameter was
       successful.
   
  @@ -174,10 +180,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).equals(ValidatorActionResult.OK)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).equals(ValidatorActionResult.OK)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.OK)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.OK)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  @@ -201,10 +207,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).equals(ValidatorActionResult.TOOSMALL)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).equals(ValidatorActionResult.TOOSMALL)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.TOOSMALL)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.TOOSMALL)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  @@ -228,10 +234,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).ge(ValidatorActionResult.ERROR)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).ge(ValidatorActionResult.ERROR)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).ge(ValidatorActionResult.ERROR)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).ge(ValidatorActionResult.ERROR)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  @@ -255,10 +261,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).equals(ValidatorActionResult.TOOLARGE)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).equals(ValidatorActionResult.TOOLARGE)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.TOOLARGE)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.TOOLARGE)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  @@ -282,10 +288,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).equals(ValidatorActionResult.NOMATCH)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).equals(ValidatorActionResult.NOMATCH)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.NOMATCH)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.NOMATCH)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  @@ -309,10 +315,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).equals(ValidatorActionResult.ISNULL)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).equals(ValidatorActionResult.ISNULL)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.ISNULL)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.ISNULL)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  @@ -336,10 +342,10 @@
       </xsl:variable>
       <xsl:choose>
         <xsl:when test="string($name)!='-1'">
  -        XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of select="$name"/>).equals(ValidatorActionResult.NOTPRESENT)
  +        <xsp:expr>XSPFormValidatorHelper.getParamResult(objectModel,<xsl:copy-of
select="$name"/>).equals(ValidatorActionResult.NOTPRESENT)</xsp:expr>
         </xsl:when>
         <xsl:otherwise>
  -        __formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.NOTPRESENT)
  +        <xsp:expr>__formval_fvh.getParamResult(objectModel).equals(ValidatorActionResult.NOTPRESENT)</xsp:expr>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message