选项卡视图中滚动面板上的PrimeFaces按钮

选项卡视图中滚动面板上的PrimeFaces按钮,primefaces,jsf-2.2,tabview,Primefaces,Jsf 2.2,Tabview,我在对话框中有视图: <p:scrollPanel style="height: 610px; width: 740px;"> <p:messages id="messages" showDetail="false" autoUpdate="false" closable="true" /> <p:tabView id="tabs"> <p:tab id="header" title="Ogólne">

我在对话框中有视图:

 <p:scrollPanel style="height: 610px; width: 740px;">
    <p:messages id="messages" showDetail="false" autoUpdate="false" closable="true" />
    <p:tabView id="tabs">
      <p:tab id="header" title="Ogólne">
        <ui:include src="Header.xhtml" />
      </p:tab>
      <p:tab id="source" title="Pomiary" >
        <ui:include src="Source.xhtml" />
      </p:tab>
    </p:tabView>
  </p:scrollPanel>

资料来源:

<h:panelGroup>
<p:scrollPanel style="height: 530px;">
  <p:panelGrid >
    <p:row>
      <p:column >
            <p:commandButton actionListener="#{huSourcesController.newAF()}" 
                             immediate="true" update="StudyForm-tabs-AFcoll"
                             oncomplete="PrimeFaces.focus('StudyForm-tabs-AFCollReapeat-#{huSourcesController.focusNewAF()}-AFinput');">
              <p:ajax process="StudyForm-tabs-AFcoll" partialSubmit="true" />
            </p:commandButton >
      </p:column>
    </p:row>
     ......
    <p:row>
      <p:column >
            <p:commandButton actionListener="#{huSourcesController.newGM()}" 
                             immediate="true" update="StudyForm-tabs-GMcoll"
                             oncomplete="PrimeFaces.focus('StudyForm-tabs-GMCollReapeat-#{huSourcesController.focusNewGM()}-GMinput');">
              <p:ajax process="StudyForm-tabs-GMcoll" partialSubmit="true" />
            </p:commandButton >
      </p:column>
    </p:row>
  </p:panelGrid> 
</p:scrollPanel>

......

当我点击顶部滚动面板上的一个按钮时,它工作正常,但当我向下滚动到在滚动并点击它之前看不到的按钮时,它会向上滚动,不会触发事件/动作。当我再次滚动到此按钮并再次单击时,它工作正常,但如果我单击了滚动前未在屏幕上看到的其他按钮,我必须再次双击此按钮以触发事件/操作。当我通过“source.xhtml”第一个选项卡时,它工作正常。为什么会这样?如何使其正常工作

我使用JSF 2.2和Primefaces 6.0解决方案:
将mode=“native”添加到secand选项卡中的ScrollPanel中。

谢谢。你救了我一天。