Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagException


   * javax.faces.component.UIComponent)
   */
  public void apply(FaceletContext ctx, UIComponent parent)
      throws IOException, FacesException, FaceletException, ELException {
    if (parent == null || !(parent instanceof EditableValueHolder)) {
      throw new TagException(this.tag,
          "Parent not an instance of EditableValueHolder: " + parent);
    }
    if (null == parent.getParent()) {
      // New created component, add validator.
      FacesContext facesContext = FacesContext.getCurrentInstance();
View Full Code Here


  }

  public void apply(FaceletContext faceletContext, UIComponent parent)
      throws FacesException, ELException {
    if (parent == null) {
      throw new TagException(tag, "Parent UIComponent was null");
    }

    if (ComponentSupport.isNew(parent)) {
      String nameValue = name.getValue(faceletContext);
      if (TobagoConstants.ATTR_RENDERED.equals(nameValue)) {
View Full Code Here

        } else {
          changeSource.addTabChangeListener(listener);
        }
      }
    } else {
      throw new TagException(tag, "Parent is not of type TabChangeSource, type is: " + parent);
    }
  }
View Full Code Here

      if (content.length() > 0) {
        page.getScriptBlocks().add(content);
      }
    } else {
      throw new TagException(tag, "Parent is not of type UIPage, type is: " + parent);
    }
  }
View Full Code Here

  }

  public void apply(FaceletContext faceletContext, UIComponent parent)
      throws FacesException, ELException {
    if (parent == null) {
      throw new TagException(tag, "Parent UIComponent was null");
    }

    if (ComponentSupport.isNew(parent)) {

      if (mode != null) {
View Full Code Here

  }

  public void apply(FaceletContext faceletContext, UIComponent parent)
      throws FacesException, ELException {
    if (parent == null) {
      throw new TagException(tag, "Parent UIComponent was null");
    }

    if (ComponentSupport.isNew(parent)) {

      if (mode != null) {
View Full Code Here

  public void apply(FaceletContext ctx, UIComponent parent)
      throws IOException, FacesException, FaceletException, ELException {
    if (ComponentSupport.isNew(parent)) {
      UIViewRoot root = ComponentSupport.getViewRoot(ctx, parent);
      if (root == null) {
        throw new TagException(this.tag, "UIViewRoot not available");
      }
      ValueExpression b = null;
      if (this.binding != null) {
        b = this.binding.getValueExpression(ctx, PhaseListener.class);
      }
View Full Code Here

        }
        ActionListener listener = new LazyActionListener(this.listenerType, b);
        as.addActionListener(listener);
      }
        } else {
            throw new TagException(this.tag,
                    "Parent is not of type ActionSource, type is: " + parent);
        }
    }
View Full Code Here

        ValueChangeListener listener = new LazyValueChangeListener(
            this.listenerType, b);
        evh.addValueChangeListener(listener);
      }
    } else {
      throw new TagException(this.tag,
          "Parent is not of type EditableValueHolder, type is: "
              + parent);
    }
  }
View Full Code Here

                    }
                }
                src.addAjaxListener(listener);
            }
        } else {
            throw new TagException(this.tag, Messages.getMessage(Messages.NOT_PARENT_AJAX_COMPONENT_ERROR, parent));
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.facelets.tag.TagException

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.