Jsf 2 尝试在accordion中更新Primefaces图表
我正在尝试刷新驻留在手风琴选项卡中的素数面图表。当我点击按钮进行更新时,它只会更新当前打开选项卡中的图表 我正在使用PrimeFaces3.0Jsf 2 尝试在accordion中更新Primefaces图表,jsf-2,primefaces,Jsf 2,Primefaces,我正在尝试刷新驻留在手风琴选项卡中的素数面图表。当我点击按钮进行更新时,它只会更新当前打开选项卡中的图表 我正在使用PrimeFaces3.0 <h:form id="content"> <p:accordionPanel style="margin-top: 30px; background-color: white;"> <p:tab title="Microsite and Multibrand"> &
<h:form id="content">
<p:accordionPanel style="margin-top: 30px; background-color: white;">
<p:tab title="Microsite and Multibrand">
<p:lineChart id="dropoffChart1" value="#{gvBean.dropoffChart1.chart}"/>
</p:tab>
<p:tab title="Microsite and Multibrand">
<p:lineChart id="dropoffChart2" value="#{gvBean.dropoffChart2.chart}"/>
</p:tab>
</p:accordionPanel>
<p:commandLink actionListener="#{gVController.day}" update="content" title="day">
<h:graphicImage styleClass="timeSetButton" value="day.png"/>
</p:commandLink>
</h:form>
我通过在accordian标记中添加属性dynamic=“true”解决了这个问题。我也遇到了同样的问题。你是如何解决这个问题的?