Re: Validate method not working

2015-05-30 Thread Gabriel Malimpensa
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 Malimpe

Re: Validate method not working

2015-05-30 Thread Vladimir Nišević
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,Vladim

Re: Validate method not working

2015-05-30 Thread Gabriel Malimpensa
Vladimir, Price is a property of a domain object. The whole code: package dom.simple; import javax.jdo.annotations.Column; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Pe

Re: Validate method not working

2015-05-30 Thread Vladimir Nišević
Hi Gabriel, just tried your code with DomainService Categories package dom.simple; import org.apache.isis.applib.DomainObjectContainer; import org.apache.isis.applib.annotation.DomainService; @DomainService public class Categories { public Category newCategory( String name,