JSF Combine ui:param with composite component

我们两清 提交于 2019-12-04 10:53:36

After many days of try&error I found a solution that is working for me:

I splitted up the listener method to one parameter with the JAVA class and one parameter with the the method name (as simple String)

The action method now looks like:

<a4j:jsFunction name="performSelection" action="#{cc.attrs.listenerClass[cc.attrs.listenerMethodName]}" />

Not nice but working... Perhaps it helps someone - or anybody can explain more...

By the way, the following was not working for me:

<a4j:jsFunction name="performSelection" action="#{cc.attrs.listenerClass[staticMethodName]}" />

While this was ok...

<a4j:jsFunction name="performSelection" action="#{cc.attrs.listenerClass.staticMethodName()}" />

Don't know - perhaps my head is running agains the same wall again and again...

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