home.page

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

PAGE
36
字号
<?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 class="com.ttdev.dynamicforms.Home">
	<component id="error" type="Delegator">
		<binding name="delegate" value="beans.delegate.firstError"/>
	</component>
	<component id="form" type="Form">
		<binding name="delegate" value="beans.delegate"/>
	</component>
	<component id="userList" type="For">
		<binding name="source" value="users"/>
		<binding name="value" value="currentUser"/>
		<binding name="element" value="literal:tr"/>
		<binding name="converter" value="converter"/>
	</component>
	<component id="userName" type="TextField">
		<binding name="value" value="currentUser.name"/>
		<binding name="validators" value="validators:required"/>
		<binding name="displayName" value="literal:User name"/>
	</component>
	<component id="userNameLabel" type="FieldLabel">
		<binding name="field" value="component:userName"/>
	</component>
	<component id="password" type="TextField">
		<binding name="value" value="currentUser.password"/>
		<binding name="hidden" value="true"/>
	</component>
	<component id="delete" type="Checkbox">
		<binding name="selected" value="toDeleteUser"/>
	</component>    
	<component id="updateUser" type="InvokeListener">
		<binding name="listener" value="listener:updateUser"/>
	</component>
</page-specification>

⌨️ 快捷键说明

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