Sunday, November 20, 2011

JDev/ADF sample - CLIENT_STATE_MAX_TOKENS = 1 for Browser Back Button Control

  • CLIENT_STATE_MAX_TOKENS = 1 for Browser Back Button Control. There is documented approach which allows to control web browser back button. This approach works for ADF 11g applications implemented with pages and ADF Task Flows based on pages (doesn't work with ADF fragments). The trick is to set org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS = 1. This means, ADF will preserve only one client token in memory, once user will press browser back button - this token will be lost. On the next user click - application will reset to its initial state, this will ensure predictable behavior.
    Download - BackButtonExpire.zip

No comments: