Coverage Report - org.apache.myfaces.renderkit.html.HtmlMessagesRenderer
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlMessagesRenderer
0%
0/6
N/A
0
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License.  You may obtain a copy of the License at
 9  
  *
 10  
  *   http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package org.apache.myfaces.renderkit.html;
 20  
 
 21  
 import java.io.IOException;
 22  
 
 23  
 import javax.faces.application.FacesMessage;
 24  
 import javax.faces.component.UIComponent;
 25  
 import javax.faces.context.FacesContext;
 26  
 
 27  
 import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 28  
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlMessagesRendererBase;
 29  
 
 30  
 /**
 31  
  *
 32  
  *
 33  
  * @author Manfred Geiler (latest modification by $Author: lu4242 $)
 34  
  * @author Thomas Spiegl
 35  
  * @version $Revision: 693358 $ $Date: 2008-09-08 22:54:29 -0500 (Mon, 08 Sep 2008) $
 36  
  */
 37  
 @JSFRenderer(
 38  
     renderKitId="HTML_BASIC",
 39  
     family="javax.faces.Messages",
 40  
     type="javax.faces.Messages")
 41  0
 public class HtmlMessagesRenderer
 42  
         extends HtmlMessagesRendererBase
 43  
 {
 44  
     //private static final Log log = LogFactory.getLog(HtmlMessagesRenderer.class);
 45  
 
 46  
     public void encodeEnd(FacesContext facesContext, UIComponent component)
 47  
             throws IOException
 48  
     {
 49  0
         super.encodeEnd(facesContext, component);   //check for NP
 50  0
         renderMessages(facesContext, component);
 51  0
     }
 52  
 
 53  
     protected String getSummary(FacesContext facesContext,
 54  
                                 UIComponent message,
 55  
                                 FacesMessage facesMessage,
 56  
                                 String msgClientId)
 57  
     {
 58  0
         return facesMessage.getSummary();
 59  
     }
 60  
 
 61  
     protected String getDetail(FacesContext facesContext,
 62  
                                UIComponent message,
 63  
                                FacesMessage facesMessage,
 64  
                                String msgClientId)
 65  
     {
 66  0
         return facesMessage.getDetail();
 67  
     }
 68  
 }