http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/canvas/client/Canvas.html#toDataUrl%28%29
Now for session you have 2 options:
1) You can transmit this data to your server in an http call, and then save that into a database or file - cookie will not work, as the image data will be too large for a cookie.
2) You can save the data in HTML5 local storage: https://developers.google.com/web-toolkit/doc/latest/DevGuideHtml5Storage
On Monday, January 7, 2013 4:57:27 PM UTC+2, membersound wrote:
Hi,--
I'm creating a canvas where the user can draw some elements himself.
Is it possible with GWT to preserve the user session somehow? And if he refreshes the browser, all his drawings should be still there / beeing recreated?
Coming from JSF I'd just use @SessionScoped, but how can this be done gwt, if ever?
Thanks
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/-/vluEHgKNfSkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment