Chained ListEditors

2013-11-10 Thread almagnit
I have multiple entities with a one-to-many relations, such as: A { List b; } B { List c; } C { some fields } I'm trying to edit these entities by the editors AEditor extends Editor { BListEditor b... } BListEditor implements IsEditor>{ BItemEditor implements Editor{ CListEditor c... }

Re: Chained ListEditors

2013-11-11 Thread almagnit
Flush results: http://pastebin.com/En8Ughnj Is obtained that the object B was added to the object A, and object C still remains in the array editedProxies понедельник, 11 ноября 2013 г., 3:47:05 UTC+4 пользователь almagnit написал: > > I have multiple entities with a one-to-many relations, such a

Re: Chained ListEditors

2013-11-12 Thread Thomas Broyer
>From the code you sent me by mail, the problem is that you're editing B with a 'null' c and then call listEditor.setValue(newList) as an attempt to assign B.c. This won't work. You have to assign a non-empty list to B.c *before* you edit it (i.e. just after the context.create(B.class), before y

Re: Chained ListEditors

2013-11-12 Thread almagnit
Big thanks Thomas You're absolutely right вторник, 12 ноября 2013 г., 13:43:31 UTC+4 пользователь Thomas Broyer написал: > > From the code you sent me by mail, the problem is that you're editing B > with a 'null' c and then call listEditor.setValue(newList) as an attempt to > assign B.c. This w