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

I created my own PageExpiredErrorPage with a button that says "Return to home page" and goes to the home page. Since we're using authorization the user first goes to the login page so they can log in before going to the home page. (That is how the button on the default page-expired error page works.)

When the user first opens the web site, whether with the default or the custom page-expired page, they see a log in page with URL http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1.

Here is how the default PageExpiredErrorPage works:
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.

Here is how my custom page-expired error page works:
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.

My 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"));
      }
    }





On 8/28/2011 6:58 AM, Martin Grigorov wrote:
I can't really understand the question/problem
The formatting is distracting and I miss the point :-/

On Fri, Aug 26, 2011 at 11:40 PM, Bruno Borges<[email protected]>  wrote:
But still, why isn't Scott's case working?


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Fri, Aug 26, 2011 at 5:12 PM, Martin Grigorov<[email protected]>wrote:

for 1.6 - yes, I think. unless we find it useful for something

On Fri, Aug 26, 2011 at 6:54 PM, Igor Vaynberg<[email protected]>
wrote:
can we remove it then?

-igor

On Fri, Aug 26, 2011 at 8:19 AM, Martin Grigorov<[email protected]>
wrote:
actually #isErrorPage() is not used in current 1.5, so WIA is correct

On Fri, Aug 26, 2011 at 6:15 PM, Scott Reed<[email protected]>  wrote:
Thanks, Bruno. I added isErrorPage() just in case. The docs just say
"This
can help the framework prevent infinite failure loops." That's also not
mentioned in Wicket in Action which says "creating an error page is no
different than creating a normal page."
  Scott

On 8/26/2011 9:15 AM, Bruno Borges wrote:
I think you must set your page as error page.

Make that change and try again.

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Fri, Aug 26, 2011 at 1:27 AM, Scott Reed<[email protected]>
  wrote:
A created my own PageExpiredErrorPage. There is a button that is
supposed
to take the user to the login page so they can log in (similar to 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/
.
<
http://192.168.33.20:9002/**rems/wicket/wicket/**bookmarkable/com.mni.**
SignInPage?1<
http://192.168.33.20:9002/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//<
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<
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//<
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#..**/<
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>
   <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"));
      }
   }

I would very much appreciate any assistance with this.
  Scott


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




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


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




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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





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

Reply via email to