just a simple best-practise question.
We are using GWT 2.1, mappers, activities and views. Everything works nicely.
But sometimes we want to use activities (aka presenters) and views
without a mapper. We could switch from an activity back to good old
presenter and a custom view interface that exposes eg. "Widget
asWidget()" or so.
But we could also stick to activities and their start(...) method. Of
course the activity would not be managed and would have no life cycle.
On the other hand it would be only a single programming model and we
would not need to define our own view interface.
Does anybody have an advice how to handle that "best"?
Thanks!
Cheers,
Raphael
That was misleading. Sorry. I meant our own "presenter" interface (aka
activity). Nonetheless you answered my question correctly :)
>
>> Does anybody have an advice how to handle that "best"?
>
> If you go with the "Activity model", developers will expect their life-
> cycle to be respected, which means adding tests that your "container"
> is not breaking it.
> If you don't use Activity, it'll be clear for the developer that the
> life-cycle is different.
>
> Other than the life-cycle though, I can't find any difference between
> the two approaches.
Okay. thanks a lot for that answer Thomas. I think we are using the
notion of using GWTs activities even if they are not lifecycle managed
for the sake of simplicity.
Cheers,
Raphael
>
> --
> 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-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>