【发布时间】:2012-08-28 09:09:41
【问题描述】:
我有rich:popupPanel,它在t:dataTable 的一列下包含t:dataList。这个 dataList 有 h:commandLink 里面有 f:param 。它在richfaces 3.3 上运行良好,但在迁移到richfaces 4 后,它停止工作。提到我在那里使用rich:modalPanel 代替rich:popupPanel 的事实。我浏览了很多链接:
https://community.jboss.org/thread/202583
commandButton/commandLink/ajax action/listener method not invoked or input value not updated
但没有帮助 :(。我错过了什么吗?目前,bean 是会话范围的,我正在使用 getter 来获取数据模型,因为我无法将它放入构造函数中。
如果有人对此有想法,请告诉我。
PS:渲染的 HTML 等效项如下所示。它具有请求参数 varPath,但在支持 bean 中我们将其设为 null。
<a onclick="return myfaces.oam.submitForm('actionForm','actionForm:j_id0',null, [['varPath','/Link']]);" href="#" tabindex="-1" accesskey="">/Link</a>
【问题讨论】:
-
您能给我们提供一个更详细的代码示例吗?包含弹出面板和 dataList 的页面会很有帮助
-
谢谢。通过将表单的 encType 更改为“application/x-www-form-urlencoded”解决了问题。不知道它是如何工作的!
标签: jsf-2 richfaces commandlink