« Return to Thread: ManyToMany Custom Look

Re: ManyToMany Custom Look

by Alejandro Scandroli-2 :: Rate this Message:

Reply to Author | View in Thread

Hi Again

On Wed, Dec 17, 2008 at 1:47 AM, ghachey <ghachey@...> wrote:
>
> (...)
>
> Your suggestion did work (as long at parent object is persisted of course).

Of course, I forgot about that. The parent object must be persisted.
Add this to the newlink disabled="ognl:page.modelNew" so the link is
disabled if the object is not persisted.

> You probably won't be surprised however that once added, the member (Person
> object) cannot be deleted.  This is not a major problem in this particular
> case as I try to get the client to keep those records of members but flag
> them inactive when they leave the Society.  However, there would be case
> where the ability to delete those records would be desirable.  But now its
> my turn to struggle for the answer for some time :-)
>

Yeap, I know. Deletion is tricky. It's not easy to find a good
deletion strategy that fits every use case scenario.
In your case I would implement a method to take care of the "member"
deletion directly from the Person edit page and then add a "delete"
link to the ObjectTable.

Chears!
Alejandro

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: ManyToMany Custom Look