我正在使用Java 1.8.0_162和PrimeFaces 6.2.3进行小型系统。
我有一个带有“view”id的tabView和一个widgetVar“tabView”
当我点击搜索按钮时,我得到一些引用jQuery的错误,并说“tabView未定义”
Here we can see the button that you press and the errors that it throws to the right.
用于该按钮的代码是:
<p:commandButton id="calcular" action="#{filtroAnalisisMacro.calculoOperaciones}" title="Efectuar cálculo" icon="ui-icon-search" update="datos" oncomplete="tabView.select(0)"/>
按钮的目的是激活tabView并查看第一个标签。
<p:tabView style="width: 1200px" id="vista" widgetVar="tabView">
<p:tab title="Gráfica" >
...
</p:tab>
<p:tab id="detalle" title="Detalle">
...
</p:tab>
</p:tabView>
从这里我不能继续,有什么建议吗?提前谢谢。