javax.el.PropertyNotFoundException with CompositeComponent?

前端 未结 1 1332
轻奢々
轻奢々 2021-01-15 04:27

I\'m currently trying to build a composite component, and this is how i make use of my component :


Include it with xmlns:albert=\"http://java.sun.com/jsf

1条回答
  •  野的像风
    2021-01-15 04:30

    There are two problems:

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

    
    

    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.

    0 讨论(0)
提交回复
热议问题