Thanks for your suggestion. MVP is a closer approach, but it is still suitable because it has a model. In my case, building a model may be unnecessary or doesn't work. For example, I don't think it makes sense to build a model only for the buttons. (Assuming my application is just showing the changing of button's state) and more fatal issue is that the model concept of MVP stands for an instant state at a specific moment actually, but my application requires recording the state change or the event sequence. It's similar with FSM model which can't be described by this model in MVP or MVC.
On 1月20日, 下午11时26分, Alexander <[email protected]> wrote: > Had you read about MVP? > > 2010/1/20 [email protected] <[email protected]> > > > > > > > Hi, > > Recently I am researching the MVC in GWT and meet a problem. According > > to my understanding, in essentially, the benefits of MVC are 1) > > decouple the viewer and model 2) make the widgets coordinating each > > other. And the second point is very important to my application. So my > > question is how to make several of widgets work well in a panel when > > there is no abstracted model under these widgets. For example, one of > > a simple case is how to implement this functionality of making one > > button becoming grayed if detecting a specific button is clicked by > > twice. > > > In fact, it's a typical FSM problem, what we should do is building the > > FSM rules and executing the FSM to update the view/widgets. so, there > > is no MVC model instead it is the viewer and FSM based controller > > model. Does any one meet the same problem or have the same solution? > > > Thanks > > Yu > > > -- > > 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]<google-web-toolkit%2Bunsubs > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Regards, > Alexander
-- 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.
