摘要: java struts项目中的struts配置 阅读全文
posted @ 2011-05-02 16:38 来自非洲大草原的食人虎 阅读(126) 评论(0) 推荐(0) 编辑
摘要: You use the Response to send data back to the clientThe most common methods you'll call on the response object(HttpServletResponse) are setContentType() and getWriter()Be careful-many developers assume the method is getPrintWriter(),but it's getWriter()The getWriter() method lets you do char 阅读全文
posted @ 2011-04-01 15:31 来自非洲大草原的食人虎 阅读(262) 评论(0) 推荐(0) 编辑
摘要: The HttpServlet's doGet() and doPost() methods take an HttpServletRequest and an HttpServletResponse.The service() method determines whether doGet() or doPost() runs base on the HTTP Method(GET,POST,etc.) of the HTTP request.POST requests have a body;GET requests do not,althogh GET requests can 阅读全文
posted @ 2011-03-31 18:09 来自非洲大草原的食人虎 阅读(218) 评论(0) 推荐(0) 编辑
摘要: The Container initializes a servlet by loading the class,invoking the servlet's no-arg constructor,and calling the servelt's init() method.The init() method (which the developer can override) is called only once in a servlet's life,and always before the servlet can service any client 阅读全文
posted @ 2011-03-31 17:53 来自非洲大草原的食人虎 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Expected Outcome When Using Classical Inheritance the goal of implementing classical inheritance is to have objects created by one constructor Child() get properties that come from another constructor Parent(). Here's an example of defining the two constructors Parent() and Child(): 阅读全文
posted @ 2011-03-27 18:58 来自非洲大草原的食人虎 阅读(363) 评论(2) 推荐(0) 编辑
摘要: 首先看下这getTarget个函数的源码, google了一下在该函数的作用 在事件传播路径上查找满足指定选择条件的元素Ext.lib.Event = function() { //... var pub={ //... getTarget : function(ev) { ev = ev.browserEvent || ev; return this.resolveTextNode(ev.target || ev.srcElement); }, resolveTextNode : Ext.isGecko ? function(node){ if(!node){ return; } 阅读全文
posted @ 2011-03-17 17:19 来自非洲大草原的食人虎 阅读(3700) 评论(0) 推荐(0) 编辑
摘要: 提供一个页面中所有组件的一个注册表( Ext.Component 的实例,或者任何子类),这样可以通过 component id 方便此访问它们 此对象也提供了可用Componentclasses的一个注册表 ,以便于记忆的字符串为key,叫做Component的 xtype. xtype . 当创建一个完整的、包含配置项的对象时,它为一个完全使用Ext的页面 提供了一种避免实例化子组件方法。子组件可以被简单指定为一个配置对象 ,只要指定正确的xtype ,这样当Component需要渲染时, 可以找到正确的类型进行懒初始化。 阅读全文
posted @ 2011-03-16 17:34 来自非洲大草原的食人虎 阅读(2003) 评论(1) 推荐(1) 编辑
摘要: 在早期的互联网时期,Netscape和Microsoft考虑采用两种截然不同方式来驱动事件流。在Netscape模式中,事件流从document body一直向下回溯至事件源,称之为事件捕获。在Microsoft模式中,称之为事件冒泡,同事件捕获截元然相反,事件从事件源一直向上冒泡直至document对象,当某种类型的节点被点击时候document对象执行一个默认的行为。谢天谢地,W3C组织整合这两种模式,也就目前我们正在使用之中。 绝大部分时间你都会处理DOM事件,你将会担心事件冒泡。 阅读全文
posted @ 2011-03-15 18:07 来自非洲大草原的食人虎 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 以下是摘自 Extjs in action 一书的 3.3 The Coponent Life CycleExt Components,just like everything in the real world,have a life cycle where they are created,used and destoryed. The lifecycle is broken up into three major phases:initialization,render and destruction as displayed 阅读全文
posted @ 2011-03-15 10:55 来自非洲大草原的食人虎 阅读(1190) 评论(2) 推荐(0) 编辑
摘要: Ext.DataView 一种使用定制的模板布局和格式展示数据的机制。 DataView使用一个Ext.XTemplate作为其内部的模板机制, 并被绑定到一个Ext.data.Store, 这样当store中的数据发生变化时视图将自动同步以反应变化。 视图也内建了对许多可能发生的通用事件的处理,包含项目被单击、双击、鼠标滑过、鼠标移出等等, 同时也有一个内建的选择模型(selection model)。 为了使用这些特性,必须为DataView提供一个itemSelector配置项, 用来决定与哪个节点配合使用。 阅读全文
posted @ 2011-03-11 14:59 来自非洲大草原的食人虎 阅读(5639) 评论(0) 推荐(0) 编辑