logon.page
来自「Enjoy Web Dev With Tapestry 一书的源代码」· PAGE 代码 · 共 26 行
PAGE
26 行
<?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="org.apache.struts.webapp.example.Logon">
<component id="errors" type="Delegator">
<binding name="delegate" value="beans.delegate.firstError"/>
</component>
<component id="form" type="Form">
<binding name="listener" value="listener:onSubmit"/>
<binding name="delegate" value="beans.delegate"/>
<binding name="clientValidationEnabled" value="true"/>
</component>
<component id="username" type="TextField">
<binding name="value" value="username"/>
<binding name="validators" value="validators:required"/>
<binding name="displayName" value="message:username"/>
</component>
<component id="password" type="TextField">
<binding name="hidden" value="true"/>
<binding name="value" value="password"/>
<binding name="validators" value="validators:required,minLength=3,maxLength=18"/>
<binding name="displayName" value="message:password"/>
</component>
</page-specification>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?