kuk*_*kis 1 jsf richfaces popuppanel
我正在寻找类似于<rich:popupPanel>RichFaces 4的东西,但后来是RichFaces 3.我没有在文档中找到任何东西.只有<rich:modalPanel>哪个不适合我的需求,因为它在表格中显示我的数据模型时遇到问题.选择不起作用,它始终不返回任何行.如果我把我的表组件放入<rich:panel>或<rich:togglePanel>,那么它工作正常.
<rich:modalPanel>在RichFaces 3中是否有任何弹出窗口?
我没有50个声望在评论中向您询问更多详细信息,因此我将直接回答希望这是您所询问的内容.
我认为你的意思是你的问题是ModalPanel的内容没有动态重新呈现.但为此你可以将你的表(或你想要更新的组件)包装<a4j:outputPanel>在一起ajaxRendered="true"
设置
ajaxRendered="true"将导致<a4j:outputPanel>使用页面的每个Ajax响应更新,即使请求组件未明确列出.这可以反过来被任何请求组件上的特定属性覆盖.
在我的代码中,我有类似的东西:
<a4j:commandLink id="timelineBtn" action="#{timelineBean.doGenerateLog}"
oncomplete="Richfaces.showModalPanel('timelinePnl');return false;"
value="#{labels['timeline.button.lbl']}"/>
Run Code Online (Sandbox Code Playgroud)
打开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>
Run Code Online (Sandbox Code Playgroud)
因此,timelineBean.doGenerateLog每次打开modalPanel时,我的方法结果都会更新我的内容.
| 归档时间: |
|
| 查看次数: |
837 次 |
| 最近记录: |