javax.el.PropertyNotFoundException with CompositeComponent?

穿精又带淫゛_ 提交于 2019-12-01 09:43:10
BalusC

There are two problems:

First, the composite method-signature which you've definied

<composite:attribute name="mappingMethod" method-signature="java.lang.String action()" />

doesn't match with the real method signature

public String mapSendInfoSingleRecord(ActionEvent event) 

Second, the actionListener methods should return void not String.

I assume that you just want a action method, you should then change the real method signature to get rid of the ActionEvent argument:

public String mapSendInfoSingleRecord() 

As to actionListener vs action, you may find this question/answer useful: Differences between action and actionListener.

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