Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-06 Thread Giovanni Azua
Hi Jeromy, Many thanks for your thoughtful feedback on this issue. Jeromy Evans wrote: Personally, I never expose primitives as properties of an action because null values are always legal over this interface. In the special case of Boolean which can easily accidentally cause an NPE, I alway

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Jeromy Evans
Giovanni Azua wrote: Personally, I never expose primitives as properties of an action because null values are always legal over this interface. In the special case of Boolean which can easily accidentally cause an NPE, I always make the getter return false if the value is null.. This validatio

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Giovanni Azua
Hi Jeromy, Jeromy Evans wrote: 2nd, the parameters interceptor is called and sets properties of your action. It cannot set primitives to null, so it does not write to these properties. 3rd, the validation interceptors are executed. They cals the getters of your action instance and observe th

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Jeromy Evans
Giovanni Azua wrote: hi, I provided declarative XML validation for a form where the action would expose primitive type properties. The problem is that a primitive type property left blank in the form would never be caught as not provided by the "required" validation. The property would inste

S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Giovanni Azua
hi, I provided declarative XML validation for a form where the action would expose primitive type properties. The problem is that a primitive type property left blank in the form would never be caught as not provided by the "required" validation. The property would instead be set with the def