[英]Richfaces <a4j:ajax> and <rich:popupPanel> “conflict”
[英]Equivalent of RichFaces 4 <rich:popupPanel> for RichFaces 3
我在RichFaces 4中正在寻找类似<rich:popupPanel>
东西,但是在RichFaces 3中却正在寻找东西。我没有在文档中找到类似的东西。 只有<rich:modalPanel>
不符合我的需要,因为它在表中显示我的数据模型时遇到问题。 选择不起作用,它始终不返回选择的行。 如果我将表组件放在<rich:panel>
或<rich:togglePanel>
,则它可以正常工作。
RichFaces 3中是否有除<rich:modalPanel>
之外的任何弹出窗口?
我没有50的声誉可以在评论中询问您更多详细信息,因此我将直接回答,希望这是您所要的。
我认为您的意思是您的问题是ModalPanel的内容没有动态重新呈现。 但是为此,您可以使用ajaxRendered="true"
将表(或要更新的组件)包装在<a4j:outputPanel>
设置
ajaxRendered="true"
会导致<a4j:outputPanel>
随页面的每个Ajax响应而更新,即使请求组件未明确列出。 反过来,这可以由任何发出请求的组件上的特定属性覆盖。
在我的代码中,我有类似以下内容:
<a4j:commandLink id="timelineBtn" action="#{timelineBean.doGenerateLog}"
oncomplete="Richfaces.showModalPanel('timelinePnl');return false;"
value="#{labels['timeline.button.lbl']}"/>
打开modalPanel:
<rich:modalPanel style="width:800;height:600;" id="timelinePnl">
<a4j:outputPanel id="dataPanel" ajaxRendered="true">
<!-- your components to be updated go here -->
</a4j:outputPanel>
</rich:modalPanel>
因此,每次打开modalPanel时,我的内容都会用timelineBean.doGenerateLog
方法的结果进行更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.