I want to create a composite component which adds some common meta data to views, like:
<viewController:metadata controller="orderController"/> the component:
<composite:interface> <composite:attribute name="controller" /> </composite:interface> <composite:implementation> <f:metadata> <f:viewParam name="id" value="#{cc.attrs.controller.id}" /> <f:event type="preRenderView" listener="#{cc.attrs.controller.initConversation}" /> </f:metadata> </composite:implementation> i do similar things to add a button bar to all views and it works fine, but it seems its not possible with f:metadata.
Am i right or is there something wrong with my code?
thanks