How to pass dynamic parameter to backing bean using EL 2.2 method expression? [duplicate]

一曲冷凌霜 提交于 2019-12-06 11:11:57
BalusC

It's illegal to nest EL expressions #{}. Just remove the nested expression.

<h:commandLink action="#{search.showUrls(urlresult)}" value=" x" />

Also, as you're using this in a <h:dataTable>, in order to get it to work properly, make sure that the #{search} bean is in the view scope, or if it really needs to be request scoped, make sure that you're preserving the #{search.searchResults_sites_urls} during bean's initialization.

See also:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!