Examples of HtmlMessage


Examples of org.apache.myfaces.component.html.ext.HtmlMessage

        if (component instanceof HtmlMessage
                && ((HtmlMessage)component).getForceSpan())
        {
            String forAttr = getFor(component);
            HtmlMessage htmlMessage = (HtmlMessage) component;

            UIComponent forComponent = component.findComponent(forAttr);

            if (forComponent != null)
            {
                String forCompclientId = forComponent.getClientId(facesContext);

                ResponseWriter writer = facesContext.getResponseWriter();
                writer.startElement(HTML.SPAN_ELEM, null);
                writer.writeAttribute(HTML.ID_ATTR, forCompclientId + "_msgFor", null);
                if(htmlMessage.getStyleClass()!=null)
                writer.writeAttribute(HTML.CLASS_ATTR,htmlMessage.getStyleClass(),null);
                if(htmlMessage.getStyle()!=null)
                writer.writeAttribute(HTML.STYLE_ATTR,htmlMessage.getStyle(),null);
                writer.endElement(HTML.SPAN_ELEM);
            }
        }
    }
View Full Code Here

Examples of org.apache.myfaces.component.html.ext.HtmlMessage

        if (component instanceof HtmlMessage
                && ((HtmlMessage)component).getForceSpan())
        {
            String forAttr = getFor(component);
            HtmlMessage htmlMessage = (HtmlMessage) component;

            UIComponent forComponent = component.findComponent(forAttr);

            if (forComponent != null)
            {
                String forCompclientId = forComponent.getClientId(facesContext);

                ResponseWriter writer = facesContext.getResponseWriter();
                writer.startElement(HTML.SPAN_ELEM, null);
                writer.writeAttribute(HTML.ID_ATTR, forCompclientId + "_msgFor", null);
                if(htmlMessage.getStyleClass()!=null)
                writer.writeAttribute(HTML.CLASS_ATTR,htmlMessage.getStyleClass(),null);
                if(htmlMessage.getStyle()!=null)
                writer.writeAttribute(HTML.STYLE_ATTR,htmlMessage.getStyle(),null);
                writer.endElement(HTML.SPAN_ELEM);
            }
        }
    }
View Full Code Here

Examples of org.apache.myfaces.component.html.ext.HtmlMessage

        if (component instanceof HtmlMessage
                && ((HtmlMessage)component).getForceSpan())
        {
            String forAttr = getFor(component);
            HtmlMessage htmlMessage = (HtmlMessage) component;

            UIComponent forComponent = component.findComponent(forAttr);

            if (forComponent != null)
            {
                String forCompclientId = forComponent.getClientId(facesContext);

                ResponseWriter writer = facesContext.getResponseWriter();
                writer.startElement(HTML.SPAN_ELEM, null);
                writer.writeAttribute(HTML.ID_ATTR, forCompclientId + "_msgFor", null);
                if(htmlMessage.getStyleClass()!=null)
                writer.writeAttribute(HTML.CLASS_ATTR,htmlMessage.getStyleClass(),null);
                if(htmlMessage.getStyle()!=null)
                writer.writeAttribute(HTML.STYLE_ATTR,htmlMessage.getStyle(),null);
                writer.endElement(HTML.SPAN_ELEM);
            }
        }
    }
View Full Code Here

Examples of org.apache.myfaces.component.html.ext.HtmlMessage

        if (component instanceof HtmlMessage
                && ((HtmlMessage)component).getForceSpan())
        {
            String forAttr = getFor(component);
            HtmlMessage htmlMessage = (HtmlMessage) component;

            UIComponent forComponent = component.findComponent(forAttr);

            if (forComponent != null)
            {
                String forCompclientId = forComponent.getClientId(facesContext);

                ResponseWriter writer = facesContext.getResponseWriter();
                writer.startElement(HTML.SPAN_ELEM, null);
                writer.writeAttribute(HTML.ID_ATTR, forCompclientId + "_msgFor", null);
                if(htmlMessage.getStyleClass()!=null)
                writer.writeAttribute(HTML.CLASS_ATTR,htmlMessage.getStyleClass(),null);
                if(htmlMessage.getStyle()!=null)
                writer.writeAttribute(HTML.STYLE_ATTR,htmlMessage.getStyle(),null);
                writer.endElement(HTML.SPAN_ELEM);
            }
        }
    }
View Full Code Here

Examples of org.jboss.seam.ui.component.html.HtmlMessage

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlMessage comp = (HtmlMessage) component;
             
            if (this._dir != null) {
        if (this._dir.isLiteralText()) {
          try {
                       
            java.lang.String __dir = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dir.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDir(__dir);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dir", this._dir);
        }
      }
                        
            if (this._errorClass != null) {
        if (this._errorClass.isLiteralText()) {
          try {
                       
            java.lang.String __errorClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._errorClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setErrorClass(__errorClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("errorClass", this._errorClass);
        }
      }
                        
            if (this._errorStyle != null) {
        if (this._errorStyle.isLiteralText()) {
          try {
                       
            java.lang.String __errorStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._errorStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setErrorStyle(__errorStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("errorStyle", this._errorStyle);
        }
      }
                         
            if (this._fatalClass != null) {
        if (this._fatalClass.isLiteralText()) {
          try {
                       
            java.lang.String __fatalClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fatalClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFatalClass(__fatalClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fatalClass", this._fatalClass);
        }
      }
                        
            if (this._fatalStyle != null) {
        if (this._fatalStyle.isLiteralText()) {
          try {
                       
            java.lang.String __fatalStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fatalStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFatalStyle(__fatalStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fatalStyle", this._fatalStyle);
        }
      }
                        
            if (this._for != null) {
        if (this._for.isLiteralText()) {
          try {
                       
            java.lang.String __for = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._for.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFor(__for);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("for", this._for);
        }
      }
                         
            if (this._infoClass != null) {
        if (this._infoClass.isLiteralText()) {
          try {
                       
            java.lang.String __infoClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._infoClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setInfoClass(__infoClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("infoClass", this._infoClass);
        }
      }
                        
            if (this._infoStyle != null) {
        if (this._infoStyle.isLiteralText()) {
          try {
                       
            java.lang.String __infoStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._infoStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setInfoStyle(__infoStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("infoStyle", this._infoStyle);
        }
      }
                        
            if (this._lang != null) {
        if (this._lang.isLiteralText()) {
          try {
                       
            java.lang.String __lang = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._lang.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLang(__lang);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("lang", this._lang);
        }
      }
                         
            if (this._showDetail != null) {
        if (this._showDetail.isLiteralText()) {
          try {
                       
            Boolean __showDetail = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showDetail.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowDetail(__showDetail.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showDetail", this._showDetail);
        }
      }
                        
            if (this._showSummary != null) {
        if (this._showSummary.isLiteralText()) {
          try {
                       
            Boolean __showSummary = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showSummary.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowSummary(__showSummary.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showSummary", this._showSummary);
        }
      }
                        
            if (this._style != null) {
        if (this._style.isLiteralText()) {
          try {
                       
            java.lang.String __style = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._style.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStyle(__style);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("style", this._style);
        }
      }
                        
            if (this._styleClass != null) {
        if (this._styleClass.isLiteralText()) {
          try {
                       
            java.lang.String __styleClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._styleClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStyleClass(__styleClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("styleClass", this._styleClass);
        }
      }
                        
            if (this._title != null) {
        if (this._title.isLiteralText()) {
          try {
                       
            java.lang.String __title = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._title.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTitle(__title);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("title", this._title);
        }
      }
                        
            if (this._tooltip != null) {
        if (this._tooltip.isLiteralText()) {
          try {
                       
            Boolean __tooltip = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tooltip.getExpressionString(),
                      Boolean.class);
         
                        comp.setTooltip(__tooltip.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tooltip", this._tooltip);
        }
      }
                        
            if (this._warnClass != null) {
        if (this._warnClass.isLiteralText()) {
          try {
                       
            java.lang.String __warnClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._warnClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWarnClass(__warnClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("warnClass", this._warnClass);
        }
      }
                        
            if (this._warnStyle != null) {
        if (this._warnStyle.isLiteralText()) {
          try {
                       
            java.lang.String __warnStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._warnStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWarnStyle(__warnStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("warnStyle", this._warnStyle);
View Full Code Here

Examples of org.jboss.seam.ui.component.html.HtmlMessage

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlMessage comp = (HtmlMessage) component;
             
            if (this._dir != null) {
        if (this._dir.isLiteralText()) {
          try {
                       
            java.lang.String __dir = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dir.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDir(__dir);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dir", this._dir);
        }
      }
                        
            if (this._errorClass != null) {
        if (this._errorClass.isLiteralText()) {
          try {
                       
            java.lang.String __errorClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._errorClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setErrorClass(__errorClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("errorClass", this._errorClass);
        }
      }
                        
            if (this._errorStyle != null) {
        if (this._errorStyle.isLiteralText()) {
          try {
                       
            java.lang.String __errorStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._errorStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setErrorStyle(__errorStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("errorStyle", this._errorStyle);
        }
      }
                         
            if (this._fatalClass != null) {
        if (this._fatalClass.isLiteralText()) {
          try {
                       
            java.lang.String __fatalClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fatalClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFatalClass(__fatalClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fatalClass", this._fatalClass);
        }
      }
                        
            if (this._fatalStyle != null) {
        if (this._fatalStyle.isLiteralText()) {
          try {
                       
            java.lang.String __fatalStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fatalStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFatalStyle(__fatalStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fatalStyle", this._fatalStyle);
        }
      }
                        
            if (this._for != null) {
        if (this._for.isLiteralText()) {
          try {
                       
            java.lang.String __for = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._for.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFor(__for);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("for", this._for);
        }
      }
                         
            if (this._infoClass != null) {
        if (this._infoClass.isLiteralText()) {
          try {
                       
            java.lang.String __infoClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._infoClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setInfoClass(__infoClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("infoClass", this._infoClass);
        }
      }
                        
            if (this._infoStyle != null) {
        if (this._infoStyle.isLiteralText()) {
          try {
                       
            java.lang.String __infoStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._infoStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setInfoStyle(__infoStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("infoStyle", this._infoStyle);
        }
      }
                        
            if (this._lang != null) {
        if (this._lang.isLiteralText()) {
          try {
                       
            java.lang.String __lang = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._lang.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLang(__lang);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("lang", this._lang);
        }
      }
                         
            if (this._showDetail != null) {
        if (this._showDetail.isLiteralText()) {
          try {
                       
            Boolean __showDetail = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showDetail.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowDetail(__showDetail.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showDetail", this._showDetail);
        }
      }
                        
            if (this._showSummary != null) {
        if (this._showSummary.isLiteralText()) {
          try {
                       
            Boolean __showSummary = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showSummary.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowSummary(__showSummary.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showSummary", this._showSummary);
        }
      }
                        
            if (this._style != null) {
        if (this._style.isLiteralText()) {
          try {
                       
            java.lang.String __style = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._style.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStyle(__style);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("style", this._style);
        }
      }
                        
            if (this._styleClass != null) {
        if (this._styleClass.isLiteralText()) {
          try {
                       
            java.lang.String __styleClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._styleClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStyleClass(__styleClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("styleClass", this._styleClass);
        }
      }
                        
            if (this._title != null) {
        if (this._title.isLiteralText()) {
          try {
                       
            java.lang.String __title = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._title.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTitle(__title);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("title", this._title);
        }
      }
                        
            if (this._tooltip != null) {
        if (this._tooltip.isLiteralText()) {
          try {
                       
            Boolean __tooltip = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tooltip.getExpressionString(),
                      Boolean.class);
         
                        comp.setTooltip(__tooltip.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tooltip", this._tooltip);
        }
      }
                        
            if (this._warnClass != null) {
        if (this._warnClass.isLiteralText()) {
          try {
                       
            java.lang.String __warnClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._warnClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWarnClass(__warnClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("warnClass", this._warnClass);
        }
      }
                        
            if (this._warnStyle != null) {
        if (this._warnStyle.isLiteralText()) {
          try {
                       
            java.lang.String __warnStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._warnStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWarnStyle(__warnStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("warnStyle", this._warnStyle);
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.layout.HtmlMessage

               if (readableIdProcessor != null)
               {
                  readableIdProcessor.processWidget(footerMetawidget, elementName, columnAttributes, metawidget);
               }

               HtmlMessage message = new HtmlMessage();
               message.putAttribute("for", footerMetawidget.getAttribute("id"));
               message.putAttribute("styleClass", "error");
               footerFacet.getChildren().add(message);
               column.getChildren().add(footerFacet);
            }
         }
      }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.layout.HtmlMessage

               if (readableIdProcessor != null)
               {
                  readableIdProcessor.processWidget(footerMetawidget, elementName, columnAttributes, metawidget);
               }

               HtmlMessage message = new HtmlMessage();
               message.putAttribute("for", footerMetawidget.getAttribute("id"));
               message.putAttribute("styleClass", "error");
               footerFacet.getChildren().add(message);
               column.getChildren().add(footerFacet);
            }
         }
      }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.layout.HtmlMessage

               if (readableIdProcessor != null)
               {
                  readableIdProcessor.processWidget(footerMetawidget, elementName, columnAttributes, metawidget);
               }

               HtmlMessage message = new HtmlMessage();
               message.putAttribute("for", footerMetawidget.getAttribute("id"));
               message.putAttribute("styleClass", "error");
               footerFacet.getChildren().add(message);
               column.getChildren().add(footerFacet);
            }
         }
      }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.layout.HtmlMessage

               if (readableIdProcessor != null)
               {
                  readableIdProcessor.processWidget(footerMetawidget, elementName, columnAttributes, metawidget);
               }

               HtmlMessage message = new HtmlMessage();
               message.putAttribute("for", footerMetawidget.getAttribute("id"));
               message.putAttribute("styleClass", "error");
               footerFacet.getChildren().add(message);
               column.getChildren().add(footerFacet);
            }
         }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.