Class RegularExpressionValidatorControl

  • All Implemented Interfaces:
    VariableResolver, IControl, IValidatorControl
    Direct Known Subclasses:
    EmailValidatorControl, FileNameValidatorControl, NumberDataTypeValidatorControl

    public class RegularExpressionValidatorControl
    extends ValidatorControl
    Generates client side and server side validation that verifies that a control value if provided matches the regular expression specified in the expression attribute of the validator.

    Example use:
    
     <control:lum_regularExpressionValidator expression="[a-zA-Z0-9]+" />
     
    xml data available for xsl rendering:
    
     <control expression="[a-zA-Z0-9]+" id="8A488A0311E0DDAE0111E1093B750265" type="lum_regularExpressionValidator">
     	<script><!-- validation javascript --></script>
     	<data>
     		<clientUniqueId>Form_8A488A0311E0DDAE0111E0F8A31800E28A488A0311E0DDAE0111E1093B750265</clientUniqueId> 
     	</data>
     </control>
     
    Since:
    4.0.0
    Version:
    $Revision: 22315 $ $Date: 2019-01-25 18:30:16 -0200 (Fri, 25 Jan 2019) $