Thursday, August 2, 2012

Re: How can we save state of a GWT page?

Hi Taylor,
 
Using hashes as tokens for managing history is already implemented in our application.But the requirement is once this application is closed on 2nd screen, then when user comes back to acess the app he should be directed to 2nd screen with values he selected when he left. It should not be like he has to again go through first screen.He should direct go to 2nd screen.Therefore, the last selected values(data) for that user should be saved so tat if he bookmark the url and come back again, he should see the same screen with selected values that he selected before.
Thanks,
Rubina

On Mon, Jul 30, 2012 at 9:17 AM, Taylor Mathewson <taylor.mathewson@gmail.com> wrote:
Hi Rubina,


GWT can store state in url using hashes, e.g. http://myserver.com/myapp#myplace:state, and this is bookmarkable.

Hope this helps,
Taylor


On Wednesday, July 25, 2012 8:14:20 AM UTC-4, Rubina wrote:

Hi All,

 

We have one requirement to implement in GWT application. Below example will clear the requirement –

 

There are 3 screens in application. Suppose, user is on 2nd screen after moving from 1st screen to 2nd screen. When user clicks on Next button on first screen, then some RPC call is executed and fetch data from some external database. This data is used to display on 2nd screen. Now user bookmarks the browser URL (2nd screen) and closes the browser window.

 

Next time, now user directly wants to navigate to the 2nd screen without repeating the work done on 1st screen. We want to store the state of 2nd screen somehow on browser. If this screen launches, all Next and Previous button should also work properly.

 

Is this requirement achievable, if yes then which GWT APIs provides this feature? Please advice.

--
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/-/_QMfnGXFXDAJ.

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.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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