Examples of ELContextTag


Examples of org.apache.myfaces.trinidad.webapp.ELContextTag

    {
      throw new JspException(_LOG.getMessage(
        "SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
    }

    ELContextTag parentELContext = (ELContextTag)
       findAncestorWithClass(this, ELContextTag.class);

    Application application =
      FacesContext.getCurrentInstance().getApplication();
View Full Code Here

Examples of org.apache.myfaces.trinidad.webapp.ELContextTag

    {
      throw new JspException(_LOG.getMessage(
        "RETURNACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
    }

    ELContextTag parentELContext = (ELContextTag)
       findAncestorWithClass(this, ELContextTag.class);

    Application application =
      FacesContext.getCurrentInstance().getApplication();
View Full Code Here

Examples of org.apache.myfaces.trinidad.webapp.ELContextTag

    {
      throw new JspException(_LOG.getMessage(
        "RETURNACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
    }

    ELContextTag parentELContext = (ELContextTag)
       findAncestorWithClass(this, ELContextTag.class);

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

    ReturnActionListener listener = new ReturnActionListener();
    if (_value != null)
    {
      String value = _value;
      if (TagUtils.isValueReference(value))
      {
        if (parentELContext != null)
          value = parentELContext.transformExpression(value);

        listener.setValueBinding(ReturnActionListener.VALUE_KEY,
                                 application.createValueBinding(value));
      }
      else
View Full Code Here

Examples of org.apache.myfaces.trinidad.webapp.ELContextTag

    {
      throw new JspException(_LOG.getMessage(
        "FILEDOWNLOADACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
    }

    ELContextTag parentELContext = (ELContextTag)
       findAncestorWithClass(this, ELContextTag.class);

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

    FileDownloadActionListener listener = new FileDownloadActionListener();

    if (_filename != null)
    {
      if (TagUtils.isValueReference(_filename))
      {
        String filename = _filename;
        if (parentELContext != null)
          filename = parentELContext.transformExpression(filename);

        listener.setValueBinding(FileDownloadActionListener.FILENAME_KEY,
                                 application.createValueBinding(filename));
      }
      else
      {
        listener.setFilename(_filename);
      }
    }

    if (_contentType != null)
    {
      if (TagUtils.isValueReference(_contentType))
      {
        String contentType = _contentType;
        if (parentELContext != null)
          contentType = parentELContext.transformExpression(contentType);

        listener.setValueBinding(FileDownloadActionListener.CONTENT_TYPE_KEY,
                                 application.createValueBinding(contentType));
      }
      else
      {
        listener.setContentType(_contentType);
      }
    }


    if (TagUtils.isValueReference(_method))
    {
      String method = _method;
      if (parentELContext != null)
          method = parentELContext.transformExpression(method);
     
      listener.setMethod(application.createMethodBinding(method,
                  new Class[]{FacesContext.class, OutputStream.class}));
    }
    else
View Full Code Here

Examples of org.apache.myfaces.trinidad.webapp.ELContextTag

    {
      throw new JspException(_LOG.getMessage(
        "SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
    }

    ELContextTag parentELContext = (ELContextTag)
       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
View Full Code Here

Examples of org.apache.myfaces.trinidad.webapp.ELContextTag

    {
      throw new JspException(_LOG.getMessage(
        "SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
    }

    ELContextTag parentELContext = (ELContextTag)
       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(SetActionListener.FROM_KEY,
                                 application.createValueBinding(from));
      }
      else
      {
        listener.setFrom(_from);
      }

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

        listener.setValueBinding(SetActionListener.TO_KEY,
                                 application.createValueBinding(to));
      }
      else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.