⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form_html.xdt

📁 spring struts hibernate
💻 XDT
字号:
<XDtTagDef:tagDef namespace="Form" handler="org.example.antbook.xdoclet.FormTagsHandler"/><title><span key="<XDtForm:classNameLower/>Detail.title"/></title>
<content tag="heading"><span key="<XDtForm:classNameLower/>Detail.heading"/></content>

<body jwcid="@Body">

<!-- Error Messages -->
<span jwcid="@Conditional" condition="ognl:beans.delegate.hasErrors">
	<div class="error">
        <img jwcid="@Any" src="ognl:engine.contextPath+'/images/iconWarning.gif'"
                alt="message:icon.warning" class="icon" />
	    <span jwcid="@Delegator" delegate="ognl:beans.delegate.firstError" raw="true">
	        Error Message
	    </span>
	</div>
</span>

<!-- Success Messages -->
<span jwcid="@Conditional" condition="ognl:message != null">
    <div class="message">
        <img jwcid="@Any" src="ognl:engine.contextPath+'/images/iconInformation.gif'"
                alt="message:icon.information" class="icon" />
        <span jwcid="@Insert" value="ognl:message" raw="true"/>
    </div>
</span>

<form jwcid="<XDtForm:classNameLower/>Form@Form" delegate="ognl:beans.delegate" id="<XDtForm:classNameLower/>Form">
<table class="detail">
<XDtForm:forAllFields>
<XDtForm:ifIsIdOrVersionField>
<input type="hidden" jwcid="@Hidden" value="ognl:<XDtForm:classNameLower/>.<XDtForm:fieldName/>"/>
</XDtForm:ifIsIdOrVersionField>
<XDtForm:ifIsNotIdOrVersionField>
    <tr>
        <th>
            <label jwcid="@FieldLabel" field="ognl:components.<XDtForm:fieldName/>Field"/>
        </th>
        <td>
            <input jwcid="<XDtForm:fieldName/>Field" type="text" id="<XDtForm:fieldName/>"/>
        </td>
    </tr>
</XDtForm:ifIsNotIdOrVersionField>
</XDtForm:forAllFields>
    <tr>
        <td></td>
        <td class="buttonBar">
            <input type="submit" class="button" jwcid="@Submit" value="message:button.save" id="save" listener="ognl:listeners.save"/>
          <span jwcid="@contrib:FormConditional" condition="ognl:<XDtForm:classNameLower/>.<XDtMethodEx:idField getType="propertyName"/> != null">
            <input type="submit" class="button" jwcid="@Submit" value="message:button.delete" id="delete" listener="ognl:listeners.delete"
                onclick="form.onsubmit = null; return confirmDelete('<XDtForm:className/>')"/>
          </span>
            <input type="submit" class="button" jwcid="@Submit" value="message:button.cancel" id="cancel" listener="ognl:listeners.cancel"
                onclick="form.onsubmit = null"/>
        </td>
    </tr>
</table>
</form>

<script type="text/javascript">
	Form.focusFirstElement(document.forms["<XDtForm:classNameLower/>Form"]);
</script>

</body>

⌨️ 快捷键说明

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