code: public static void appendAutoScrollAssignment(FacesContext context,
              StringBuilder onClickValue, String formName)
      {
          appendAutoScrollAssignment(context, new ScriptContext(onClickValue,
                  false), formName);
      }
docs: Adds the hidden form input value assignment that is necessary for the autoscroll
  feature to an html link or button onclick attribute.