2013-10-09 29 views
0

我正在使用JDeveloper 11.1.1.7.0。如何設置ADF中的滾動條位置

我有兩個面板jsff片段。 左側面板包含鏈接,右側面板將顯示取決於左側面板上單擊的鏈接的數據。

左側面板中的鏈接使用迭代器呈現,並且此迭代器位於panelGroupLayout中,其中layout =「scroll」。

當我向下滾動到左側面板的末端並單擊鏈接時,右側面板中的內容加載正常,但左側面板的滾動條重置爲頂部。這樣我無法在左側面板中看到選定的鏈接。

有沒有辦法將滾動條固定在同一位置?

<af:panelGroupLayout id="pgl3" layout="horizontal" valign="top" inlineStyle="height:200px;" styleClass="AFStretchWidth"> 
    <af:panelGroupLayout layout="scroll" halign="left" id="pgl4" inlineStyle="width:100px;" 
     partialTriggers="i1:cl1"> 
     <af:iterator value="#{pageFlowScope.headerBean.links}" id="i1" var="link"> 
      <af:commandLink actionListener="#{pageFlowScope.headerBean.linkCliked}" id="cl1" inlineStyle="border: solid 1px black;" 
          partialSubmit="true"> 
       <af:outputText value="#{link}" id="ot6" 
           styleClass="selectedLinkStyle" 
           rendered="#{pageFlowScope.headerBean.selectedLink}"/> 
       <af:outputText value="#{link}" id="ot7" 
           styleClass="unselectedLinkStyle" 
           rendered="#{not pageFlowScope.headerBean.selectedLink}"/> 
       <f:attribute name="selectedLinkName" 
             value="#{link}"/> 
      </af:commandLink> 
     </af:iterator> 
    </af:panelGroupLayout> 
    <af:panelGroupLayout layout="vertical" styleClass="AFStretchWidth" halign="right" 
         id="pgl5" inlineStyle="border: solid 1px black;height:200px;" 
         partialTriggers="i1:cl1"> 
     <af:outputText value="#{pageFlowScope.headerBean.linkData} id="ot5"/> 
    </af:panelGroupLayout> 
</af:panelGroupLayout> 

回答

0

嘗試刪除pgl4的partialTriggers屬性 或考慮使用Active Data

0

您也可以使用scrollComponentIntoViewBehavior描述in here但這是12C

一項新功能