Package org.araneaframework.uilib.form.constraint

Examples of org.araneaframework.uilib.form.constraint.OrConstraint


    clientAddressConstraint.addConstraint(new NotEmptyConstraint(searchForm.getElementByFullName("clientAddressTown")));
    clientAddressConstraint.addConstraint(new NotEmptyConstraint(searchForm.getElementByFullName("clientAddressStreet")));
    clientAddressConstraint.addConstraint(new NotEmptyConstraint(searchForm.getElementByFullName("clientAddressHouse")));
   
    //Combining scenarios
    OrConstraint searchConstraint = new OrConstraint();   
    searchConstraint.addConstraint(clientNameConstraint);
    searchConstraint.addConstraint(clientPersonalIdConstraint);
    searchConstraint.addConstraint(clientAddressConstraint);
   
    //Setting custom error message
    searchConstraint.setCustomErrorMessage(t("searchform.notenoughdata"));
   
    //Setting constraint
    searchForm.setConstraint(searchConstraint);
   
    //Putting the widget
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.form.constraint.OrConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.