Hi, Everyone I start to work on my app which has requirement to have some kind of action buffer in the client side. All the actions will push to this buffer and make request to server every 2 or 3 seconds. Basically it is doing batching. So it should be a good use case to use command pattern to achieve this. My question is if I am not using RPC but RequestBuilder, what should I achieve this? And for batching, there are different ways: 1) I can communicate with the server every 5 actions, for example 2) or I can communicate with server every 2 seconds. Can I do both with the command pattern?
Thanks! On Aug 14, 4:34 pm, plcoirier <[email protected]> wrote: > > One question though: > > > "The first line creates a Java class thanks to the configuration file > > and a Generator." > > "For example, with the following configuration file:" > > > How is that class generated from the configuration file? (Sorry to ask > > if it's obvious.) > > Will the argument of the generated Command always be named "form"? Can > > it be changed? > > I answered these questions here (http://groups.google.com/group/mvp4g/ > browse_thread/thread/d8ee207598bf02fa) > > > > > "<event type="displayMessage" calledMethod="onDisplayMessage" > > handlers="rootPresenter" eventObjectClass="java.lang.String" />" > > > Isn't "displayMessage" and "onDisplayMessage" redundant? I, for one, > > wouldn't mind simply: > > > "<event type="displayMessage" handlers="rootPresenter" > > eventObjectClass="java.lang.String" />" > > > and expect "onDisplayMessage" to be called automatically (ie. event > > "click" fires onClick()) > > Good idea, I created an issue to make the calledMethod optional. > > > > > Other than that, +1! It sure got my attention. > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
