home.page

来自「Enjoy Web Dev With Tapestry 一书的源代码」· PAGE 代码 · 共 31 行

PAGE
31
字号
<?xml version="1.0"?>
<!DOCTYPE page-specification PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
<page-specification>
	<component id="customerList" type="For">
		<binding name="source" value="customerList"/>
		<binding name="value" value="currentCustomer"/>
		<binding name="element" value="literal:tr"/>
	</component>
	<component id="customerId" type="Insert">
		<binding name="value" value="currentCustomer.customerId"/>
	</component>
	<component id="name" type="Insert">
		<binding name="value" value="currentCustomer.name"/>
	</component>
	<component id="address" type="Insert">
		<binding name="value" value="currentCustomer.address"/>
	</component>
	<component id="edit" type="DirectLink">
		<binding name="listener" value="listener:onEdit"/>
		<binding name="parameters" value="currentCustomer.id"/>
	</component>
	<component id="add" type="PageLink">
		<binding name="page" value="literal:CustomerPage"/>
	</component>
	<component id="delete" type="DirectLink">
		<binding name="listener" value="listener:onDelete"/>
		<binding name="parameters" value="currentCustomer.id"/>
	</component>
</page-specification>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?