tags:

views:

74

answers:

1

I know that I can validate an input field by adding a inputmaskvalidator tag. I read the documentum doc :

The mask character string:

  • # : numeric characters
  • & : all characters
  • A : alphanumeric characters only
  • ? : alphabetic characters only
  • U : uppercase alphabetic characters only
  • L : lowercase alphabetic characters only

Example: date mask ##/##/## permits the input date 12/24/95 To use one of the mask characters as a literal member of the mask string, place a double slash (\) preceding the character.

Let's guess I want to accept double only to store it as a double in the content server. What must be the inputmask value?

Something like that?

<dmf:inputmaskvalidator inputmask="#.#" controltovalidate="my_double" name="my_double_validator"/>

or

<dmf:inputmaskvalidator inputmask="##.##" controltovalidate="my_double" name="my_double_validator"/>
+2  A: 

You must use other type of validator. Inputmaskvalidator is bad for your purpose. Use for example regexpvalidator. Example you can find on this page: