1 16 package org.apache.myfaces.renderkit.html; 17 18 import javax.faces.application.FacesMessage; 19 import javax.faces.component.UIComponent; 20 import javax.faces.context.FacesContext; 21 import java.io.IOException ; 22 23 44 public class HtmlMessageRenderer 45 extends HtmlMessageRendererBase 46 { 47 49 public void encodeEnd(FacesContext facesContext, UIComponent component) 50 throws IOException 51 { 52 super.encodeEnd(facesContext, component); renderMessage(facesContext, component); 54 } 55 56 protected String getSummary(FacesContext facesContext, 57 UIComponent message, 58 FacesMessage facesMessage, 59 String msgClientId) 60 { 61 return facesMessage.getSummary(); 62 } 63 64 protected String getDetail(FacesContext facesContext, 65 UIComponent message, 66 FacesMessage facesMessage, 67 String msgClientId) 68 { 69 return facesMessage.getDetail(); 70 } 71 } 72 | Popular Tags |