Any thoughts on this?

-------------------------

Hi, 

I should have combined my two questions.  Sorry. 

I another field with the following business rule:

<field name="BillingDays" key="billingDays" type="int">
  <rule name="mask" value="[0-9]+">Please enter a numeric value for billing
days.</rule>
</field>

When I put a non-numeric value in this field ("h"), I get the following
error in the turbine.log:

Exception:  java.lang.reflect.InvocationTargetException
Stack Trace follows:
java.lang.reflect.InvocationTargetException:
java.lang.NumberFormatException: h
at java.lang.Integer.parseInt(Integer.java:405)
at java.lang.Integer.<init>(Integer.java:540)
at
org.apache.turbine.services.intake.model.IntegerField.doSetValue(IntegerFiel
d.java:100)
at org.apache.turbine.services.intake.model.Field.validate(Field.java:515)
at org.apache.turbine.services.intake.model.Field.init(Field.java:263)
at org.apache.turbine.services.intake.model.Group.init(Group.java:204)
(truncated stack trace...)

What's up with this?  Shouldn't intake catch this type of data entry and NOT
throw an exception?  Am I doing something incorrectly or is this a defect?

I'm using TDK 2.1.

Thanks,
Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to