Package org.richfaces.component

Examples of org.richfaces.component.UIRichMessage


 
  protected void doEncodeEnd(ResponseWriter writer, FacesContext context,  UIComponent component) throws IOException {
   
    Iterator<FacesMessage> msgIter = null;
   
    UIRichMessage msgComponent = (UIRichMessage)component;
    String forClientId = msgComponent.getFor();
   
    if(forClientId == null){
 
      if(log.isErrorEnabled()){
        log.error("'for' attribute cannot be null");
      }
     
    }else{
     
      msgIter = getMessageIterator(context, forClientId, msgComponent);
      writer.startElement(HTML.SPAN_ELEM, msgComponent);
      getUtils().writeAttribute(writer, HTML.id_ATTRIBUTE, msgComponent.getClientId(context));
     
      if(!msgIter.hasNext() && msgComponent.isPassed()){
       
        encodingUIContent(msgComponent, context, null);
       
      }else if(msgIter.hasNext() ){
       
View Full Code Here


   
  }
 
  public void renderOuterStyles(UIComponent component, FacesContext context, ResponseWriter writer,String outerStyle, String outerClass) throws IOException{
   
    UIRichMessage uiMsg = null;
   
    if(!(component instanceof UIRichMessage)){
      return;
    }
   
    uiMsg = (UIRichMessage)component;
   
    String parentStyle = (String)uiMsg.getAttributes().get("style");
    String parentClass = (String)uiMsg.getAttributes().get("styleClass");
    
    String richMessageClass = "rich-message" + (null != outerClass ? " " + outerClass : "");
    String richMessageStyle = (null != outerStyle ? outerStyle + "," : "");
     
    parentStyle = parentStyle != null ? (richMessageStyle + parentStyle) :  richMessageStyle; 
View Full Code Here

  }
 
  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 : "";
View Full Code Here

 
  protected void doEncodeEnd(ResponseWriter writer, FacesContext context,  UIComponent component) throws IOException {
   
    Iterator<FacesMessage> msgIter = null;
   
    UIRichMessage msgComponent = (UIRichMessage)component;
    String forClientId = msgComponent.getFor();
   
    if(forClientId == null){
 
      if(log.isErrorEnabled()){
        log.error("'for' attribute cannot be null");
      }
     
    }else{
     
      msgIter = getMessageIterator(context, forClientId, msgComponent);
      writer.startElement(HTML.SPAN_ELEM, msgComponent);
      getUtils().writeAttribute(writer, HTML.id_ATTRIBUTE, msgComponent.getClientId(context));
     
      if(!msgIter.hasNext() && msgComponent.isPassed()){
       
        encodingUIContent(msgComponent, context, null);
       
      }else if(msgIter.hasNext() ){
       
View Full Code Here

   
  }
 
  public void renderOuterStyles(UIComponent component, FacesContext context, ResponseWriter writer,String outerStyle, String outerClass) throws IOException{
   
    UIRichMessage uiMsg = null;
   
    if(!(component instanceof UIRichMessage)){
      return;
    }
   
    uiMsg = (UIRichMessage)component;
   
    String parentStyle = (String)uiMsg.getAttributes().get("style");
    String parentClass = (String)uiMsg.getAttributes().get("styleClass");
    
    String richMessageClass = "rich-message" + (null != outerClass ? " " + outerClass : "");
    String richMessageStyle = (null != outerStyle ? outerStyle + "," : "");
     
    parentStyle = parentStyle != null ? (richMessageStyle + parentStyle) :  richMessageStyle; 
View Full Code Here

  }
 
  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 : "";
View Full Code Here

 
  protected void doEncodeEnd(ResponseWriter writer, FacesContext context,  UIComponent component) throws IOException {
   
    Iterator msgIter = null;
   
    UIRichMessage msgComponent = (UIRichMessage)component;
    String forClientId = msgComponent.getFor();
   
    if(forClientId == null){
     
      if(log.isErrorEnabled()){
        log.error(NULL_PARAMETER_ERROR_MESSAGE);
      }
     
    }else{
     
      msgIter = getMessageIterator(context, forClientId, msgComponent);
      writer.startElement(HTML.SPAN_ELEM, msgComponent);
      getUtils().writeAttribute(writer, HTML.id_ATTRIBUTE, msgComponent.getClientId(context));
     
      if(!msgIter.hasNext() && msgComponent.isPassed()){
       
        encodingUIContent(msgComponent, context, null);
       
      }else if(msgIter.hasNext() ){
       
View Full Code Here

     
  }
 
  public void renderOuterStyles(UIComponent component, FacesContext context, ResponseWriter writer,String outerStyle, String outerClass) throws IOException{
   
    UIRichMessage uiMsg = null;
   
    if(!(component instanceof UIRichMessage)){
      return;
    }
   
    uiMsg = (UIRichMessage)component;
   
    String parentStyle = (String)uiMsg.getAttributes().get("style");
    String parentClass = (String)uiMsg.getAttributes().get("styleClass");
    
    String richMessageClass = "rich-message" + (null != outerClass ? " " + outerClass : "");
    String richMessageStyle = (null != outerStyle ? outerStyle + "," : "");
     
    parentStyle = parentStyle != null ? (richMessageStyle + parentStyle) :  richMessageStyle; 
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.