当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 引用:http://www.javaworld.com/java
 

 

    摘要:隐藏某列:this.treelistuser.columns[3].visibleindex = -1; 绑定:将数据源指定到一个临时表 this.treelistuser.datasource = dtuserinfo; this.treelistuser.populatecolumns();不允许编辑,设为只读: dtuserinfo.columns[0].readonly = true; ......
    摘要:1、 知道事件触发顺序的重要性和必要性 实现一项功能通常要做两件事:a)首先要知道在哪里控制;b)其次要知道如何控制。 然而,很多情况下都是我们已经知道怎么去控制,但不知道控制点选在哪里。这主要是因为我们对组件事件的触发顺序搞不清楚。 2、 要深刻理解tclientdataset的两个重要属性:data、delta 3、 要深刻理解并区分开tfield的4个重要属性:value、ol......


tiles-struts

引用:http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html

【程序编程相关:DOM4J 使用简介(转)

【推荐阅读:使用属性和反射过渡从数据存取层到业务物件

【扩展信息:Socket编程之Connect超时

advertisement

ypically during web application development, the user interface (ui) group creates the site´s look and feel. based on that look and feel, the group creates html pages that represent the application´s functionality and navigation. with a servlets and javaserver pages (jsps)-based implementation, where html pages are converted into servlets and jsps, ui developers identify common html and jsp view components, such as header, footer, body, menu, and search. this article presents various solutions to effectively and efficiently organize html and jsp view components. i evaluate each solution using specific criteria, such as page number, code repetition, and layout control.

to explore templating and layout solutions, we will use the tiles framework. the tiles framework´s view components are known as tiles. the framework uses an xml configuration file to organize those tiles. this framework not only enables you to reuse tiles, but also the layouts that organize them.

to explore the more powerful and flexible solutions, we will investigate the synergy between the tiles and struts frameworks. struts is an open source framework for developing web applications using the popular model-view-controller (mvc) or model 2 architectural pattern. struts comes with a large set of reusable tags for which the tiles tag library makes an excellent enhancement.

evaluation criteria

i will evaluate each solution based on the criteria below. the criteria are not mutually exclusive. for a specific situation and particular application, you must always balance between the strengths and weaknesses of each solution with respect to these factors.

page number

a solution should strive to minimize the number of html and jsp pages. as the page number increases, the complexity of developing, managing, and maintaining an application increases drastically.

code repetition

under most circumstances, repetition is bad. the more repeated html and jsp code, the more difficult it is to develop and maintain an application. a simple change can result in a cascade of changes in many different pages with unpredictable consequences. a concrete and practical way of attaining reuse is to avoid code repetition.

layout control

while code repetition is bad, repetition of layout logic and code can be worse. spreading the logic and behavior of view component organization over several jsps can be a recipe for disaster. attaining reuse of templating and layout logic is a better form of reuse than only reusing view components. thus, you can achieve a higher level of reuse with effective layout control.

coupling

coupling is the degree of interactivity between entities. software engineers are taught again and again to minimize coupling between unrelated classes, packages, and so on. we can apply the same principle to view components. even though there are distinct view components from a user perspective, in the jsp implementation, the components might be intricately coupled. a solution should reduce coupling between unrelated view components.

complexity


...   下一页
    摘要:题外话:前几日笔者的“一个javafans的质疑和忧虑”得到诸位的热烈捧场,非常感谢!该文题为“质疑和忧虑”,自然是源于笔者学习过程中产生的焦虑情绪。故而期待诸位高手的真知灼见,以澄清思想,坚定信念。其实笔者本身主要从事维护工作,编程不过是业余爱好,再加上是半路出家,所以感谢诸位高人对笔者技术上的指难,错误的地方敬请斧正,只是希望不要罗列一大排重复的......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE