Thursday, March 12, 2015

Re: MVP Pattern Without History Mechanism?

I'm agree on the fact that this could be shame to do not have history support in your app .

Just have a little look at 

http://www.gwtproject.org/javadoc/latest/com/google/web/bindery/autobean/shared/AutoBean.html

or 

https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/JSON/stringify

Use "Autobean" , or a more direct implementation using a javascript object and  "JSON.stringify" , to serialize your data to json .

Pass the result as a parameter in the url ( http://mysite.com?myDatasAsJson={............} .)

Optionaly hash the value of the param to avoid your users to plainly read the passed value ( http://mysite.com?myDatasAsJson=

http://en.wikipedia.org/wiki/Hash_function




Le mercredi 11 mars 2015 08:26:01 UTC+1, Abdullah a écrit :
Hi,
  Is any Impact Implementing MVP Pattern Without History Mechanism?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment