📄 form_jsp.xdt
字号:
<XDtTagDef:tagDef namespace="Form" handler="org.example.antbook.xdoclet.FormTagsHandler"/><%@ include file="/common/taglibs.jsp"%>
<title><fmt:message key="<XDtForm:classNameLower/>Detail.title"/></title>
<content tag="heading"><fmt:message key="<XDtForm:classNameLower/>Detail.heading"/></content>
<ww:form name="<XDtForm:classNameLower/>Form" action="save<XDtForm:className/>" method="post" validate="true">
<XDtForm:forAllFields>
<XDtForm:ifIsIdOrVersionField>
<ww:hidden name="<XDtForm:classNameLower/>.<XDtForm:fieldName/>" value="%{<XDtForm:classNameLower/>.<XDtForm:fieldName/>}"/>
</XDtForm:ifIsIdOrVersionField>
<XDtForm:ifIsNotIdOrVersionField>
<ww:textfield label="%{getText('<XDtForm:classNameLower/>.<XDtForm:fieldName/>')}" name="<XDtForm:classNameLower/>.<XDtForm:fieldName/>"
value="%{<XDtForm:classNameLower/>.<XDtForm:fieldName/>}" required="true"/>
</XDtForm:ifIsNotIdOrVersionField>
</XDtForm:forAllFields>
<tr>
<td></td>
<td class="buttonBar">
<input type="submit" class="button" name="save"
value="<fmt:message key="button.save"/>" />
<input type="submit" class="button" name="delete"
onclick="return confirmDelete('<XDtForm:className/>')"
value="<fmt:message key="button.delete"/>" />
<input type="submit" class="button" name="method:cancel"
value="<fmt:message key="button.cancel"/>" />
</td>
</tr>
</ww:form>
<script type="text/javascript">
Form.focusFirstElement(document.forms["<XDtForm:classNameLower/>Form"]);
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -