Thanks, this example works now.
The problem is it simply lists the entities linked by the one-to-many
relationship.
What I want to do is add/edit entities... for example, a shuffle-list where
the user can choose several entities from a list of the 'many' to associate
with the 'one'.



Mike Horwitz wrote:
> 
> You need to uncomment the OpenSessionInViewFilter in web.xml along with
> its
> associated filter-mapping.
> 
> Mike.
> 
> On 10/17/07, George.Francis <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hmm, this sample doesnt seem to take into account the Hibernate bindings
>> (i.e. the Grid class isnt annotated).  I get the following error:
>>
>> org.hibernate.LazyInitializationException: failed to lazily initialize a
>> collection of role: com.ism.ismid.model.Application.operations, no
>> session
>> or session was closed
>>        at
>>
>> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException
>> (AbstractPersistentCollection.java:358)
>>        at
>>
>> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected
>> (AbstractPersistentCollection.java:350)
>>        at
>> org.hibernate.collection.AbstractPersistentCollection.initialize(
>> AbstractPersistentCollection.java:343)
>>        at
>> org.hibernate.collection.AbstractPersistentCollection.read(
>> AbstractPersistentCollection.java:86)
>>        at org.hibernate.collection.PersistentBag.iterator(
>> PersistentBag.java:249)
>>        at
>>
>> org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator
>>
>> Any hints?
>>
>>
>>
>> Mike Horwitz wrote:
>> >
>> > This is one of the more popular:
>> > http://mattfleming.com/node/134
>> >
>> > Mike
>> >
>> > On 10/16/07, George.Francis <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi,
>> >> Can someone please point me to a good reference for implementing a jsp
>> to
>> >> edit entries in a ManyToOne join table between by beans?
>> >> Cheers,
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Spring-MVC-form-for-JoinTable-tf4636094s2369.html#a13240212
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Spring-MVC-form-for-JoinTable-tf4636094s2369.html#a13264203
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Spring-MVC-form-for-JoinTable-tf4636094s2369.html#a13276064
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to