on wicket's continueToOriginalDestination() method -
what link between backbutton , continuetooriginaldestination(). method. how keep url saved continuetooriginaldestination() method while clcking browsers button.
continuetooriginaldestination()
used when request (temporarily) redirected intercepting page, example login page. when user requests secured page not yet authenticated, security framework hooks wicket (auth-roles, shiro, swarm/wasp) present user login page, , store original url. when user has authenticated, can call continuetooriginaldestination
, wicket process original request, displaying requested secured page.
not security frameworks can use this, can throwing restartresponseatinterceptpage
exception.
the button has nothing this, nor have affect on processing of original destination page. wicket keeps storing original destination until new 1 set, or until continuetooriginaldestination
has been called.
continuetooriginaldestination
returns true
when there page go to, , false
when user landed on intercept page directly (e.g. guessing login page url or clicking on link pointing login page).
Comments
Post a Comment