JSF Web Templates

This section describes the structure of JSF applications. JSF – Error Message Snapshot String errMsg=webMessagesBundle.getString(“xyz"); FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, errMsg,errMsg); // Get the properties file import java.util.ResourceBundle; protected static ResourceBundle webMessagesBundle = ResourceBundle.getBundle(“xyz.web.properties.webMessages"); getFacesContext().addMessage("Validation Error",message); JSF – Structure The template (most commonly jsp) defines the interface The faces-config defines the navigation and the backing […]