You need to declare a <cc:actionSource>
in the composite interface with the "event name" in name
(e.g. actionEvent
, this is fully arbitrary to your choice) and the client IDs of those command links space separated in the targets
.
<cc:interface>
<cc:actionSource name="actionEvent" targets="textLink imgLink" />
</cc:interface>
Then you can use in the client:
<f:setPropertyActionListener for="actionEvent" ... />
Don't forget to remove <ui:insert>
. This is indeed definitely not the right way.