Thx
The Problem about Scheduled command is that i loose test ability - one main 
reason i use MVP (want to test the P without GWTTestCase).

But the Question is how to design such DAO's - i guess that's where i am 
failing at the moment. My current DAO is firing events - not usable in 
activities start method without ScheduledCommand. But i also have DAO's 
that uses delegates to signal "data is ready". But how to godd/best 
integrate/design such DAO's in a gwt/mvp/a&p app? (and probably how to 
cut/split good services for them?)

On Wednesday, 25 April 2012 10:49:29 UTC+2, Thomas Broyer wrote:
>
>
> On Wednesday, April 25, 2012 8:07:00 AM UTC+2, tanteanni wrote:
>>
>> for example a showUserPlace and a EditUserPlace. Or in general there are 
>> often more than one usecase per "model". And if i want a distinct url per 
>> use case i need different places. This cases could probably solved by let 
>> one "userActivity" manage two presenters (edit and show user). But then i 
>> have the same issue- how to "inject" the synchronized model from activity 
>> in presenter.
>> But at the moment the problem is not that two activities. Now i have a 
>> very complicated logic on the model so i decided to put this logic out of 
>> activity/presenter (ui handling logic). here is the same problem how to let 
>> the activity interact with a model. (i linked the concrete problem above - 
>> for short: if used events i have the problem to register for an event and 
>> trigger an event(asking the model) all in start method seem to fail)
>>
>
> For the "data" thing, I think you simply need a "DAO" on the client-side 
> doing some caching.
>
> As for the events, call your getData() in a ScheduledCommand (use either 
> scheduleFinally or scheduleDeferred).
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LnZ1uXlyx8MJ.
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