Examples of FacesMessage


Examples of javax.faces.application.FacesMessage

    public void convert() {
        try {
            temperature = temperatureConvertEJB.convert(Temperature.parse(sourceTemperature, defaultScale)).toString();
        } catch (IllegalArgumentException e) {
            temperature = "0.0 Err";
            FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.toString()));
        }
    }
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.