Editors with 2 forms

30 views
Skip to first unread message

Cristian Rinaldi

unread,
Jan 25, 2012, 10:58:32 PM1/25/12
to google-we...@googlegroups.com
I have a registration form for a person with addresses, but the directions will open in another form.
For each form I have an associated activity.
When I load an address (FormB), I need the person (FormA).
And in the form of the person, I need to go carrying the list of addresses.
As a link with editors, the data from this forms?.

Thanks.

Cristian Rinaldi

unread,
Jan 26, 2012, 8:29:22 AM1/26/12
to google-we...@googlegroups.com
I explain more my previous question, 
I have a EntityBaseView and your UiBinder EntityBaseWidget implementation.
Your presenter is one Activity called EntityBaseActivity and exist one proxy called EntityBaseproxy where show the few methods:


EntityBaseproxy
-------------------------------------------
String getName();
void setName(String);
.....
.....
List<AddressProxy> getAddressList();
void setAddressList(List<AddressProxy>);
....

------------------------------------------
The EntityBaseWidget implements EntityBaseView, Editor<EntityBaseProxy>{
....
....

------------------------------------------
Next I have a AddressView and your UiBinder implementation AddressWidget, with Activity and Proxys respectively.

The AddressWidget implements AddressView, Editor<AddressProxy>{
....
....
------------------------------------------
Some methods of my AddressProxy are:
 
String getStreet();
void setStreet();

EntityBaseProxy getEntityBase();
void setEntityBase(EntityBaseProxy entityBase);
-----------------------------------------


Some few explanations of the workflow:
In the EntityBaseWidget exist one button that call the NewAddressProxy, then the AddressActivity is started. In the AddressWidget I insert all Address in your property respectively.

If EntityBaseWidget have your list of Address(property), how link this property with list loaded in the AddressWidget?

I do not know how to model the composition of editors.

Cristian Rinaldi

unread,
Jan 26, 2012, 8:41:35 PM1/26/12
to google-we...@googlegroups.com
Any idea over the problem?, all examples that I view, the sub-editors are just Widgets without one Activity, and the principal widget is also a Editor that is managed by your Activity or Presenter.

My principal problem is that my two Widgets are managed by your Activities, but the Widgets are dependent.

EntityBaseWidget is the principal widgets that have a logical list of Address, not a widget which represents a AddressList as a CellWidget or AddressEditor in the same page to to charge the list , only have a link to the new place ( NewAddressPlace ).
This place resulting in starting of Activity for Address and the initializations of AddressView respectively, that is a Editor in itself.
The Address entity need the EntityBase entity to be stored, but EntityBase not yet been saved, the idea is to link addresses charged in AddressView with the logical list in EntityBaseWidget
ie, that in some way by Editors can link each address charged with EntityBaseWidget logical address list.

1) I do not know whether to put a AddressWidget as sub-editor in EntityBaseWidget, but the beginning of AddressWidget is not the classic, is with the start method of an activity.

2) or in any way possible, share the editor context between views, and the worflow in EntityBaseWidget in combination with EntityCaseActivity handle the saving of everything (Address and EntityBase).


thanks
Reply all
Reply to author
Forward
0 new messages