I have a couple questions about the best way to organize my code when it comes to nested data.
For instance, let's I have a Contact class, to use the common example, which has a name, an email address and a phone number. Now to edit this, I can make a ContactEditor, which will have a ContactEditorView and a ContactEditorPresenter. The view has three text fields for each of the three fields, an update button and a cancel button. The presenter hooks ups to the HasClickHandlers exposed by the view and updates the model or cancels depending on which button is pressed. Simple enough so far. Now let's say I want a re-orderable list of editable contacts in one view. I want to be able to reuse the existing functionality of my previously defined ContactEditor (View and Presenter). Would I create a ContactListEditorView which has a list of ContactEditorViews and a ContactListEditorPresenter that has an associated list of ContactEditorPresenters? Is that correct in the MVP sense, or am I totally missing something? Thanks, Brian -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
