最近发现,ExternalLink组件原来还可以这么用,通过绑定renderer,可以在page中定义新弹出页的属性。
<component id="viewDetails" type="ExternalLink">
<binding name="page" value="'admin/AdminViewStudentInfo'"/>
<binding name="parameters" value="components.rows.tableRow.userId"/>
<binding name="renderer" value="beans.popupLinkRenderer"/>
</component>
<bean name="popupLinkRenderer"
class="org.apache.tapestry.contrib.link.PopupLinkRenderer">
<set name="windowName" value="'StudentInfo'"/>
<set name="features"
value="'top=10,left=10,width=830,height=700,scrollbars=yes,resizable=yes'"/>
</bean>