01: package nl.knowlogy.validation.jsf.renderkit.html;
02:
03: import java.io.IOException;
04:
05: import javax.faces.application.FacesMessage;
06: import javax.faces.component.UIComponent;
07: import javax.faces.context.FacesContext;
08:
09: public class ValidationHtmlMessagesRenderer extends
10: ValidationHtmlMessagesRendererBase {
11:
12: public void encodeEnd(FacesContext facesContext,
13: UIComponent component) throws IOException {
14: super .encodeEnd(facesContext, component); // check for NP
15: renderMessages(facesContext, component);
16: }
17:
18: protected String getSummary(FacesContext facesContext,
19: UIComponent message, FacesMessage facesMessage,
20: String msgClientId) {
21: return facesMessage.getSummary();
22: }
23:
24: protected String getDetail(FacesContext facesContext,
25: UIComponent message, FacesMessage facesMessage,
26: String msgClientId) {
27: return facesMessage.getDetail();
28: }
29: }
|