【问题标题】:Conditional re-rendering inside rich popup panel在丰富的弹出面板中进行条件重新渲染
【发布时间】:2014-02-28 06:14:23
【问题描述】:

我正在使用包含搜索条件和搜索结果的富面孔弹出面板。我需要在单击搜索按钮时呈现搜索结果。我正在使用<a4j:commandButton> 搜索按钮,单击该按钮时不会呈现结果。

<a4j:commandButton id="popupSearchButton" action="#{riskAreaSearchBean.search}" styleClass="saveAsDraft" immediate="true" execute="areaPopupSearch" value="#{riskLabel['customs.common.search']}" render="addAreaPopupPanel" />

“addAreaPopupPanel”是我的弹出面板ID

【问题讨论】:

  • 尝试不使用immediate="true" execute="areaPopupSearch"。如果有效,请添加其中之一并检查结果。

标签: jsf richfaces ajax4jsf


【解决方案1】:

如果您的 addAreaPopupPanel 在单击您的搜索按钮之前已将渲染属性设置为 false,则无法在 DOM 树中找到它。将其包含在 h:panelGrouph:paneGrid 中,它们将始终存在于 DOM 中并呈现该 panelGroup 或 panelGrid。

*删除immediate=true,因为它会跳过更新模态值阶段。

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2011-06-11
    • 2012-02-24
    • 2012-11-17
    • 2011-06-14
    • 1970-01-01
    • 1970-01-01
    • 2012-12-20
    • 1970-01-01
    • 2016-10-08
    相关资源
    最近更新 更多