Package org.araneaframework.uilib.form.constraint

Examples of org.araneaframework.uilib.form.constraint.OrConstraint.addConstraint()


    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"));
View Full Code Here


    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"));
   
View Full Code Here

   
    //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
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.