Friday, March 29, 2013

ADF: Scroll down to item on your page

I wanted to scroll down to a component in my page and first tried anchor which just did not work on mu input driven screen.

So I tried the af:scrollComponentIntoViewBehavior on my command link and it just worked.

<af:commandLink id="c_cert" text="certify" >
  <af:scrollComponentIntoViewBehavior componentId="sbc4" focus="true" subTargetId="content"/>

... long content

<af:selectBooleanCheckbox value="false" clientComponent="true" id="sbc4"/>

Note: don't do this with anchors on a non read only content page it just get messy

No comments:

Post a Comment