It makes sence only to keep deatahced objects. Read:
http://www.hibernate.org/hib_docs/v3/reference/en/html/objectstate.html#objectstate-detached

----- Original Message ----- 
From: "::SammyRulez::" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Monday, September 26, 2005 8:38 AM
Subject: Re: dataTable and hibernate


no I mean I use hibernate POJO to feed backing bean properties, but
there are "hibernate session linked objects" thath I wolud like to
keep. I don't think It wolud be a design problem isn't it?

2005/9/23, Julián García <[EMAIL PROTECTED]>:
> I would recommend not to use your bussines objects (hibernate POJO's) as
> backing beans. Use another bean that takes the properties from the POJO
> using a builder object. You would probably need to include other
> view-specific methods in your bean (listeners, etc) and thus using the
> same bussines objects is not a good approach.
>
> Julian
>
> ::SammyRulez:: wrote:
>
> >Hi all
> >
> >I'm trying to popolate a dataTable with a collection property managed
> >by Hibernate
> >
> > <h:dataTable var="rowUser" value="#{userHandler.group.users}" >
> >                <h:column>
> >                    <f:facet name="header">
> >                        <h:outputText value="User name"/>
> >                    </f:facet>
> >                    <h:outputText value="#{rowUser.username}"/>
> >                </h:column>
> >            </h:dataTable>
> >
> >at first it gave me an error saying that it cannot retrive "username
> >property" so i change to this
> >
> >  <h:outputText value="#{rowUser.class}"/>
> >
> >
> >and surprise: the var obj is a org.hibernate.collection.PersistentSet
> >!!! I fear that myfaces do not recognize PersistentSet  as a
> >collection or suitable vallue for the datatable.
> >
> >
> >--
> >::SammyRulez::
> >http://sammyprojectz.blogspot.com
> >
> >
> >
>
>
>


--
::SammyRulez::
http://sammyprojectz.blogspot.com

Reply via email to