Package javax.faces.webapp

Examples of javax.faces.webapp.UIComponentTag$UIComponentTagWrapper


  private String type;
  private String binding;

  public int doStartTag() throws JspException {

    UIComponentTag parentTag = UIComponentTag
        .getParentUIComponentTag(pageContext);

    if (parentTag == null) {
      throw new JspException(Messages.getMessage(
          Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
              .getClass().getName()));
    }

    if (type == null && binding == null) {
      throw new JspException("Either of the following attributes is "
          + "required: type binding");
    }

    // Process only newly created components
    if (parentTag.getCreated()) {

      FacesContext context = FacesContext.getCurrentInstance();
      Application application = context.getApplication();

      org.richfaces.event.DropListener listener = null;

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);
View Full Code Here


        super.setProperties(component);       
        setStringProperty(component, "name", _name);
        setBooleanProperty(component, "noEscape", _noEscape);

        //Find parent UIComponentTag
        UIComponentTag componentTag = UIComponentTag.getParentUIComponentTag(pageContext);
        if (componentTag == null)
        {
            throw new IllegalArgumentException(Messages.getMessage(Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, "ActionParameterTag"));
        }

        if (componentTag.getCreated())
        {
            //Component was just created, so we add the Listener
            UIComponent parentComponent = componentTag.getComponentInstance();
            if (parentComponent instanceof ActionSource)
            {
                FacesContext facesContext = FacesContext.getCurrentInstance();
                Application application = facesContext.getApplication();
                if (_assignTo != null) {
View Full Code Here

  private String type;
  private String binding;

  public int doStartTag() throws JspException {

    UIComponentTag parentTag = UIComponentTag
        .getParentUIComponentTag(pageContext);

    if (parentTag == null) {
      throw new JspException(Messages.getMessage(
          Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
              .getClass().getName()));
    }

    if (type == null && binding == null) {
      throw new JspException("Either of the following attributes is "
          + "required: type binding");
    }

    // Process only newly created components
    if (parentTag.getCreated()) {

      FacesContext context = FacesContext.getCurrentInstance();
      Application application = context.getApplication();

      org.richfaces.event.NodeSelectedListener listener = null;

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);
View Full Code Here

  private String type;
  private String binding;

  public int doStartTag() throws JspException {

    UIComponentTag parentTag = UIComponentTag
        .getParentUIComponentTag(pageContext);

    if (parentTag == null) {
      throw new JspException(Messages.getMessage(
          Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
              .getClass().getName()));
    }

    if (type == null && binding == null) {
      throw new JspException("Either of the following attributes is "
          + "required: type binding");
    }

    // Process only newly created components
    if (parentTag.getCreated()) {

      FacesContext context = FacesContext.getCurrentInstance();
      Application application = context.getApplication();

      org.richfaces.event.NodeExpandedListener listener = null;

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);
View Full Code Here

  private String type;
  private String binding;

  public int doStartTag() throws JspException {

    UIComponentTag parentTag = UIComponentTag
        .getParentUIComponentTag(pageContext);

    if (parentTag == null) {
      throw new JspException(Messages.getMessage(
          Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
              .getClass().getName()));
    }

    if (type == null && binding == null) {
      throw new JspException("Either of the following attributes is "
          + "required: type binding");
    }

    // Process only newly created components
    if (parentTag.getCreated()) {

      FacesContext context = FacesContext.getCurrentInstance();
      Application application = context.getApplication();

      org.richfaces.event.DragListener listener = null;

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);
View Full Code Here

    // Fields
           

  public int doStartTag() throws JspException {

    UIComponentTag parentTag = UIComponentTag
        .getParentUIComponentTag(pageContext);

    if (parentTag == null) {
      throw new JspException(Messages.getMessage(
          Messages.NO_UI_COMPONENT_TAG_ANCESTOR_ERROR, this
              .getClass().getName()));
    }

    if (type == null && binding == null) {
      throw new JspException("Either of the following attributes is "
          + "required: type binding");
    }

    // Process only newly created components
    if (parentTag.getCreated()) {

      FacesContext context = FacesContext.getCurrentInstance();
      Application application = context.getApplication();

      org.richfaces.event.DropListener listener = null;

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);
View Full Code Here

        if (_property == null) throw new JspException("property attribute not set");
        if (_value == null) throw new JspException("value attribute not set");
        if (!UIComponentTag.isValueReference(_property)) throw new JspException("property attribute is no valid value reference: " + _property);

        //Find parent UIComponentTag
        UIComponentTag componentTag = UIComponentTag.getParentUIComponentTag(pageContext);
        if (componentTag == null)
        {
            throw new JspException("UpdateActionListenerTag has no UIComponentTag ancestor");
        }

        if (componentTag.getCreated())
        {
            //Component was just created, so we add the Listener
            UIComponent component = componentTag.getComponentInstance();
            if (component instanceof ActionSource)
            {
                FacesContext facesContext = FacesContext.getCurrentInstance();
                Application application = facesContext.getApplication();
                UpdateActionListener al = new UpdateActionListener();
View Full Code Here

        {
            throw new JspException("type attribute not set");
        }

        //Find parent UIComponentTag
        UIComponentTag componentTag = UIComponentTag.getParentUIComponentTag(pageContext);
        if (componentTag == null)
        {
            throw new JspException("TabChangeListenerTag has no UIComponentTag ancestor");
        }

        if (componentTag.getCreated())
        {
            //Component was just created, so we add the Listener
            UIComponent component = componentTag.getComponentInstance();
            if (component instanceof HtmlPanelTabbedPane)
            {
                Object listenerRef = type;
                if (UIComponentTag.isValueReference(type))
                {
View Full Code Here

        {
            throw new JspException("type attribute not set");
        }

        //Find parent UIComponentTag
        UIComponentTag componentTag = UIComponentTag.getParentUIComponentTag(pageContext);
        if (componentTag == null)
        {
            throw new JspException("TreeSelectionListenerTag has no UIComponentTag ancestor");
        }

        if (componentTag.getCreated())
        {
            //Component was just created, so we add the Listener
            UIComponent component = componentTag.getComponentInstance();
            if (component instanceof HtmlTree)
            {
                String className;
                if (UIComponentTag.isValueReference(type))
                {
View Full Code Here

        {
            throw new JspException("type attribute not set");
        }

        //Find parent UIComponentTag
        UIComponentTag componentTag = UIComponentTag.getParentUIComponentTag(pageContext);
        if (componentTag == null)
        {
            throw new JspException("IconProviderTag has no UIComponentTag ancestor");
        }

        UIComponent component = componentTag.getComponentInstance();
        if (component instanceof HtmlTree)
        {
            String className;
            if (UIComponentTag.isValueReference(type))
            {
View Full Code Here

TOP

Related Classes of javax.faces.webapp.UIComponentTag$UIComponentTagWrapper

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.