cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gentry" <blackn...@gmail.com>
Subject Re: Re: writeNestedProperty
Date Fri, 30 Jun 2006 01:14:42 GMT
I personally think writeNestedProperty() is a perfectly valid feature
request to be added to Cayenne.  If you are already using OGNL, such
as in a Tapestry application, that is also an option.  Keep in mind
that nulls give OGNL heartburn, though.  I'm not certain what Cayenne
does with them in readNestedProperty().  (EOF's KVC will return a null
if it encounters a null, while OGNL throws an exception -- that
feature complicated some of my Tapestry pages.)

I might have to look at this a bit more later.

/dev/mrg

PS. If you create a working writeNestedProperty() before we can and
feel like sharing, please do.



On 6/29/06, apl@lindesay.co.nz <apl@lindesay.co.nz> wrote:
> Hello Andrus;
>
> >> Can I ask if there's something like 'takeValueForKeyPath(...)'
> >> from KVC that can be used with 'DataObject'?  I was looking for a
> >> 'writeNestedProperty', but couldn't see it.
> ...
> > No, unfortunately there's none. Should be easy to add via a custom
> > wedge class sitting between CayenneDataObject and your own class
> > (configurable in the Modeler)
>
> Is your thinking that it would best to get people to use something
> like OGNL on Cayenne instead of  putting this stuff into cayenne itself?
>
> Regards;
>
> ___
> Andrew Lindesay
> www.lindesay.co.nz
>
>
>
>

Mime
View raw message