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 ValidationHtmlMessageRenderer extends
10: ValidationHtmlMessageRendererBase {
11:
12: public void encodeEnd(FacesContext facesContext,
13: UIComponent component) throws IOException {
14: super .encodeEnd(facesContext, component);
15: renderMessage(facesContext, component);
16: }
17:
18: protected String getDetail(FacesContext facesContext,
19: UIComponent message, FacesMessage facesMessage,
20: String msgClientId) {
21: return facesMessage.getDetail();
22: }
23:
24: protected String getSummary(FacesContext facesContext,
25: UIComponent message, FacesMessage facesMessage,
26: String msgClientId) {
27: return facesMessage.getSummary();
28: }
29:
30: }
|