PDA

View Full Version : Default Rules



Boris
Dec 13th, 2004, 05:25 AM
class MyClass
{
int counter
String name;
}


I've build swing form for MyClass.
I've set no rules at all.

Now, when I insert in "counter" field (which is integer!) alphabetic symbols,
form shows the message:"org\springframework\binding\form\support\Validatin gFormModel.ValueSetterConstraint@e0..."

This behavior is OK, but how I can control it?

Besides, when inserted number with explicit "-" e.g -222, its OK,
but number with explicit "+" gets the same error. (BUG?)

The quiestion is : how can I set my message to these apparently "default" things without implementing my own rules?

Boris
Dec 13th, 2004, 06:29 AM
One more thing:

"range" Constraint doesn't support "long" arguments.
by throwing exception ClassCast.

I've found that class Range doesn't contain constructor with arguments of type "long" . Bug??