Examples of UIComponentClassicTagBase


Examples of javax.faces.webapp.UIComponentClassicTagBase

  }

  @Override
  public int doStartTag() throws JspException {
    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag = UIComponentClassicTagBase
        .getParentUIComponentClassicTagBase(pageContext);
    if (tag == null) {
      // PENDING i18n
      throw new JspException(
          "Not nested in a UIComponentTag Error for tag with handler class:"
              + this.getClass().getName());
    }
    UIComponent component = tag.getComponentInstance();
    if (!(component instanceof EditableValueHolder)) {
      // PENDING i18n
      throw new JspException(
          "Not nested in a UIInput  component. Error for tag with handler class:"
              + this.getClass().getName());

    }
    // Nothing to do unless this tag created a component
    if (tag.getCreated()) {
      // New created component, add validator.
      FacesContext facesContext = FacesContext.getCurrentInstance();
      FacesBeanValidator validator = (FacesBeanValidator) facesContext
          .getApplication().createValidator(
              FacesBeanValidator.BEAN_VALIDATOR_TYPE);
View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

   * @throws JspException if a JSP error occurs
   */
  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag =
        UIComponentELTag.getParentUIComponentClassicTagBase(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 TabChangeSource)) {
View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

   * @throws javax.servlet.jsp.JspException if a JSP error occurs
   */
  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag =
        UIComponentELTag.getParentUIComponentClassicTagBase(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");
    }

View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

   * @throws javax.servlet.jsp.JspException if a JSP error occurs
   */
  public int doStartTag() throws JspException {

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

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

    final UIComponent component = tag.getComponentInstance();
    if (component == null) {
      // TODO Message resource i18n
      throw new JspException("Component Instance is null");
    }

View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

  private javax.el.ValueExpression forValue;

  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag =
        UIComponentELTag.getParentUIComponentClassicTagBase(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

Examples of javax.faces.webapp.UIComponentClassicTagBase

  private ValueExpression execute;

  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag =
        UIComponentELTag.getParentUIComponentClassicTagBase(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

Examples of javax.faces.webapp.UIComponentClassicTagBase

   * @throws javax.servlet.jsp.JspException if a JSP error occurs
   */
  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag =
        UIComponentELTag.getParentUIComponentClassicTagBase(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 ValueHolder)) {
View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

  @Override
  public int doStartTag() throws JspException {

    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag =
        UIComponentELTag.getParentUIComponentClassicTagBase(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");
    }
View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

  }

  @Override
  public int doStartTag() throws JspException {
    // Locate our parent UIComponentTag
    UIComponentClassicTagBase tag = UIComponentClassicTagBase
        .getParentUIComponentClassicTagBase(pageContext);
    if (tag == null) {
      // PENDING i18n
      throw new JspException(
          "Not nested in a UIComponentTag Error for tag with handler class:"
              + this.getClass().getName());
    }
    UIComponent component = tag.getComponentInstance();
    if (!(component instanceof EditableValueHolder)) {
      // PENDING i18n
      throw new JspException(
          "Not nested in a UIInput  component. Error for tag with handler class:"
              + this.getClass().getName());

    }
    // Nothing to do unless this tag created a component
    if (tag.getCreated()) {
      // New created component, add validator.
      FacesContext facesContext = FacesContext.getCurrentInstance();
      FacesBeanValidator validator = (FacesBeanValidator) facesContext
          .getApplication().createValidator(
              FacesBeanValidator.BEAN_VALIDATOR_TYPE);
View Full Code Here

Examples of javax.faces.webapp.UIComponentClassicTagBase

    @Override
    @SuppressWarnings("unchecked")
    public int doStartTag() throws JspException
    {
        UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
        if (componentTag == null)
        {
            throw new JspException("no parent UIComponentTag found");
        }

        if (_type == null && _binding == null)
        {
            throw new JspException("\"actionListener\" must have binding and/or type attribute.");
        }

        if (!componentTag.getCreated())
        {
            return Tag.SKIP_BODY;
        }

        _Holder holder = null;
        UIComponent component = componentTag.getComponentInstance();
        try
        {
            holder = (_Holder)component;
        }
        catch (ClassCastException e)
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.