in my application i have a phone field but its accepting all integers,characters,strings everything and we can type infinite length of words ,digits etc..
i want only numbers to be entered in that field.pls help me through out this..
following xml i am using..


<field
name="contactno"
type="xsositiveInteger"
id="phone"
required="true"
description="PLG_USER_PROFILE_FIELD_PHONE_DESC"
filter="integer"
label="PLG_USER_PROFILE_FIELD_PHONE_LABEL"
message="PLG_USER_PROFILE_FIELD_PHONE_MESSAGE"
size="10"
/>