Package org.apache.myfaces.trinidad.component

Examples of org.apache.myfaces.trinidad.component.UIXComponent


         "encountered without an <f:view> being processed.");
    }

    super.setProperties(component);

    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      uixComponent.setAttributeChangeListener(_attributeChangeListener);
    }

    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here


        "VIEW_TAG_NOT_PRESENT", this));
    }

    super.setProperties(component);
   
    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      MethodExpression me = getFacesContext().getApplication().
         getExpressionFactory().createMethodExpression(
             getFacesContext().getELContext(),
             _attributeChangeListener,
             null,
             new Class[]{AttributeChangeEvent.class});

      uixComponent.setAttributeChangeListener(me);
    }


    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

         "encountered without an <f:view> being processed.");
    }

    super.setProperties(component);

    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      uixComponent.setAttributeChangeListener(_attributeChangeListener);
    }

    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

        "VIEW_TAG_NOT_PRESENT", this));
    }

    super.setProperties(component);
   
    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      MethodExpression me = getFacesContext().getApplication().
         getExpressionFactory().createMethodExpression(
             getFacesContext().getELContext(),
             _attributeChangeListener,
             null,
             new Class[]{AttributeChangeEvent.class});

      uixComponent.setAttributeChangeListener(me);
    }


    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

    @Override
    @SuppressWarnings("deprecation")
    public void applyMetadata(FaceletContext ctx, Object instance)
    {
      ValueExpression expr = _attribute.getValueExpression(ctx, String.class);
      UIXComponent uixcomp = (UIXComponent) instance;
      FacesBean bean = uixcomp.getFacesBean();
      PropertyKey mainKey = bean.getType().findKey(_mainMethodName);
      if (mainKey == null)
        throw new TagAttributeException(_attribute,
                                        "No support for '" + _mainMethodName +
                                        "' attribute on " + instance);
View Full Code Here

         "encountered without an <f:view> being processed.");
    }

    super.setProperties(component);

    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      uixComponent.setAttributeChangeListener(_attributeChangeListener);
    }

    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

        "VIEW_TAG_NOT_PRESENT", this));
    }

    super.setProperties(component);
   
    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      MethodExpression me = getFacesContext().getApplication().
         getExpressionFactory().createMethodExpression(
             getFacesContext().getELContext(),
             _attributeChangeListener,
             null,
             new Class[]{AttributeChangeEvent.class});

      uixComponent.setAttributeChangeListener(me);
    }


    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

         "encountered without an <f:view> being processed.");
    }

    super.setProperties(component);

    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      uixComponent.setAttributeChangeListener(_attributeChangeListener);
    }

    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

    @SuppressWarnings("deprecation")
    public void applyMetadata(FaceletContext ctx, Object instance)
    {
      ValueExpression expr = _attribute.getValueExpression(ctx, String.class);
      ValueBinding vb = new LegacyValueBinding(expr);
      UIXComponent uixcomp = (UIXComponent) instance;
      FacesBean bean = uixcomp.getFacesBean();
      PropertyKey mainKey = bean.getType().findKey(_mainMethodName);
      if (mainKey == null)
        throw new TagAttributeException(_attribute,
                                        "No support for '" + _mainMethodName +
                                        "' attribute on " + instance);
View Full Code Here

        "VIEW_TAG_NOT_PRESENT", this));
    }

    super.setProperties(component);
   
    UIXComponent uixComponent = (UIXComponent) component;

    if (_attributeChangeListener != null)
    {
      MethodBinding mb =
        createMethodBinding(_attributeChangeListener,
                            new Class[]{AttributeChangeEvent.class});
      uixComponent.setAttributeChangeListener(mb);
    }


    setProperties(uixComponent.getFacesBean());
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.component.UIXComponent

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.