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
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.