Package org.apache.tapestry

Examples of org.apache.tapestry.BindingException


            return _evaluator.readCompiled(_root, _parsedExpression);
        }
        catch (Throwable t)
        {
            throw new BindingException(t.getMessage(), this, t);
        }
    }
View Full Code Here


            _parsedExpression = (Node)_cache.getCompiledExpression(_description);
            _invariant = _evaluator.isConstant(_description);
        }
        catch (Exception ex)
        {
            throw new BindingException(ex.getMessage(), this, ex);
        }
    }
View Full Code Here

                _evaluator.write(_root, _accessor, value);
            }
        }
        catch (Throwable ex)
        {
            throw new BindingException(ex.getMessage(), this, ex);
        }
    }
View Full Code Here

    public Object getObject()
    {
        IAsset result = _component.getAsset(_description);

        if (result == null)
            throw new BindingException(BindingMessages.missingAsset(_component, _description),
                    _component, getLocation(), this, null);

        return result;
    }
View Full Code Here

        {
            throw ex;
        }
        catch (RuntimeException ex)
        {
            throw new BindingException(BindingMessages.listenerMethodFailure(
                    _component,
                    _methodName,
                    ex), _component, getLocation(), this, ex);
        }
    }
View Full Code Here

        }
        catch (Exception ex)
        {
            String message = BindingMessages.convertObjectError(this, ex);

            throw new BindingException(message, getComponent(), _location, this, ex);
        }
    }
View Full Code Here

    /** @since 3.0 */

    protected BindingException createReadOnlyBindingException(IBinding binding)
    {
        return new BindingException(BindingMessages.readOnlyBinding(binding), binding);
    }
View Full Code Here

                throw Tapestry.createRequiredParameterException(this, "field");

            displayName = field.getDisplayName();

            if (displayName == null)
                throw new BindingException(ValidMessages.noDisplayName(this, field), this, null,
                        getBinding("field"), null);
        }

        IValidationDelegate delegate = form.getDelegate();
View Full Code Here

            return valueConverter.coerceValue(raw, type);
        } catch (Exception ex) {
            // String message = BindingMessages.convertObjectError(this, ex);

            if (raw != null) {
                throw new BindingException("Error converting a "+raw.getClass().getName()+" to "+type.getName()+" toString() of value ="+raw,
                                           this.root, location, this, ex);
            } else {
                throw new BindingException("Error converting a null", this.root, location, this, ex);
            }
        }
    }
View Full Code Here

            addValidation(flowState.getCurrentActivity(), cycle.renderStackPeek());
            try {
                result = flowState.getProperty(key, expected);
            } catch (RuntimeException e) {
                if (e.getCause() instanceof ValidatorException) {
                    throw new BindingException(e.getMessage(), this, e.getCause());
                } else {
                    throw new BindingException(e.getMessage(), this, e);
                }
            }
        }
        if (result == null && defaultValueBinding != null) {
            result = defaultValueBinding.getObject(expected);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.BindingException

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.