Validation by using @andromda.presentation.view.field.format generates illegal Java Script

Description

illegal java script is generated when I use @andromda.presentation.view.field.format tag for validation

Details:
when @andromda.presentation.view.field.format = range 1 10000
Validation.xml has:
<field property="distanceCovered" depends="required,integer,intRange">
<arg position="0" key="distance.covered" />
<arg position="1" name="intRange" key="${var:min}" resource="false"/>
<arg position="2" name="intRange" key="${var:max}" resource="false"/>
<var>
<var-name>min</var-name>
<var-value><![CDATA[1]]></var-value>
</var>
<var>
<var-name>max</var-name>
<var-value><![CDATA[10000]]></var-value>
</var>
</field>
Errors Are:
Error: invalid property id
Line: 226, Column: 8
Source Code:
return {,min:'1'max:'10000'}[x];
--------^
this[9] = new Array("registerEnterPropertiesNextForm:distanceCovered", "Distance Covered is required.", new Function("x", "return {,min:'1'max:'10000'}[x];"));

when @andromda.presentation.view.field.format = pattern (?[0-9]{3})?[0-9]{3}-?[0-9]{4}
Validation.xml has:
<field property="userInfoPhoneNumber" depends="required,mask">
<arg position="0" key="phone.number" />
<var>
<var-name>mask</var-name>
<var-value><![CDATA[^(?[0-9]{3})?[0-9]{3}-?[0-9]{4}$]]></var-value>
</var>
</field>
Errors Are:
Error: invalid quantifier ?[0-9]{3})?[0-9]{3}-?[0-9]{4}$
Line: 164, Column: 13
Source Code:
return {mask:/^(?[0-9]{3})?[0-9]{3}-?[0-9]{4}$/}[x];
--------------^

this[7] = new Array("registerEnterUserInformationNextForm:userInfoPhoneNumber", "Phone Number is required.", new Function("x", "return {mask:/^(?[0-9]{3})?[0-9]{3}-?[0-9]{4}$/}[x];"));

Environment

andromda 3.2 snapshot, windows 2000 sp4, Firefox 1.5.0.7

Assignee

Chad Brandon

Reporter

BabarA

Labels

None

Components

Priority

Blocker
Configure