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 46 public class HtmlMessagesRenderer 47 extends HtmlMessagesRendererBase 48 { 49 51 public void encodeEnd(FacesContext facesContext, UIComponent component) 52 throws IOException 53 { 54 super.encodeEnd(facesContext, component); renderMessages(facesContext, component); 56 } 57 58 protected String getSummary(FacesContext facesContext, 59 UIComponent message, 60 FacesMessage facesMessage, 61 String msgClientId) 62 { 63 return facesMessage.getSummary(); 64 } 65 66 protected String getDetail(FacesContext facesContext, 67 UIComponent message, 68 FacesMessage facesMessage, 69 String msgClientId) 70 { 71 return facesMessage.getDetail(); 72 } 73 } 74 | Popular Tags |