PDA

View Full Version : forwarding to new page


baksheen
04-05-2009, 06:37 AM
hi,

I am new to GWT. I have been going through some tutorials and some
other stuffs. But I could not find out
any thing regarding to open new different page. A Simple example is
Login screen. Once the user successfully
logged in, it should be able to open new page and should show his name
like Welcome username.

need to use to use form.setAction
("newpage"); Because it has to bring the values from login page to
newpage.
when I used form.setAction("newpage") I got the the runtime error
saying newpage-gwt.xml could not find in classpath. So my doubt is,
for each page
do I need to create the each module?

thanks
bhanu lakshmi

jpnet
04-07-2009, 02:09 PM
That's not typically how it works... What you do is remove the login dialog and then show the new layout/widgets if the login is successful. You communicate with the server via Ajax. The URL of your application never changes.

-JP