Package org.apache.tapestry

Examples of org.apache.tapestry.BindingException


            if (displayName == null)
            {
                String msg = Tapestry.format("FieldLabel.no-display-name", field.getExtendedId());

                throw new BindingException(msg, this, null, getBinding("field"), null);
            }
        }

        IForm form = Form.get(cycle);
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

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

            _invariant = _evaluator.isConstant(_expression);
        }
        catch (Exception ex)
        {
            throw new BindingException(ex.getMessage(), this, ex);
        }
    }
View Full Code Here

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

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

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

        return result;
    }
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

                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

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.