Package org.richfaces.component

Examples of org.richfaces.component.UIRichMessage


  }
 
  public void renderMarkerHtml(UIComponent component,UIComponent marker, FacesContext context,
                 ResponseWriter writer,String markerClass, String markerStyle) throws IOException{
   
    UIRichMessage uiMsg = null;
   
    if(!(component instanceof UIRichMessage)){
      return;
    }
   
View Full Code Here


   
    String detail = null;
   
    String title = null;
   
    UIRichMessage uiMsg = null;
   
    if(!(component instanceof UIRichMessage)){
      return;
    }
   
    uiMsg = (UIRichMessage)component;
   
    boolean isTooltip = getUtils().isBooleanAttribute(uiMsg, "tooltip");
      
    boolean showSummary = uiMsg.isShowSummary();
     
    boolean showDetail = uiMsg.isShowDetail();
   
   
    if(facesMsg != null){
      summary = (null != (summary = facesMsg.getSummary())) ? summary : "";
      detail = (null != (detail = facesMsg.getDetail())) ? detail : "";
    }    
      
    String classes = labelClass == null ? "rich-message-label" : "rich-message-label " + labelClass;
      
    writer.startElement(HTML.SPAN_ELEM, uiMsg);
      
    getUtils().writeAttribute(writer, HTML.class_ATTRIBUTE,classes);
    getUtils().writeAttribute(writer, HTML.style_ATTRIBUTE, labelStyle);
   
    if(facesMsg != null){
      if(isTooltip){
        title = (String) uiMsg.getAttributes().get("title");
        if(title != null){
          getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, title);
        }else{
          getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, summary);
        }
View Full Code Here

TOP

Related Classes of org.richfaces.component.UIRichMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.