Hi ,Gabriel, is the price a property of domain object or action? Show us a 
whole class.

Check 
http://isis.apache.org/how-tos/how-to-02-100-How-to-validate-user-input-for-a-property.html
 or 
http://isis.apache.org/how-tos/how-to-02-120-How-to-validate-an-action-parameter-argument.html

lG,Vladimir


> Am 30.05.2015 um 16:00 schrieb Gabriel Malimpensa <[email protected]>:
> 
> Sorry for insist in this question, but I have tried many things and I can't
> resolve. I have used the validate method for attributes in other systems I
> have made, but this one I really don't know what is happening. Maybe
> (propably) it's something stupid... =D
> 
> Thank you for support.
> 
> Gabriel Malimpensa.
> São Carlos, São Paulo, Brazil.
> 
> 2015-05-27 21:43 GMT-03:00 Gabriel Malimpensa <[email protected]>:
> 
>> Hi.
>> 
>> I've created a validate method for an attribute but when I insert the
>> entity that contains such attribute, the validate is not called by the
>> interface. I don't know what is wrong. Someone can help?
>> 
>> Code:
>>    public String validatePrice(Double price) {
>>        if (price >= 0) {
>>            return null;
>>        } else {
>>            return "The price must not be negative!";
>>        }
>>    }
>> 
>> Thanks.
>> 
>> Gabriel Malimpensa.
>> São Carlos, São Paulo, Brazil.
>> 
>> 

Reply via email to