Mark, as has been said (and is always true): it depends ;)
I would go for # 2. I had the same situation put implemented #1, which turned out to be a bad choice because my app allows changing of the language, ie locale. As we all know GWT will download different files for different locales (and browsers) and thus when you change the locale during log in, you have to reload the complete app. This can be slow, confusing to user, bad for your app because you loose its state, etc.
So if that is an issue for you don't use #1 (which also would mean that loading in background is not possible). From my experience loading in background is not really necessary unless you have a gigantic app or dead-slow connection. In the former case consider code splitting...
Am 23.11.2011 00:45, schrieb Mark Wengranowski:
Im finishing my first GWT app and am about to implement the login page. I've been doing a lot of reading and wanted to get some opinions on different ways to go about doing it. The options I have found are the following: 1. Implement the login page into the main application and allow the user into the next section once they successfully login. 2. Have a separate GWT program for the login that redirects to the main program once the user successfully logs in 3. Modify the GWT main HTML page to a .jsp and use jsp to set the session variables and authenticate the user. After successfully logging in, the page will refresh and the line for the my programs GWT .js file is written to the page causing it to load. 4. Same as #3 but create a new jsp ad the default page and redirect to the normal GWT .html page for the program. Ideally i would like to have my GWT app loading in the background while the user is typing in their username and password. That way they won't have to wait for the program to load once they submit their credentials. Will any of these methods allow me to do this?
Thomas -- Intelligent Communication Software Vertriebs GmbH Firmensitz: Kistlerhof Str. 111, 81379 München Registergericht: Amtsgericht München, HRB 88283 Geschäftsführer: Albert Fuss -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
