很长一段时间以来,我定义和使用了一个复合组件,如下所示:
<!-- simple -->
<composite:interface>
<composite:facet name="header"/>
</composite:interface>
<composite:implementation>
<composite:renderFacet name="header"/>
</composite:implementation>
<xyz:simple>
<f:facet name="header">
test
</f:facet>
</xyz:simple>
现在我想在另一个组件中重用它并将它的方面值传递给底层组件:
<!-- advanced -->
<composite:interface>
<composite:facet name="header"/>
</composite:interface>
<composite:implementation>
<!-- some stuff -->
<xyz:helper>
<composite:insertFacet name="header"/>
</xyz:helper>
</composite:implementation>
<xyz:advanced>
<f:facet name="header">
test 2
</f:facet>
</xyz:advanced>
我没有输出。有任何想法吗?