Examples of alternativeByName()


Examples of eu.planets_project.pp.plato.model.AlternativesDefinition.alternativeByName()

        // note: the user can also edit an alternative that has already been added to the list
        if ((alt.getId() == 0) &&
            (!alternativesDefinition.getAlternatives().contains(alt))) {
            String altName = alt.getName();
            if ((altName.length() > 20)||
                (null != alternativesDefinition.alternativeByName(altName))){
                FacesMessages.instance()
                    .add(FacesMessage.SEVERITY_ERROR,
                        "Please provide a unique name which has no more than 20 characters.");
                return;
            }
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.