我要爲鏈接內容傳遞給我的標籤文件傳遞的內容作爲參數傳遞給標籤文件
<custom:link>
<f:param name="linkContent">
<h:graphicImage value="/images/img.gif" width="15" />
</f:param>
</custom:link>
我link.xhtml
:
<a4j:commandLink>
#{linkContent}
</a4j:commandLink>
我怎麼能archieve臨客的東西是什麼?該變種linkContent
保持空
請小心術語。這不是一個自定義組件,而是一個複合組件。另請參閱http://stackoverflow.com/questions/6822000/when-to-use-ui-include-tag-files-composite-components-and-or-custom-componen – BalusC 2012-02-28 11:55:31
現在它變成了一個標籤文件。我再次編輯了這個問題。 – BalusC 2012-02-28 14:17:17