`
studyworks
  • 浏览: 16706 次
  • 性别: Icon_minigender_1
  • 来自: 西安
最近访客 更多访客>>
社区版块
存档分类
最新评论

Altered ecside(updated at 2009-2-1)

    博客分类:
  • java
阅读更多

 

功能和外观和fins的ecside差不多,  最大的不同是:

分页、查询等操作是 在页面中(tag)进行的,而不是在controller中进行,有些callback的味道.

 

这样做最大的优点在于web层代码非常简单,

 在spring mvc中:

//创建FilterList(一个用于收集查询条件的类)的帮助方法,并将DataProvider(用于在列表标签中查询数据)存储在ModelMap中。
FilterList newFilterList(Class<?> entityClass, ModelMap mm){
	FilterList fl = new FilterList();
	DataProvider dp = new DefaultDataProvider(entityClass, this.sessionFacotry, fl);
	mm.addAttribute("dataProvider", dp);
	return fl;
}
@RequestMapping("/topics/index.do")
public void index(ModelMap mm){
       //添加查询条件
	this.newFilterList(Topic.class, mm).lt("createdAt", new Date()).desc("createdAt").join("user");
       //设置mappingItem功能所需的Map
	mm.addAttribute("topicTypeMap", this.getTopicTypeMap());
}

  在其他框架中用HttpServletRequest替换ModelMap即可!

 

 

页面代码:

 

<ec:table action="${pageContext.request.contextPath}/topics/index.do" 
				formId="checked_docs" exportFileName="主题列表" height="200px">
	<ec:column width="30" property="title" title="标题" filterType="like"/>
	<ec:column width="20" property="user.name" title="作者" filterType="like"/>
	<ec:column width="20" property="type" title="类型" mappingItem="${topicTypeMap }" filterType="="/>
	<ec:column width="30" property="createdAt" title="发表时间" sortable="true" filterType="btw"/>
</ec:table> 

 

 

 

分享到:
评论
1 楼 wuhui 2008-12-30  
辛苦了 期待你的新版本

相关推荐

    MS-DOS 5.0

    If you use an AT&T 6300 computer, contact AT&T to upgrade your ROM BIOS to version 1.21 or later. The ROM BIOS version number is displayed when you start your computer. 2.14 LANtastic -------------- ...

    OCP考试资料-OCP-19c-082.docx

    1. **Oracle数据库中的节省空间功能** - A. 使用UNUSABLE属性创建的索引并没有消除其物理存储,即仍然有分段存在。实际上,UNUSABLE属性只是标记索引为不可用,但其占用的空间不会被回收。所以,这个选项是错误的。...

    BURNINTEST--硬件检测工具

    - Updated Level 2 and Level 3 CPU cache information for newer Intel CPU's. - Updated the detection of Hyperthreading and the number of logical CPUs for a new Intel CPU. Release 5.3 build 1025 WIN32...

    IEradicator2001

    - Altered reboot timing to force reboot at the start to free-up system files v3.1 WOW! IEradicator now works with Windows 95, Windows 98, Windows 98 Second Edition (SE) and Windows Millennium!!!! NO...

    ramin 2.2 for xp

    can work on the remote computer just as if you were sitting right at it. The remote computer can be anywhere on the Internet or in your local network. You don't need a fast network connection. Even...

    ICS delphixe10源码版

    .\Samples\cpp\internet\cb2009 C++Builder 2009 projects .\Samples\cpp\internet\cb2010 C++Builder 2010 projects .\Samples\cpp\internet\cbXE C++Builder XE projects .\Samples\cpp\internet\cbXE2 C++Builder...

    rr-init:研究项目的初始化和组织遵循可重复的研究指南

    - doc/ # documentation for the study| +- paper/ # manuscript(s), whether generated or not||- data # raw and primary data, are not changed once created | |- raw/ # raw data, will not be altered|...

    EN 60601-1:2006+A11

    EN 60601-1:2006+A11:2011. It is identical to IEC 60601-1:2005. It supersedes BS EN 60601-1:2006, which will be withdrawn on 1 October 2014. The start and finish of text introduced or altered by ...

    Oracle 12c-ocm 题库 skillset2

    [oracle@edbjr2p1~]$ export ORACLE_SID=PROD1 [oracle@edbjr2p1~]$ rman target/catalog rman@prod4 RMAN&gt; register database; ``` 上述步骤将会把数据库注册进恢复目录,并执行一个完整的同步。完成注册后,...

    EurekaLog_7.5.0.0_Enterprise

    EurekaLog 7.3 Hotfix 1 (7.3.1.0), 2-October-2015 1)....Fixed: Long startup time on terminal services servers EurekaLog 7.3 (7.3.0.0), 24-September-2015 1)....Added: RAD Studio 10 Seattle support 2).....

    Sakemail

    retrieved and SendMessage is a boolean function (maybe someone has pressed the cancel btn).- Fixed a bug when the subject field is too large.9/2/981.5.1- Fixed a bug with a message within a message ...

    2d-altered-minecraft:这是我的第一个实际游戏。 准备好一个真正奇怪的,改变了的《我的世界》体验!

    然而,"2d-altered-minecraft"却为这个经典游戏带来了一个全新的视角——2D转变。这个项目似乎将《我的世界》的核心玩法移植到了二维空间,为玩家提供了一个截然不同的游戏体验。 首先,我们要讨论的是这个项目的...

    zencart 1.3.9h 英文版

    * BUGSFORUM-1565 - Fix problem with PayPal Express Checkout where shipping wasn't recalculated if shopping cart contents were altered midway through checkout. * BUGSFORUM-1566 - minor fix to error ...

    oracle恢复工具-FY_Recover_Data

    1 1 1 TNAME VARCHAR2(30) NOT NULL 2 2 2 TABTYPE VARCHAR2(7) 3 3 3 CLUSTERID NUMBER 要恢复这个表的数据, 首先要在AUL中运行SCAN EXTENT命令, 因为Segment Header被格式化了, 所以Extent Map也可能丢失, ...

    Backup_Exec_12_for_oracle_RAC安装-配置-应用

    SQL&gt; altersystem set log_archive_dest_1='LOCATION=/u01/app/oralog' scope=spfile; System altered. ``` - 上述命令中,`/u01/app/oralog`是用于存储归档日志的路径,可以根据实际情况进行调整。 2. **重启...

    Altered small world brain functional networks.pdf

    在研究文献《Altered small world brain functional networks.pdf》中,作者群包括Liang Wang、Chaozhe Zhu、Yong He、Yufeng Zang、Qing Jiu Cao、Han Zhang、Qiuhai Zhong以及Yufeng Wang,他们来自中国北京理工...

    Boundary Detection of Altered Region

    ##### 1. 图像篡改检测的重要性 - **背景与需求**:随着数字图像处理技术的进步,图像篡改变得日益普遍。这种篡改可能出于恶意目的,如伪造证据、误导公众等。因此,发展可靠的图像篡改检测技术对于维护信息安全、...

    oracle归档相关命令及常见问题.pdf

    2. `ALTER SYSTEM SET LOG_ARCHIVE_DEST='&lt;new_destination&gt;';` 3. `ALTER SYSTEM SET LOG_ARCHIVE_FORMAT='&lt;new_format&gt;' SCOPE=SPFILE;` **功能**: 1. 显示当前自动归档的目的地设置。 2. 修改自动归档的目的地。...

    google-java-format

    The formatter can act on whole files, on limited lines, on specific offsets, passing through to standard-out (default) or altered in-place. There is no configurability as to the formatter's algorithm...

Global site tag (gtag.js) - Google Analytics