原创 ExtJs組件 Panel
一:如果在Store中定義了storeId 那麼在panel中可以用如下方法的到store, Ext.data.StoreManager.lookup('storeId') 二:cell格式化顯示 columns: [ {
原创 ExtJS4 筆記(Form)
Ext.create('Ext.form.Panel', { renderTo: Ext.getBody(), title: 'User Form', height: 130, width: 280,
原创 GWT下載
if( RootPanel.get("downloadiframe") != null ) { Widget widgetFrame = (Widget)RootPanel.get("downl
原创 ExtJs Panel拖動代碼
Panel居中的辦法 panel.el.center();
原创 最大公約數最優算法
/**** *輾轉相除法,也叫歐幾里得算法 在大數的時候很高效 */ public static int gcd(int m, int n){ m = m<0?-m:m; n = n<0?-n:n;
原创 ExtJs4.1筆記
1 : ExtJs4.1之前的老版本,想要定義一個自己的class 常常需要這麼做: Ext.ns('My.cool');//定義namespace My.cool.Window = Ext.extend(Ext.Window, {
原创 DataGrid顯示行號
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library
原创 Javascript上下文
Context:(JS上下文) var obj = { yes:function(){ this.val=true; }, no:function(){
原创 smartgwt學習
1. SelectItem:setOptionCriteria(Criteria criteria).這個方法將調用dataSource的fetch操作獲取數據 2. ListGrid: fetchData(Criter
原创 JBPM4整合Spring環境搭建
搭建JBPM4.4和Struts2.2.1、Spring2.5.6開發環境: (1):創建JBPM的主配置文件:jbpm.cfg.xml。該文件在JBPM下的/install/src/cfg/jbpm/spring.jbpm.cfg.x
原创 Fail to fetch URL
在搭建android的開發環境的時候經常遇到Fail to fetch URL的問題。 解決辦法:在c:\windows\system32\drivers\etc\host 找到該文件,加入: 74.125.237.1 dl-ssl.g
原创 struts2中獲得servletcontext
當然struts2中還有常見的兩種方法獲得 獲取HttpServletRequest / HttpSession / ServletContext / HttpServletResponse對象 方法一,通過ServletActionCo
原创 struts2.3最小依賴jar包
struts2-core-2.3.1.jar xwork-core-2.3.1.jar commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar comm
原创 struts筆記
struts.devMode = false struts.configuration.xml.reload = false;-----是否在struts.xml改變的時候重新加載應用 可以利用struts的標籤<s:property n
原创 struts2 ognl
在編程中,Struts2 OGNL基礎上的增強 1、值棧(ValueStack) Struts2 OGNL上下文設置爲Struts2中的ActionContext(內部使用的仍然是OgnlContext),並將值棧設爲Struts2 OG