My apologies. I am reposting this without the distracting pseudo-formatting.

I created my own PageExpiredErrorPage. There is a button that is supposed to take the user to the login page so they can log in (just like the button on the default page-expired error page). /
/
When the user first opens the web site, they see a log in page with URL
/http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1/.
<http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1.>
Default PageExpiredErrorPage behavior
After there is a page timeout and the /default /page-expired error page opens, the "Return to home page" button on the default page expired error page reports URL /
http://mydomain.com/rems/wicket//.

When the user selects that button they go to the login page with address /
http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?0
/and it goes to the home page as expected/desired when the user logs in./

/My custom page-expired error page behavior/
/After there is a page timeout and the /custom /page-expired error page opens, the "Return to home page" button on the default page expired error page reports URL /
//http://mydomain.com/rems/wicket//

When the user selects that button they go to the login page with address
/http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.REMSPageExpiredPage#../..
/and it hangs when the user logs in/./

custom page-expired error page HTML

   <body>
   <h3>Page Expired</h3>
   <p>The page you requested has expired.</p>
   <p><a wicket:id="homeLink">Return to home page</a></p>
   </body>


Java:

   public class MyPageExpiredPage extends WebPage
   {
      public MyPageExpiredPage()
      {
        super();

        // link for home page btn
        // WebPage#homePageLink returns a BookmarkablePageLink
        add( homePageLink("homeLink"));
      }
   }



Reply via email to