Tuesday, October 25, 2011

Re: Editor not flush values of subeditors

Thomas, thanks for the fast responce. I will see if this is causing the error.
 
AddressWidget implements AddressView and Editor for AddressProxy, you say that the AddressView must be extend Editor?


Now, one design question. 

I love MVP, this pattern is very powerfull but, with Activities and Place some thing are dificult.

Activities are for when you need navigation, but if want each view has a Presenter, I thought the following:
  
   One interface Presenter for each View, where "View" delegate the logic in the presenter implementation.
   Now, presenter is not Activity. When I need navigation, I make a Activity that inject the presenter and delegate in this the logic of View.

   I want keep separate in the best forms the concepts of view and presenter, but I want to know if inject the presenter in view is ok.
  The presenter have a method called onCreate(T) where T is a View. That method is called when View is initialized after make UiBinder interface.
  In the onCreate(T) I inicialize the editor driver, etc.

  When I precise a Activity, in the start method I obtain the view, by example, with AsyncProvider, how the View inject Presenter, the Activity delegate logic to Presenter.

 I started think this for nested complex widget, for example, load Employees associated with bank accounts, where the Widgets for list of selection and creation bank account is a widget that delegate logic in a presenter that is not Activity.
 But, i can use this widget alone in other view where is necesary one Activity.

  All this is fine or I've gone crazy? 

  Sorry for my english.

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2011/10/25 Thomas Broyer <t.broyer@gmail.com>
AddressView (which is the type used in TerceroEditor) extends neither Editor nor IsEditor, so the "address" property isn't edited.

Did I miss something in your code? (I only looked at TerceroNewEditorPresenter, TerceroEditor and AddressView)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment