Package javax.faces.webapp

Examples of javax.faces.webapp.UIComponentTag$UIComponentTagWrapper


  }

  @Override
  public int doStartTag() throws JspException
  {
    UIComponentTag tag = UIComponentTag.getParentUIComponentTag(pageContext);
    if (tag == null)
    {
      throw new JspException(
        "returnActionListener must be inside of a UIComponent tag.");
    }

    // Only run on the first time the tag executes
    if (!tag.getCreated())
      return SKIP_BODY;

    UIComponent component = tag.getComponentInstance();
    if (!(component instanceof ActionSource))
    {
      throw new JspException(
        "returnActionListener must be inside of an ActionSource component.");
    }
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("ValueChangeListenerTag has no UIComponentTag ancestor");
        }

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

  public abstract boolean isExecuteSet();

  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentTag tag =
        UIComponentTag.getParentUIComponentTag(pageContext);
    if (tag == null) {
      // TODO Message resource i18n
      throw new JspException("Not nested in faces tag");
    }

    if (!tag.getCreated()) {
      return (SKIP_BODY);
    }

    UIComponent component = tag.getComponentInstance();
    if (component == null) {
      // TODO Message resource i18n
      throw new JspException("Component Instance is null");
    }
    if (!(component instanceof ActionSource)) {
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("ActionListenerTag has no UIComponentTag ancestor");
        }

        if (componentTag.getCreated())
        {
            //Component was just created, so we add the Listener
            UIComponent component = componentTag.getComponentInstance();
            if (component instanceof ActionSource)
            {
                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("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

    // 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.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

    // 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.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

    // 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

    // 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.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

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

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

        if (componentTag.getCreated())
        {
            //Component was just created, so we add the Listener
            UIComponent component = componentTag.getComponentInstance();
            if (component instanceof EditableValueHolder)
            {
                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.