尝试在手风琴中更新 Primefaces 图表
我正在尝试刷新位于手风琴选项卡中的 Prime 面孔图表。当我单击按钮进行更新时,它仅更新当前打开的选项卡中的图表???
我正在使用 Primefaces 3.0
<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>
I am trying to refresh Prime faces charts which reside in tabs on an accordion. When I click the button to update it only updates the chart which is in the currently open tab???
I am using Primefaces 3.0
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
我通过将属性dynamic=“true”添加到手风琴标签来解决这个问题。
I resolved this by adding the attribute dynamic="true" to the accordian tag.