Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagAttributeException


        if (converter == null) {
          try {
            converter = FacesContext.getCurrentInstance().getApplication().createConverter(
                (String) converterId.getValueExpression(faceletContext, String.class).getValue(faceletContext));
          } catch (Exception e) {
            throw new TagAttributeException(tag, converterId, e.getCause());
          }
          if (valueExpression != null) {
            valueExpression.setValue(faceletContext, converter);
          }
        }
View Full Code Here


      {
        _method.invoke(instance, _params);
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here

        _method.invoke(instance,
                       new Object[]{new LegacyMethodBinding(expr)});
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here

      ValueBinding vb = new LegacyValueBinding(expr);
      UIXComponent uixcomp = (UIXComponent) instance;
      FacesBean bean = uixcomp.getFacesBean();
      PropertyKey mainKey = bean.getType().findKey(_mainMethodName);
      if (mainKey == null)
        throw new TagAttributeException(_attribute,
                                        "No support for '" + _mainMethodName +
                                        "' attribute on " + instance);
      PropertyKey accessKeyKey = bean.getType().findKey("accessKey");
      if (accessKeyKey == null)
        throw new TagAttributeException(_attribute,
                                        "No support for 'accessKey' attribute on " + instance);
      VirtualAttributeUtils.setAccessKeyAttribute(bean, vb, mainKey, accessKeyKey);
    }
View Full Code Here

          _accessKeyMethod.invoke(instance, _accessKey);
        _mainMethod.invoke(instance, _text);
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here

        this.step = this.getAttribute("step");
        this.varStatus = this.getAttribute("varStatus");
        this.tranzient = this.getAttribute("transient");

        if (this.items == null && this.begin != null && this.end == null) {
            throw new TagAttributeException(
                    this.tag,
                    this.begin,
                    "If the 'items' attribute is not specified, but the 'begin' attribute is, then the 'end' attribute is required");
        }
    }
View Full Code Here

        } else if (src instanceof Map) {
            return ((Map) src).entrySet().iterator();
        } else if (src.getClass().isArray()) {
            return new ArrayIterator(src);
        } else {
            throw new TagAttributeException(this.tag, this.items,
                    "Must evaluate to a Collection, Map, Array, or null.");
        }
    }
View Full Code Here

                                ) };
                    }
                    try {
                        method.invoke(instance, this.value);
                    } catch (InvocationTargetException e) {
                        throw new TagAttributeException(this.attr, e.getCause());
                    } catch (Exception e) {
                        throw new TagAttributeException(this.attr, e);
                    }
                }
                catch(ParseException e)
                {
                    throw new TagAttributeException(this.attr, e);
                }
            }
            else
            {
                ((ValidatorBase) instance).setValueExpression(this.name, this.attr
View Full Code Here

  public KeepAliveHandler(TagConfig config) {
    super(config);
        this.beanName = this.getRequiredAttribute("beanName");
        if (beanName != null) {
            if (!beanName.isLiteral()) {
                throw new TagAttributeException(this.tag, this.beanName, Messages.getMessage(Messages.MUST_BE_LITERAL_ERROR));
            }
        }
        this.ajaxOnly = getAttribute("ajaxOnly");
  }
View Full Code Here

    _converter = getAttribute("converter");
    _actionListener = getAttribute("actionListener");

    if(null != _assignTo) {
            if (_assignTo.isLiteral()) {
                throw new TagAttributeException(this.tag, this._assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR));
            }
    }
   
    if (null != _actionListener) {
            if (_actionListener.isLiteral()) {
                throw new TagAttributeException(this.tag, this._actionListener, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR));
            }
    }
    // TODO Auto-generated constructor stub
  }
View Full Code Here

TOP

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

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.