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

📄 list_jsp.xdt

📁 this is for appfuse1.8 source using strut 1.x, spring and hibernate.
💻 XDT
字号:
<XDtTagDef:tagDef namespace="Form" handler="org.example.antbook.xdoclet.FormTagsHandler"/><%@ include file="/common/taglibs.jsp"%><f:view><f:loadBundle var="text" basename="#{userList.bundleName}"/><title><fmt:message key="<XDtForm:classNameLower/>List.title"/></title><content tag="heading"><fmt:message key="<XDtForm:classNameLower/>List.heading"/></content><h:form id="edit<XDtForm:className/>"><c:set var="buttons">    <h:commandButton value="#{text['button.add']}" action="add" id="add"         immediate="true" styleClass="button"/>    <button type="button" onclick="location.href='<c:url value="/mainMenu.html" />'">        <fmt:message key="button.cancel"/>    </button></c:set><c:out value="${buttons}" escapeXml="false"/><%-- Use a non-displayed dataTable to pull <XDtForm:classNameLower/>List into request --%><h:dataTable var="<XDtForm:classNameLower/>" value="#{<XDtForm:classNameLower/>List.<XDtForm:classNameLower/>s}" style="display:none"/><display:table name="${<XDtForm:classNameLower/>List.<XDtForm:classNameLower/>s}" cellspacing="0" cellpadding="0"    id="<XDtForm:classNameLower/>s" pagesize="25" styleClass="list"     export="true" requestURI=""><XDtMethod:forAllMethods>  <XDtMethod:ifHasMethodTag tagName="hibernate.id">    <display:column sort="true" titleKey="<XDtForm:classNameLower/>.<XDtMethod:propertyName/>" media="html">        <a href="javascript:view<XDtForm:className/>('<c:out value="${<XDtForm:classNameLower/>s.<XDtMethod:propertyName/>}"/>')"><c:out value="${<XDtForm:classNameLower/>s.<XDtMethod:propertyName/>}"/></a>    </display:column>    <display:column property="<XDtMethod:propertyName/>" media="csv excel xml pdf" titleKey="<XDtForm:classNameLower/>.<XDtMethod:propertyName/>"/>  </XDtMethod:ifHasMethodTag>  <XDtMethod:ifHasMethodTag tagName="hibernate.property">    <display:column property="<XDtMethod:propertyName/>" titleKey="<XDtForm:classNameLower/>.<XDtMethod:propertyName/>" sort="true"/>  </XDtMethod:ifHasMethodTag>  </XDtMethod:forAllMethods>    <display:setProperty name="paging.banner.item_name" value="<XDtForm:classNameLower/>"/>    <display:setProperty name="paging.banner.items_name" value="<XDtForm:classNameLower/>s"/></display:table><c:out value="${buttons}" escapeXml="false"/><h:commandLink action="#{<XDtForm:classNameLower/>Form.edit}" id="edit<XDtForm:className/>Link">    <f:param name="<XDtMethodEx:idField getType="propertyName"/>"/></h:commandLink><script type="text/javascript">function view<XDtForm:className/>(<XDtMethodEx:idField getType="propertyName"/>) {    var f = document.forms['edit<XDtForm:className/>'];    f.elements['edit<XDtForm:className/>:_link_hidden_'].value='edit<XDtForm:className/>:edit<XDtForm:className/>Link';    f.elements['<XDtMethodEx:idField getType="propertyName"/>'].value=<XDtMethodEx:idField getType="propertyName"/>;    f.submit();}highlightTableRows("<XDtForm:classNameLower/>s");</script></h:form></f:view> 

⌨️ 快捷键说明

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