如何设置在自动进稿器滚动条位置

问题描述 投票:0回答:2

我使用JDeveloper 11.1.1.7.0。

我已经jsff片段与两个面板。左侧面板包含链接,右侧面板将显示数据取决于链接左侧面板上点击。

在左侧板链接使用迭代渲染和此迭代是panelGroupLayout居住与布局=“滚动”。

当我向下滚动到左侧面板的末尾,点击链接,然后在右侧面板中的内容加载正常,但左侧面板中的滚动条被重置到顶部。所以,我无法看到在左侧面板中选定的链接。

是否有办法解决在同一位置滚动条?

<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>
oracle-adf jdeveloper
2个回答
0
投票

尝试删除pgl4的partialTriggers属性或考虑使用Active Data


0
投票

您也可以使用scrollComponentIntoViewBehavior描述in here但这是12C的一个新功能

© www.soinside.com 2019 - 2024. All rights reserved.