Sunday, June 3, 2012

Re: making Anchor look like a normal link

And opening a new window is when authentication comes into play.  The user hasn't logged into the new instance of the application (opened in the new window).  Hence we are back to the original problem.

With a regular web app, this wouldn't be a problem.  The state of whether the user is logged in is maintained on the server (in session variables).  In the case of GWT, the state of whether the user is logged is in maintained on the client.

On Friday, June 1, 2012 12:18:27 PM UTC-7, Joseph Lust wrote:
If you're using Activities and Places, you can have a link like http://www.yourApp.com/entryPoint.html#stateInfo=something 

The state information in the URL triggers the page to load to a specific point, the exact same as this Google Groups page does. That way, opening the link would open a new window and jump to the desired point in the application. Obviously however, only open a new page if you really need one, since the application will need to load again and it would be faster to just change to that state in the current open application window.

Sincerely,
Joseph

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