All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.wcfart.wcf.scroller.package.html Maven / Gradle / Ivy


	
Keeping the scroll position in the browser between requests.

Usage of this package

A jsp page typically consists of one or more HTML forms that contain WCF components like trees and tables. Some user actions like expanding a tree node or sorting a table column do support keeping the current scroll position.

WCF demo pages contain the necessary code. For new jsp pages take the following steps

  1. Include a reference to the scroller java script file (/wcf/scroller.js)
  2. Include the <wcf:scroller/> tag inside the HTML form that contains the components. This will generate additional hidden fields which are required by the java script code
For new request handlers that require keeping the position add the following function call to the handleRequest() method of your handler
  public void handleRequest(RequestContext context) {
    Scroller.enableScroller(context);
    ...
  }
This ensures that the browser will keep it's scroll position after the request is finished.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy