Ah! Thank you for that link, I thought I read the documentation thoroughly but looks like I missed that page.
I have to admit when I read the FAQ it was a light bulb moment. WOW! Really amazing. I think the search results example illustrates it really well.
We have an event bus in our javascript system which works very similarly to the MVC way. However we don't have anything like PresenterWidgets, and now that I see how powerful they are I can really understand how decoupled you could make your UI's and how much logic you could eliminate due to this.
So then to pose another question/thought experiment: Let's say I have a presenter tree, which is presenting some XML structure in tree form. Let's also assume that there are 3 users "viewing" this tree in different browser windows (Collaboratively). Say user 1 drag-drop re-orders the tree. This, in itself does not cause the tree to save, but this state should be propagated to the other users applications.
What would be the best way to accomplish this?
On our current system we use web sockets and we hold an in memory version of the data (model) server side. When this version changes the server broadcasts events to all of the specific clients via the web sockets causing the views to update.
I see the potential for the same system to work in GWTP but it would be nice to understand better.
Thanks,
Casey
On Wed, Aug 15, 2012 at 9:34 AM, regnoult axel
<regn...@gmail.com> wrote:
Hi Casey,
Personnally, I am also a kind of beginner, I can just give you some links that maybe will help you :
PW vs Widget :
MVP (a complete example)
If I am not doing a mistake, I will answer :
- If you need to code a complex widget (communicate with the database etc...) => use a presenter widget (you will have a better organisation of your code)
- MVP is better way than MVC to architecturate you code (advocated by Google, cf you tube: "RAY RYAN in google IO 2009" )
Good luck,
++
--
--
Casey Jordan
easyDITA a product of Jorsek LLC
"CaseyDJordan" on LinkedIn, Twitter & Facebook
(585) 348 7399easydita.comThis message is intended only for the use of the Addressee(s) and may
contain information that is privileged, confidential, and/or exempt from
disclosure under applicable law. If you are not the intended recipient,
please be advised that any disclosure copying, distribution, or use of
the information contained herein is prohibited. If you have received
this communication in error, please destroy all copies of the message,
whether in electronic or hard copy format, as well as attachments, and
immediately contact the sender by replying to this e-mail or by phone.
Thank you.