Re: dataObject.writeProperty and validation of a new dataObject

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Feb 06 2006 - 19:47:51 EST

  • Next message: Cris Daniluk: "Re: SQLTemplate / inExp"

    There is no difference between wroteProperty and calling a setter.
    You don't say anything about the nature of your validation errors.
    Try taking it at the face value - maybe there is indeed something
    missing in your object?

    Andrus

    On Feb 6, 2006, at 6:44 PM, Steve Wells wrote:

    > I'm calling writeProperty instead of setters on my dataObjects (trying
    > to build dynamic Tapestry pages based on DataObject metadata) and I
    > get
    > validation failures on commit of a *new* object...not a modified
    > one. I
    > can see the values set correctly in the DataObject. So I figure that
    > writeProperty is bypassing setting the validation. Is there a way
    > around this without turning validation off completely...or is it just
    > me?
    >
    > Using Cay 1.2M10.
    >
    > Thanks,
    >
    > Steve
    >
    > --
    > http://www.fastmail.fm - Send your email first class
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Feb 06 2006 - 19:47:54 EST