Disabling the Back button in Curam
First let me say this. DISABLING THE BACK BUTTON IS A NOT A GOOD IDEA. Especially for web applications as this is a button that helps people navigate through your web site quickly. However, if you really have to remove the functionality. You can use the simple approach of adding the following JavaScript in every single page:
history.forward()In current versions of Curam, they provide a facility for us to do this without actually modifying the CDEJ directly. First, make a copy of CuramCDEJ\lib\curam\xml\xsl\gen-page-header.xsl and put it somewhere in your components\custom folder. Then add:
<script type="text/javascript"><xsl:comment> history.forward(); //</xsl:comment></script>
just before
<table class="page-header" summary="">
Then do a clean build.
But just let me iterate one more time... DISABLING THE BACK BUTTON IS A NOT A GOOD IDEA.

0 comments:
Post a Comment