我正在寻找类似RichFaces 4中的RichFaces,然后查找RichFaces 3,我还没有在文档化中找到类似的东西。只有<rich:modalPanel>不适合我的需要,因为它在表中显示数据模型时有问题。选择不起作用,它总是不返回选定的行。如果我将表组件放在<rich:panel>或<rich:togglePanel>中,那么它可以正常工作。
在<rich:modalPanel> 3中是否有不包括RichFaces的弹出窗口?
发布于 2013-12-03 14:39:16
我没有50的声誉来问你更多的细节在一个评论,所以我会直接回答,希望这是你的问题。
我认为您的意思是您的问题是ModalPanel的内容不会被动态地重命名。但为此,可以使用<a4j:outputPanel>将表(或要更新的组件)包装在ajaxRendered="true"中。
设置
ajaxRendered="true"将导致使用页面的每个Ajax响应更新<a4j:outputPanel>,即使请求组件没有显式列出。这反过来可以被任何请求组件上的特定属性覆盖。 Reference-Containers-a4joutputPanel
在我的代码中,我有如下内容:
<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>因此,每次打开timelineBean.doGenerateLog方法时,我的内容都会使用modalPanel方法的结果进行更新。
https://stackoverflow.com/questions/20348358
复制相似问题