I enter URL "http://<server ip>/awol"  which should direct to my
application's home page which is set to be MainPage.class:

My Application class sets the home page to be MainPage:

        public Class<? extends Page> getHomePage() {
                 return MainPage.class;
         }

         @Override
         protected Class<? extends WebPage> getSignInPageClass() {
                return HomePage.class;
        }

I used to check continueToOriginalDestination() return code and
setResponsePage(MainPage.class) if it is false.  But
continueToOriginalDestination() no longer returns a code.  Marcel suggested
that I would just call both one after another, as the following:

continueToOriginalDestination();
setResponsePage(new MainPage());

if continueToOriginalDestination() finds the originalDestination, it will
throw an exception to go on to that originalDestination.  The
setResponsePage() won't get called.

Is this what you were suggesting by "send your user to a default home page"? 
Other than this, is my code converting a Form to a StatelessForm looking all
right?  Thanks for your help!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/continueToOriginalDestination-issue-tp4661654p4661669.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to