Re: dataObject.writeProperty and validation of a new dataObject

From: Steve Wells (stwell..wnmail.net)
Date: Mon Feb 06 2006 - 20:31:47 EST

  • Next message: Andrus Adamchik: "Re: How Db Listeners Add?"

    Ah crap, I can't recreate this, it must've been an older module still
    deployed. All is good now, sorry for the noise :(

    -- 
    http://www.fastmail.fm - mmm... Fastmail...
    

    ----- Original message ----- From: "Andrus Adamchik" <andru..bjectstyle.org> To: cayenne-use..bjectstyle.org Date: Mon, 6 Feb 2006 19:47:51 -0500 Subject: Re: dataObject.writeProperty and validation of a new dataObject

    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 - 20:31:48 EST