2011-10-28 33 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

相關問題