Not exactly.  In the Hibernate API, you can create a DetachedCriteria object
which isn't tied to any session (and can thus be safely saved in an HTTP
session or something).  Anyway, when you get a session you can do:

session.getExecutableCriteria(detachedCriteria)

That returns a Criteria instance.  What I assumed is that they wouldn't
modify the detached criteria object that was passed in, since it's supposed
to be reusable.  I guess I was wrong.

-----Original Message-----
From: Rui Pacheco [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 9:48 AM
To: Tapestry users
Subject: Re: Contrib Table Weirdness...

I never used Hibernate, but seems to me that you were expecting a copy by
value behaviour and what Hibernate did was a copy by reference. Right?

On 7/12/06, James Carman <[EMAIL PROTECTED]> wrote:
>
> Yes, it was pretty stupid.  I didn't realize that when you create an
> executable hibernate criteria from a detached criteria that any changes
> made
> to the resulting criteria actually get written to the underlying detached
> criteria.  That doesn't seem like it's right, though.  They should be
> copying the detached criteria.
>
>
> -----Original Message-----
> From: Rui Pacheco [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 9:25 AM
> To: Tapestry users
> Subject: Re: Contrib Table Weirdness...
>
> :)
>
> I was actually thinking of something really simple. Its just that kind of
> mistake...
>
> On 7/12/06, James Carman <[EMAIL PROTECTED]> wrote:
> >
> > Nevermind.  I figured it out.  Stupid mistake that I don't care to share
> > (unless you really prod).
> >
> > -----Original Message-----
> > From: James Carman [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 12, 2006 9:08 AM
> > To: 'Tapestry users'
> > Subject: RE: Contrib Table Weirdness...
> >
> > I am giving it a list of "Supplier" objects (the Supplier class does
> have
> > a
> > "name" property).
> >
> > -----Original Message-----
> > From: Rui Pacheco [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 12, 2006 9:04 AM
> > To: Tapestry users
> > Subject: Re: Contrib Table Weirdness...
> >
> > It seems to be a problem with your model. What are you giving to your
> > table?
> >
> > On 7/12/06, James Carman <[EMAIL PROTECTED]> wrote:
> > >
> > > I am using a contrib table on one of my screens with no issues.  On
> > > another
> > > screen, where I'm doing exactly the same thing, when I try to access a
> > > property of one of the objects in the table model, I keep getting an
> > > "ognl.NoSuchPropertyException: java.lang.Integer.name"  Apparently,
> it's
> > > iterating through a bunch of Integers.  But why?  On my other page,
> I'm
> > > doing exactly the same thing and it prints out the name property just
> > > fine.
> > > Anyone seen this before?
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Cumprimentos,
> > Rui Pacheco
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Cumprimentos,
> Rui Pacheco
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cumprimentos,
Rui Pacheco



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to