2011-10-28 36 views

回答

3

您需要将其声明为<cc:facet>,并使其为<cc:renderFacet>

<cc:interface> 
    <cc:facet name="foo" /> 
</cc:interface> 
<cc:implementation> 
    <cc:renderFacet name="foo" /> 
</cc:implementation> 

这样你就可以使用<f:facet>指定它:

<my:composite> 
    <f:facet name="foo"> 
     <p>Some <strong>HTML</strong> markup.</p> 
    </f:facet> 
</my:composite> 
+0

谢谢你,BalusC。总结:Facet旨在为渲染提供文字内容,而属性仅仅是函数参数? – jpullmann

+0

这是正确的。 – BalusC

相关问题