尝试在手风琴中更新 Primefaces 图表

发布于 2024-12-26 04:47:33 字数 814 浏览 1 评论 0原文

我正在尝试刷新位于手风琴选项卡中的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅紫色的梦幻 2025-01-02 04:47:33

我通过将属性dynamic=“true”添加到手风琴标签来解决这个问题。

I resolved this by adding the attribute dynamic="true" to the accordian tag.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文