📄 formtest-disabled.jsp
字号:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><%@ taglib uri="webwork" prefix="webwork" %><%@ taglib uri="webwork" prefix="ui" %><link rel="stylesheet" type="text/css" href="../template/xhtml/styles.css" title="Style"/><head><title><webwork:text name="'title'"/></title></head><body><h1><webwork:text name="'title'">Form test</webwork:text> - DISABLED/READONLY controls</h1><p align="center"><form action="<webwork:url page="formtest.disabled.action"/>" method="POST"><table width="350" border="0" cellpadding="3" cellspacing="0"> <ui:textfield label="text('user_name')" name="'user'" disabled="true" readonly="true"/> <ui:password label="text('password')" name="'password'" size="10" maxlength="15" disabled="true"/> <webwork:action name="'AgeList'" id="agelist"/> <ui:select label="'Age'" name="'age'" list="@agelist/ages" disabled="true"/> <webwork:bean name="'webwork.util.Counter'" id="year"> <webwork:param name="'first'" value="text('firstBirthYear')"/> <webwork:param name="'last'" value="2000"/> <ui:combobox label="'Birth year'" size="6" maxlength="4" name="'birthYear'" list="@year" disabled="true"/> </webwork:bean> <webwork:action name="'BookList'" id="booklist"/> <ui:select label="'Book'" name="'auth'" list="@booklist/books" listKey="'author'" listValue="'title'" disabled="true"/> <webwork:action name="'CountryMap'" id="countrymap"/> <ui:component label="'Country'" name="'country'" template="selectgroupmap.jsp"> <webwork:param name="'list'" value="@countrymap/countries"/> <webwork:param name="'groupKey'" value="'key'"/> <webwork:param name="'groupList'" value="'value'"/> <webwork:param name="'listKey'" value="'key'"/> <webwork:param name="'listValue'" value="'value'"/> <webwork:param name="'disabled'" value="true"/> </ui:component> <webwork:action name="'GenderMap'" id="genders"/> <ui:radio label="'Gender'" name="'male'" list="@genders/genders" disabled="true"/> <ui:textarea label="'Comments'" name="'comments'" cols="30" rows="8" disabled="true"/> <ui:checkbox label="'Check here to receive additional information. You must use a very long string of text to test the wrapping appearance of the checkbox label.'" name="'additionalInfo'" fieldValue="'true'" disabled="true"/> <tr><td colspan="2" align="center"> <input type="submit" value="Update"/> </td></tr></table></form></p><i>Note:</i><br/><p>Most form elements are generated by custom tags. These are merely wrappers ("syntactic sugar") for included JSP files which you can call directly instead if you want to. Some form elements do not havetag counterparts and thus demonstrate this technique.</p><p>Also note that some form elements have matching "bean" tags to provide the values.</p><p>This page use the standard templates, so the JSP's are taken from /template/xhtml. Use the 'template="blah"' attribute on the form tags to use JSP's from /template/blah instead (a.k.a. "skinning").</p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -