Examples of UIInsert


Examples of org.richfaces.ui.component.UIInsert

     *
     * @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
     */
    protected void setProperties(UIComponent component) { 
  super.setProperties(component);
  UIInsert insertComponent = (UIInsert) component;

  if (this._content != null) {
      if (this._content.isLiteralText()) {
    try {
        String __content = (String) getFacesContext().getApplication().getExpressionFactory().coerceToType(
          this._content.getExpressionString(), String.class);

        insertComponent.setContent(__content);
    } catch (ELException e) {
        throw new FacesException(e);
    }
      } else {
    component.setValueExpression("content", this._content);
      }
  }

  if (this._src != null) {
      if (this._src.isLiteralText()) {
    try {
        String __src = (String) getFacesContext().getApplication().getExpressionFactory().coerceToType(
          this._src.getExpressionString(), String.class);

        insertComponent.setSrc(__src);
    } catch (ELException e) {
        throw new FacesException(e);
    }
      } else {
    component.setValueExpression("src", this._src);
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.