Examples of BindingException


Examples of com.palantir.ptoss.cinch.core.BindingException

            for (Field field : actions) {
                OnClick onClick = field.getAnnotation(OnClick.class);
                try {
                    wire(onClick, field, context);
                } catch (Exception e) {
                    throw new BindingException("could not wire up @OnClick on " + field.getName(), e);
                }
            }
            return ImmutableList.of();
        }
View Full Code Here

Examples of com.palantir.ptoss.cinch.core.BindingException

        private static void wire(final OnClick onClick, Field field, BindingContext context)
            throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
            String call = onClick.call();
            if (call == null) {
                throw new BindingException("call on @OnClick on " + field.getName() + " must be specified");
            }
            Method amlMethod = field.getType().getMethod("addMouseListener", MouseListener.class);
            if (amlMethod != null) {
                Object actionObject = context.getFieldObject(field, Object.class);
                final ObjectFieldMethod ofm = context.getBindableMethod(call);
                if (ofm == null) {
                    throw new BindingException("could not find bindable method: " + call);
                }
                MouseListener mouseListener = new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        if (e.getButton() != onClick.button().getConstant() || e.getClickCount() != onClick.count()) {
View Full Code Here

Examples of com.tll.client.bind.BindingException

   * @return The found {@link IFieldWidget}
   * @throws BindingException When the field can't be found
   */
  private IFieldWidget<?> resolveFieldWidget(String fieldName) throws BindingException {
    final IFieldWidget<?> fw = widget.getFieldGroup().getFieldWidget(fieldName);
    if(fw == null) throw new BindingException("Field of name: " + fieldName + " was not found.");
    return fw;
  }
View Full Code Here

Examples of org.apache.cocoon.forms.binding.BindingException

            final char prefixChar = (pfx!=null) ? pfx.charAt(0) : DEFAULT_DELIMITER;
            final char suffixChar = (sfx!=null) ? sfx.charAt(0) : DEFAULT_DELIMITER;
           
            return new CustomValueWrapBinding(prefixChar, suffixChar);
        } catch (Exception e) {
            throw new BindingException("Could not create instance of CustomValueWrapBinding.", e,
                                       DomHelper.getLocationObject(config));
        }
    }
View Full Code Here

Examples of org.apache.ibatis.binding.BindingException

    try {
      Class<? extends Annotation> sqlAnnotationType = getSqlAnnotationType(method);
      Class<? extends Annotation> sqlProviderAnnotationType = getSqlProviderAnnotationType(method);
      if (sqlAnnotationType != null) {
        if (sqlProviderAnnotationType != null) {
          throw new BindingException("You cannot supply both a static SQL and SqlProvider to method named " + method.getName());
        }
        Annotation sqlAnnotation = method.getAnnotation(sqlAnnotationType);
        final String[] strings = (String[]) sqlAnnotation.getClass().getMethod("value").invoke(sqlAnnotation);
        return buildSqlSourceFromStrings(strings);
      } else if (sqlProviderAnnotationType != null) {
View Full Code Here

Examples of org.apache.ibatis.binding.BindingException

    try {
      Class sqlAnnotationType = getSqlAnnotationType(method);
      Class sqlProviderAnnotationType = getSqlProviderAnnotationType(method);
      if (sqlAnnotationType != null) {
        if (sqlProviderAnnotationType != null) {
          throw new BindingException("You cannot supply both a static SQL and SqlProvider to method named " + method.getName());
        }
        Annotation sqlAnnotation = method.getAnnotation(sqlAnnotationType);
        final String[] strings = (String[]) sqlAnnotation.getClass().getMethod("value").invoke(sqlAnnotation);
        final StringBuilder sql = new StringBuilder();
        for (String fragment : strings) {
View Full Code Here

Examples of org.apache.ibatis.binding.BindingException

    try {
      Class sqlAnnotationType = getSqlAnnotationType(method);
      Class sqlProviderAnnotationType = getSqlProviderAnnotationType(method);
      if (sqlAnnotationType != null) {
        if (sqlProviderAnnotationType != null) {
          throw new BindingException("You cannot supply both a static SQL and SqlProvider to method named " + method.getName());
        }
        Annotation sqlAnnotation = method.getAnnotation(sqlAnnotationType);
        final String[] strings = (String[]) sqlAnnotation.getClass().getMethod("value").invoke(sqlAnnotation);
        StringBuilder sql = new StringBuilder();
        for (String fragment : strings) {
View Full Code Here

Examples of org.apache.tapestry.BindingException

        {
            return Ognl.getValue(_parsedExpression, getOgnlContext(), _root);
        }
        catch (OgnlException t)
        {
            throw new BindingException(
                Tapestry.format(
                    "ExpressionBinding.unable-to-resolve-expression",
                    _expression,
                    _root),
                this,
View Full Code Here

Examples of org.apache.tapestry.BindingException

        {
            _parsedExpression = OgnlUtils.getParsedExpression(_expression);
        }
        catch (Exception ex)
        {
            throw new BindingException(ex.getMessage(), this, ex);
        }

        if (checkForConstant())
            return;

        try
        {
            if (!Ognl.isSimpleNavigationChain(_parsedExpression, getOgnlContext()))
                return;
        }
        catch (OgnlException ex)
        {
            throw new BindingException(ex.getMessage(), this, ex);
        }

        // Split the expression into individual property names.
        // We then optimize what we can from the expression.  This will
        // shorten the expression and, in some cases, eliminate
View Full Code Here

Examples of org.apache.tapestry.BindingException

                return true;
            }
        }
        catch (OgnlException ex)
        {
            throw new BindingException(
                Tapestry.format(
                    "ExpressionBinding.unable-to-resolve-expression",
                    _expression,
                    _root),
                this,
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.