Any MVC / GWT experts out there? :-)

On 14 Juni, 14:09, Dalla <[email protected]> wrote:
> Hi all!
>
> I´ve been working pretty much with MVC in Struts 2, but it´s a pretty
> different story using MVC, so I have a question.
>
> From what I´ve read, It´s pretty much:
>
> On user input, View calls Controller.
> Controller updates Model.
> Model fires event, which is observed by the View. View updates based
> on fired events.
>
> I´m wondering if it´s possible for the View to update itself without
> breaking the MVC pattern?
>
> For example, let´s say that I have a composite Widget containing a
> FlexTable inside a scrollpanel, with a list of objects, showing just
> one or two properties for each object.
> When the user clicks on a row in the flex table, I want to show a
> dialog box containing all the details about the clicked object.
>
> In this case there would be no reason to update the model now would
> there? So there would be no reason to call the controller?
> Would it be OK to let my flex table implement the HasSelectionHandlers
> interface and have the widget implement SelectionHandler,
> telling the widget to show a dialog box when the SelectionEvent is
> fired?
>
> Or would this be breaking the MVC pattern?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to