Package org.apache.myfaces.trinidad.event

Examples of org.apache.myfaces.trinidad.event.SetActionListener$Bean


      ValueExpression fromExpression = _from.getValueExpression(faceletContext,
                                                                Object.class);
      ValueExpression toExpression=  _to.getValueExpression(faceletContext,
                                                            Object.class);
      ActionSource actionSource= (ActionSource) parent;
      SetActionListener listener = new SetActionListener();
      listener.setValueExpression("from", fromExpression);
      listener.setValueExpression("to", toExpression);
      actionSource.addActionListener(listener);
    }
  }
View Full Code Here


       findAncestorWithClass(this, ELContextTag.class);

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

    SetActionListener listener = new SetActionListener();
    if (_from != null)
    {
      listener.setValueExpression("from", _from);
      if (_to.isLiteralText())
        throw new JspException(_LOG.getMessage(
          "SETACTIONLISTENERS_TO_MUST_BE_EL_EXPRESSION"));

      if (_to != null)
        listener.setValueExpression("to", _to);
    }

    ((ActionSource) component).addActionListener(listener);

    return super.doStartTag();
View Full Code Here

      ValueExpression fromExpression = _from.getValueExpression(faceletContext,
                                                                Object.class);
      ValueExpression toExpression=  _to.getValueExpression(faceletContext,
                                                            Object.class);
      ActionSource actionSource= (ActionSource) parent;
      SetActionListener listener = new SetActionListener();
      listener.setValueExpression("from", fromExpression);
      listener.setValueExpression("to", toExpression);
      actionSource.addActionListener(listener);
    }
  }
View Full Code Here

       findAncestorWithClass(this, ELContextTag.class);

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

    SetActionListener listener = new SetActionListener();
    if (_from != null)
    {
      listener.setValueExpression("from", _from);
      if (_to.isLiteralText())
        throw new JspException(_LOG.getMessage(
          "SETACTIONLISTENERS_TO_MUST_BE_EL_EXPRESSION"));

      if (_to != null)
        listener.setValueExpression("to", _to);
    }

    ((ActionSource) component).addActionListener(listener);

    return super.doStartTag();
View Full Code Here

      ValueExpression fromExpression = _from.getValueExpression(faceletContext,
                                                                Object.class);
      ValueExpression toExpression=  _to.getValueExpression(faceletContext,
                                                            Object.class);
      ActionSource actionSource= (ActionSource) parent;
      SetActionListener listener = new SetActionListener();
      listener.setValueExpression("from", fromExpression);
      listener.setValueExpression("to", toExpression);
      actionSource.addActionListener(listener);
    }
  }
View Full Code Here

       findAncestorWithClass(this, ELContextTag.class);

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

    SetActionListener listener = new SetActionListener();
    if (_from != null)
    {
      listener.setValueExpression("from", _from);
      if (_to.isLiteralText())
        throw new JspException(_LOG.getMessage(
          "SETACTIONLISTENERS_TO_MUST_BE_EL_EXPRESSION"));

      if (_to != null)
        listener.setValueExpression("to", _to);
    }

    ((ActionSource) component).addActionListener(listener);

    return super.doStartTag();
View Full Code Here

      ValueExpression fromExpression = _from.getValueExpression(faceletContext,
                                                                Object.class);
      ValueExpression toExpression=  _to.getValueExpression(faceletContext,
                                                            Object.class);
      ActionSource actionSource= (ActionSource) parent;
      SetActionListener listener = new SetActionListener();
      listener.setValueBinding("from",
                               new LegacyValueBinding(fromExpression));
      listener.setValueBinding("to",
                               new LegacyValueBinding(toExpression));
      actionSource.addActionListener(listener);
    }
  }
View Full Code Here

       findAncestorWithClass(this, ELContextTag.class);

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

    SetActionListener listener = new SetActionListener();
    if (_from != null)
    {
      if (TagUtils.isValueReference(_from))
      {
        String from = _from;
        if (parentELContext != null)
          from = parentELContext.transformExpression(from);

        listener.setValueBinding("from",
                                 application.createValueBinding(from));
      }
      else
      {
        listener.setFrom(_from);
      }

      if (TagUtils.isValueReference(_to))
      {
        String to = _to;
        if (parentELContext != null)
          to = parentELContext.transformExpression(to);

        listener.setValueBinding("to",
                                 application.createValueBinding(to));
      }
      else
      {
        throw new JspException(_LOG.getMessage(
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.event.SetActionListener$Bean

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.