<decorator:head />
插入原始頁面(被包裝頁面)的head標簽中的內(nèi)容(不包括head標簽本身)。
<decorator:body />
插入原始頁面(被包裝頁面)的body標簽中的內(nèi)容。
<decorator:title [ default="..." ] />
插入原始頁面(被包裝頁面)的title標簽中的內(nèi)容,還可以添加一個缺省值。
<decorator:getProperty property="..." [ default="..." ] [ writeEntireProperty="..." ]/>
在標簽處插入原始頁面(被包裝頁面)的原有的標簽的屬性中的內(nèi)容,還可以添加一個缺省值。
sitemesh文檔中的例子很好理解:
The decorator: <body bgcolor="white"<decorator:getProperty property="body.onload" writeEntireProperty="true" />>
The undecorated page: <body onload="document.someform.somefield.focus();">
The decorated page: <body bgcolor="white" onload="document.someform.somefield.focus();">
writeEntireProperty="true"表示插入為"屬性=值"并會在插入內(nèi)容前加入一個空格。
<page:applyDecorator name="..." [ page="..." title="..." ] >
<page:param name="..."> ... </page:param>
<page:param name="..."> ... </page:param>
</page:applyDecorator>
應用包裝器到指定的頁面上,一般用于被包裝頁面中主動應用包裝器
















這樣在包裝page頁面的時候,會載入被panel包裝的date頁面,并且可以把myEmail參數(shù)傳遞給包裝頁面panel,而包裝panel通過
<decorator:getProperty property="myEmail"></decorator:getProperty>標簽接收myEmail參數(shù)。