??xml version="1.0" encoding="utf-8" standalone="yes"?>棒球比分大小怎么算:BlogJava-紫蝶∏飛揚↗-文章分类 - 棒球比分大小怎么算|վ//www.355548.live/algz/category/31943.htmlPurple Butterfly Flying QQ?7101519 Flex,Ext,Spring,Hibernate,EOS,SpringSecurity,Struts //algz.googlecode.com/svn/trunk/zh-cnSun, 29 Apr 2012 02:36:24 GMTSun, 29 Apr 2012 02:36:24 GMT60Extjs.tree.treePanel 自动查找node - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/376965.html紫蝶∏飛揚↗紫蝶∏飛揚↗Sat, 28 Apr 2012 06:36:00 GMT//www.355548.live/algz/articles/376965.html//www.355548.live/algz/comments/376965.html//www.355548.live/algz/articles/376965.html#Feedback0//www.355548.live/algz/comments/commentRss/376965.html//www.355548.live/algz/services/trackbacks/376965.htmlvar node_id= Ext.getCmp('partId').getValue() 
(1)快速定?Ҏnode.id
注: EXT 树的节点如果不展开,数据是获取不到的( getNodeById() 报异?Q即使你load了数据不展开节点前,一栯取不到?/span>
    var node=treepanel.getNodeById(node_id);
    // treepanel.expandPath(node.getPath())
    treepanel.getSelectionModel().select(node)
    node.fireEvent('click',node)
(2)递归查找,一层一层联查?br />? 虽然能解?1)中取不到数据的问?但访问速度?而且U联查找时会层层扩展开.
  treepanel.getRootNode().cascade(function(n) {
if (!n.isLeaf() && !n.isLoaded()) {
n.reload();
return true;
}
if (n.attributes['id'] == Ext.getCmp('partId').getValue()) {
node = n;
treepanel.getSelectionModel().select(node)
node.fireEvent('click', node)
return false;
}
return true;
  });


]]>
EditorGridPanel 控制单元格的~辑功能 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/370609.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 23 Feb 2012 10:13:00 GMT//www.355548.live/algz/articles/370609.html//www.355548.live/algz/comments/370609.html//www.355548.live/algz/articles/370609.html#Feedback0//www.355548.live/algz/comments/commentRss/370609.html//www.355548.live/algz/services/trackbacks/370609.html

具体描述Q?/span>

      表格W一列(其它列也行)为类型选择列,采用ComboBox为编辑器Q当选择某一cdQ如Q类?Q时表格当前?/strong>的某些列Q如Q第2列~W?列)变Z可编辑状态,q显CZ同的样式Q类gbutton的disableQ?/p>

       当选择其它cdQ如Q类?Q时表格当前?/strong>的不可编辑单元格又变成可~辑的?/p>

(1)
是否可编辑样式可以在列模型的renderer中操?nbsp;

renderer : function(data, meta){ 
   if(xxx){ 
      meta.css += " x-item-disabled"; 
   } 


(2)
是否可编辑逻辑可以在grid的beforeedit事g中拦截判?nbsp;
grid.on("beforeedit", function(e){ 
/* 
                e = { 
                    grid: this, 
                    record: r, 
                    field: field, 
                    value: r.data[field], 
                    row: row, 
                    column: col, 
                    cancel:false 
                }; 
*/ 
   if(xxx){ 
      return false; // 中止Q不让编?nbsp;
   } 
}); 


紫蝶∏飛揚↗ 2012-02-23 18:13 发表评论
]]>
ListView ?GridPanel 是不同的,他们有各自的列类型和日期处理方式 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/324678.html紫蝶∏飛揚↗紫蝶∏飛揚↗Mon, 28 Jun 2010 07:41:00 GMT//www.355548.live/algz/articles/324678.html//www.355548.live/algz/comments/324678.html//www.355548.live/algz/articles/324678.html#Feedback0//www.355548.live/algz/comments/commentRss/324678.html//www.355548.live/algz/services/trackbacks/324678.htmlListView 没有GridPanel那样自动递增的序列列(RowNumber({...}));
ListView 处理日期采用tbl模板昄其日期样?GridPanel采用renderer属? Ext.util.Format.dateRenderer(...)函数.

ListView
{
        xtype : "listview",
        columns : [{
           header : "目",
           width : .6,
           dataIndex : "projectnam"
          }, {
           width : .25,
           header : "发布旉",
           dataIndex:"lastdate",
           tpl: '{lastdate:date("m/d/Y")}'
           }],
        store : new Ext.data.JsonStore({
           autoLoad:"true",
           url:"/xtad/testExt/data/waitfortask.jsp",
           fields : ['projectnam', {
                  name : 'lastdate',
                  type:"date",
                  dateFormat:'m/d/Y'
             }]
          })
       }


GridPanel
{
      xtype : "grid",
      cm : new Ext.grid.ColumnModel([
        new Ext.grid.RowNumberer({
           header : "No.1"
          }), {
         header : "目",
         dataIndex : "projectnam"
        }, {
         header : "发布旉",
         dataIndex : "lastdate",
         renderer: Ext.util.Format.dateRenderer('m d/Y')
        }]),
      store : new Ext.data.JsonStore({
       autoLoad:"true",
       url:"/xtad/testExt/data/waitfortask.jsp",
         fields : [{
            name : "projectnam"
           },{
            name : "lastdate",
            type:"date",
            dateFormat: 'm/d/Y'
           }]
        })
     }

]]>
Extjs Api 隐藏的内?--Panellg的׾~?collapsed) - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/322353.html紫蝶∏飛揚↗紫蝶∏飛揚↗Mon, 31 May 2010 08:34:00 GMT//www.355548.live/algz/articles/322353.html//www.355548.live/algz/comments/322353.html//www.355548.live/algz/articles/322353.html#Feedback0//www.355548.live/algz/comments/commentRss/322353.html//www.355548.live/algz/services/trackbacks/322353.html1.q你型的伸羃:
collapseMode:'mini',

2.标准伸羃(面板~放后点?则时弹出组?鼠标Ud则自动羃?:
collapsible:true,

3.仅点?<<"头才能伸羃(不存在时弹出组?:
floatable: false,
collapsible:true,



]]>
EXTJS 加蝲中含有脚本?IE 报错: 80020101 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/322117.html紫蝶∏飛揚↗紫蝶∏飛揚↗Fri, 28 May 2010 02:51:00 GMT//www.355548.live/algz/articles/322117.html//www.355548.live/algz/comments/322117.html//www.355548.live/algz/articles/322117.html#Feedback1//www.355548.live/algz/comments/commentRss/322117.html//www.355548.live/algz/services/trackbacks/322117.html autoLoad : {
                    url:"pages/myworks/mywork_left.jsp",
                    scripts:true
                 }
问题:
(1)不含脚本的加载页?执行没问?
(2)加蝲中含有脚本可能会报80020101错误

解决Ҏ如下:
"url":需加蝲的页?如加载页中含有Extjs脚本,应去掉Extjs核心文g,以免与父面冲突.
"scripts:true":执行面js 代码 ,如果加蝲lg是panel,IE 报错:80020101,解决Ҏ:更改为formpanel,详细BUG内容?
//www.extjs.com/forum/showthread.php?90401-Internet-Explorer-Error-80020101-after-FramePanel-loaded




]]>
JSP EL表达式和JSP脚本<%%> 无法在外部引用的JS文g中执?/title><link>//www.355548.live/algz/articles/321846.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Tue, 25 May 2010 09:06:00 GMT</pubDate><guid>//www.355548.live/algz/articles/321846.html</guid><wfw:comment>//www.355548.live/algz/comments/321846.html</wfw:comment><comments>//www.355548.live/algz/articles/321846.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/321846.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/321846.html</trackback:ping><description><![CDATA[如果面引用的外部JS脚本使用EL{服务端执行的代?是无法获取到值的.只有在JSP文g里的JS脚本才能取到服务端代码的?<br /> <br /> 原因Q?br /> 所有的jsp文g在响应给用户旉会编译成servletQ执行其中所有的JSP脚本或EL表达式,q由java输出{化成HTML文本代码response响应l客LQ所以浏览器接收到的只是html面。而外部js文g与HTML一起响应给客户端,q在本地l装在一P所?lt;script src="xxx.js">q样的外部引用JSQ是无法执行服务端脚本的? <img src ="//www.355548.live/algz/aggbug/321846.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2010-05-25 17:06 <a href="//www.355548.live/algz/articles/321846.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>extjs 与Acegi 标签库控制权?/title><link>//www.355548.live/algz/articles/321841.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Tue, 25 May 2010 08:07:00 GMT</pubDate><guid>//www.355548.live/algz/articles/321841.html</guid><wfw:comment>//www.355548.live/algz/comments/321841.html</wfw:comment><comments>//www.355548.live/algz/articles/321841.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/321841.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/321841.html</trackback:ping><description><![CDATA[  <p style="text-align: left; margin-left: 24pt" class="MsoNormal" align="left">以下代码仅有SU权限的当前用户昄"我的工作"?span style="font-family: 'Courier New'; color: black; font-size: 10pt"><br />    </span><span style="font-family: 'Courier New'; color: teal; font-size: 10pt"><</span><span style="font-family: 'Courier New'; color: #3f7f7f; font-size: 10pt">script </span><span style="font-family: 'Courier New'; color: #7f007f; font-size: 10pt">language</span><span style="font-family: 'Courier New'; color: black; font-size: 10pt">=</span><span style="font-family: 'Courier New'; color: #2a00ff; font-size: 10pt">"JavaScript" </span><span style="font-family: 'Courier New'; color: #7f007f; font-size: 10pt">type</span><span style="font-family: 'Courier New'; color: black; font-size: 10pt">=</span><span style="font-family: 'Courier New'; color: #2a00ff; font-size: 10pt">"text/javascript"</span><span style="font-family: 'Courier New'; color: teal; font-size: 10pt">></span></p> <p style="text-align: left; text-indent: 25pt; margin-left: 24.05pt" class="MsoNormal" align="left"><span style="font-family: 'Courier New'; color: black; font-size: 10pt">document.write(</span><span style="font-family: 'Courier New'; color: #8e00ff; font-size: 10pt">'<authz:authorize ifAnyGranted="ROLE_HRCHANGE_S"> '</span><span style="font-family: 'Courier New'; color: black; font-size: 10pt">);</span></p> <p style="text-align: left; margin-left: 24pt" class="MsoNormal" align="left"><span style="font-family: 'Courier New'; color: black; font-size: 10pt">    document.write(</span><span style="font-family: 'Courier New'; color: #8e00ff; font-size: 10pt">'<li><a id="a1" href="#" title="</span><span style="font-family: 宋体; color: #8e00ff; font-size: 10pt">我的工作</span><span style="font-family: 'Courier New'; color: #8e00ff; font-size: 10pt">"></span><span style="font-family: 宋体; color: #8e00ff; font-size: 10pt">我的工作</span><span style="font-family: 'Courier New'; color: #8e00ff; font-size: 10pt"></a></li>'</span><span style="font-family: 'Courier New'; color: black; font-size: 10pt">);</span></p> <p style="text-align: left; text-indent: 25pt; margin-left: 24.05pt" class="MsoNormal" align="left"><span style="font-family: 'Courier New'; color: black; font-size: 10pt">document.write(</span><span style="font-family: 'Courier New'; color: #8e00ff; font-size: 10pt">'</authz:authorize>'</span><span style="font-family: 'Courier New'; color: black; font-size: 10pt">);</span></p> <p style="text-indent: 40pt" class="MsoNormal"><span style="font-family: 'Courier New'; color: teal; font-size: 10pt"></</span><span style="font-family: 'Courier New'; color: #3f7f7f; font-size: 10pt">script</span><span style="font-family: 'Courier New'; color: teal; font-size: 10pt">></span></p> <br /> 以下转自://yangruirui.javaeye.com/blog/496590<br /> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">JSP面中的面元素,URL,按钮是否可见或变灰都可通过Acegi标签库来实现Q用Acegi标签库,可设|不同的权限ID允许点击的按?讉K的URL,或隐藏无权限的功能菜单?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">如何配置和用标{ֺQ?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">打开acegi-security-<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">1.0.3</chsdate>.jar,在META-INF目录中有一个authz.tld文gQ将此文件复制到你的web应用的WEB-INF"tld中,然后配置web.xml,增加:</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><taglib></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><taglib-uri>//acegisecurity.sf.net/authz</taglib-uri></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><taglib-location>/WEB-INF/tld/authz.tld</taglib-location></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></taglib></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">然后JSP面可以通过声明<%@ taglib uri="//acegisecurity.sf.net/authz" prefix="authz"%>来引用标{ֺ?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">声明了标{以后,在页面中可以按下面的格式使用acegi标签(authz标签可以嵌套使用)Q?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><!--使用权限标签的例?标签可以嵌套 --></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><authz:authorize ifAnyGranted="AUTH_USER"></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><td> 一般用h?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></td></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><authz:authorize ifAnyGranted="AUTH_ADMIN"></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><td> 用户权限</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></td></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></authz:authorize></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></authz:authorize></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><authz:authorize ifAnyGranted="AUTH_SYS"></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><td> pȝl护权限</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></td></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></authz:authorize></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">也可以在JavaScript中用document.write输出权限标签Q?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><script language="JavaScript" type="text/javascript"></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">//订单中心</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">document.write('<authz:authorize ifAnyGranted="AUTH_TAG_ORDER_CENTER"> ');</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">new tree(TREE_ITEMS1, TREE_TPL);</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">document.write('</authz:authorize>');</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></script></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">在有javaScript脚本中有时不方便引用acegi标签Q可以从SecurityContextHolder中获得权限集合,然后判断当前d的用P其权限集合中是否有某权限Q根据判断结果来军_昄或隐藏哪些页面元素,见下面的JSP:</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page contentType="text/html; charset=GBK"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ taglib uri="//acegisecurity.sf.net/authz" prefix="authz"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.acegisecurity.Authentication" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.acegisecurity.context.SecurityContext" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.acegisecurity.context.SecurityContextHolder" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.acegisecurity.userdetails.UserDetails" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.acegisecurity.ui.AccessDeniedHandlerImpl" %></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.springframework.aop.framework.ProxyFactoryBean"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.springframework.context.ApplicationContext"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.springframework.context.support.ClassPathXmlApplicationContext"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="org.acegisecurity.GrantedAuthority"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%@ page import="com.mysoft.common.ValidateAcegiAuth"%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">SecurityContext ctx = SecurityContextHolder.getContext();</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">。。?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><script language="JavaScript" type="text/javascript"></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">//下面是调用自定义的类ValidateAcegiAuthQ输入当前登录用LSecurityContextQ及权限码,如果有AUTH_FUN_TICKET_CHKERR权限Q则执行相应的JS脚本?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%if(ValidateAcegiAuth.validate(ctx,"AUTH_FUN_TICKET_CHKERR")){%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">//hAUTH_FUN_TICKET_CHKERR 权限Q执行相应js脚本…</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"><%}%></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3"></script></font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">下面是ValidateAcegiAuthcȝ代码Q?/font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">package com.mysoft.common;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.acegisecurity.Authentication;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.acegisecurity.context.SecurityContext;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.acegisecurity.context.SecurityContextHolder;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.acegisecurity.userdetails.UserDetails;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.acegisecurity.ui.AccessDeniedHandlerImpl;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.springframework.aop.framework.ProxyFactoryBean;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.springframework.context.ApplicationContext;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.springframework.context.support.ClassPathXmlApplicationContext; </font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">import org.acegisecurity.GrantedAuthority;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">/**</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">* 验证权限集合中是否有某一权限</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">* @author bzwang</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">* </font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">*</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">*/</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">public class ValidateAcegiAuth </font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">/**</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">*验证权限集合中是否有某一权限</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">* @param ctxLoginUser SecurityContext</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">* @param sAuthID 权限ID</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">* @return boolean 是否有指定的权限</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">*/</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">public static boolean validate(SecurityContext ctxLoginUser,String sAuthID)</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">boolean bool = false;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">Authentication authLoginUser = null; </font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">GrantedAuthority[] arrayAuthorities = null;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">if(ctxLoginUser!=null)</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">authLoginUser = ctxLoginUser.getAuthentication();</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">if(authLoginUser!=null)</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">arrayAuthorities = authLoginUser.getAuthorities();</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">for(int i=0;i<arrayAuthorities.length;i++)</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">if(arrayAuthorities[i].toString().equals(sAuthID))</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">bool = true;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">break;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">else</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">bool = false;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">else</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">{</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">bool = false;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">return bool;</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"> <p style="text-indent: 21pt; margin: 0cm 0cm 0pt" class="MsoNormal"><font size="3">}</font></p> <img src ="//www.355548.live/algz/aggbug/321841.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2010-05-25 16:07 <a href="//www.355548.live/algz/articles/321841.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ext.grid.GroupingView ?Ext.data.GroupingStore 学习W记 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/317187.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 01 Apr 2010 07:58:00 GMT//www.355548.live/algz/articles/317187.html//www.355548.live/algz/comments/317187.html//www.355548.live/algz/articles/317187.html#Feedback0//www.355548.live/algz/comments/commentRss/317187.html//www.355548.live/algz/services/trackbacks/317187.html  // l视?br />   var groupingView = new Ext.grid.GroupingView({
     // groupTextTpl : '{text} ({[values.rs.length]}
     // {[values.rs.length > 1 ? "Items" : "Item"]})',//
     // 强制(width)填充
     forceFit : true,
     // 是否在首部Group位置昄列名
     showGroupName : false,
     // 是否在列菜单中显C?show in group"选择(功能:是否以组方式昄)
     enableNoGroups : true,
     // 是否在列菜单中显C?groupBy this
     // Field"选择(功能:更换分组字段排版)
     enableGroupingMenu : false,
     // 是否在列中隐藏分D늚字段?列头)
     hideGroupedColumn : true
    });

        store : new Ext.data.GroupingStore({
         reader : new Ext.data.JsonReader({
            fields : ['project', 'img',
              'title', 'responsedate']
           }),
         // 本地数据加蝲
         data : [{
          id : 1,
          project : '重要消息',
          img : "<image src='image/tool/coins.png' />",
          title : '功能完善?...',
          responsedate : "2009-01-01"
         }, {
          id : 2,
          project : '普通消?,
          img : "<image src='image/tool/color_wheel.png' />",
          title : '功能完善?...',
          responsedate : "2009-01-01"
         }],
         sortInfo : {
          field : 'project',
          direction : 'DESC'// 降序'ASC':升序
         },
         // l存在的情况?是否按组排序(默认为false,?
         groupOnSort : true,
         groupField : 'project'
        })
       },



]]>
EXTJS 在IE8 览器中,文本模式变ؓquirks(杂项)的问??tabpanel中TAB标签选中?标签底部没有效果昄 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/317124.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 01 Apr 2010 01:38:00 GMT//www.355548.live/algz/articles/317124.html//www.355548.live/algz/comments/317124.html//www.355548.live/algz/articles/317124.html#Feedback0//www.355548.live/algz/comments/commentRss/317124.html//www.355548.live/algz/services/trackbacks/317124.html(1)对于IE8 览器而言:
定义IE8 文本模式为IE8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
IE8 文本模式为杂?quirks):无定义状?br /> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

(2)IE8 览器中,对于EXTJS TABPANEL在IE8中TAB标签选中?标签底部没有效果昄
原因:文本模式为杂?EXTJS无法判断IE览器版?也就无法?lt;a>标签中正加载CSS代码:
.ext-ie .x-tab-strip .x-tab-right{position:"relative"}
<a class="x-tab-right" id="ext-gen37" href="#">
...
</a>



]]>
extjs 处理HTML事g和自定义事g - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/317021.html紫蝶∏飛揚↗紫蝶∏飛揚↗Wed, 31 Mar 2010 03:26:00 GMT//www.355548.live/algz/articles/317021.html//www.355548.live/algz/comments/317021.html//www.355548.live/algz/articles/317021.html#Feedback0//www.355548.live/algz/comments/commentRss/317021.html//www.355548.live/algz/services/trackbacks/317021.html1. 处理HTML元素的标准事?/strong>

HTML元素的标准事件是指mouseover、mousedown、click?blur、focus、change{。在ExtJS中,q些事g的处理如下:

  • 注册一个事件处理函C用: Ext.get('myElement').on('click', myHandler, myScope) myElement是要注册的元素的IDQclick是事件的名称Q注意,和HTML元素中的声明onXXX不同Q这里不需要onQ,myHandler 是处理函数的函数名称QmyScope是一个可选的参数Q指定处理函数绑定的对象Q也是处理函数的作用域Q如果不提供q个参数Q则是默认的 window?
  • 撤销一个事件处理函敎ͼ Ext.get('myElement').un('click', myHandler, myScope) 参数的意义同上?/li>

ExtJS 会根据不同的览器进行相应的处理Q支持多览器。事件处理函数的参数只能参考ExtJS的文?了,必要时还得参考源代码?/p>

2. 处理自定义事?/strong>

在ExtJS中用自定义事gQ需要从Ext.util.Observablel承Q示例代码如下:

Employee = function(name){
this.name = name;
this.addEvents({
"fired" : true,
"quit" : true
});
}
Ext.extend(Employee, Ext.util.Observable, { ... });

在这D代码中Q定义了一个Employeec,定义了fired和quit两个事g。如何触发这两个事g呢,基类 Ext.util.Observable提供了触发自定义事g的方法fireEvent(eventName, arg1, arg2, ... argn), eventName是要触发的时间的名称Q不区分大小写)Q后面的参数arg1Qarg2{是要传l事件处理函数的参数。用上面的EmployeecdCZQ触发quit事gQ?/p>

this.fireEvent('quit', this);

q行代码触发quit事gQƈEmpolyeecȝ实例传给quit事g的处理函敎ͼquit事g的订阅可以采用如下代码:

function myHandler1(empolyee){ ... }
function myHandler2(empolyee){ ... }
var emp = new Empolyee('tom');
emp.on('quit', myHandler1);
emp.on('quit', myHandler2);

在上面的代码中,为quit事g注册了两个处理函敎ͼmyHandler1与myHandlerQ,当quit事g被激发时Q将会依ơ调?myHandler1和myHandler2两个函数?/p>

值得注意的是Q不是HTML元素的标准事件还是自定义事gQ如果ؓ某个旉注册了多个处理函敎ͼ如前面的例子Q如果myHandler1q回 false的话Q则会取消在myHandler1之后注册的处理函数的执行Q即该事件被取消Q从而停止l执行该事g的处理函敎ͼ而这个返回值false 会作Z件激发的l果Q返回给empolyeeQ即Q?/p>

var result = this.fireEvent('quit', this);
if (result === false) {
alert('event canceled'); //q里表示事g被某个处理函数取?/span>
}
else {
alert('event complete'); // q里表示事g执行完毕
}

通过Ext的自定义事g的机Ӟ可以实现一对多的观察者模式,也可以实C对一的绑定模式,q一点,在ExtJS的开发中是很重要的?/p>

]]>
renderTo and el and contentEl 图文详解 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/296287.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 24 Sep 2009 06:36:00 GMT//www.355548.live/algz/articles/296287.html//www.355548.live/algz/comments/296287.html//www.355548.live/algz/articles/296287.html#Feedback0//www.355548.live/algz/comments/commentRss/296287.html//www.355548.live/algz/services/trackbacks/296287.html    id:"box",
   renderTo:"content11",
   el: "content11-title"

********************************************************
   id:"box",
   renderTo:"content11",
   //el: "content11-title"

********************************************************
id : "box",
renderTo : "content11-title"//,
// el: "content11-title"

********************************************************
id : "box", 
contentEl: "content11-title",
renderTo : "content11"//,


id : "box", 
contentEl: "content11-title",
renderTo : "content11"//,


]]>
Extjs ListView 详解 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/296116.html紫蝶∏飛揚↗紫蝶∏飛揚↗Wed, 23 Sep 2009 01:50:00 GMT//www.355548.live/algz/articles/296116.html//www.355548.live/algz/comments/296116.html//www.355548.live/algz/articles/296116.html#Feedback0//www.355548.live/algz/comments/commentRss/296116.html//www.355548.live/algz/services/trackbacks/296116.html 

// consume JSON of this form:

{
   
"images":[
      
{
         
"name":"dance_fever.jpg",
         
"size":2067,
         
"lastmod":1236974993000,
         
"url":"images\/thumbs\/dance_fever.jpg"
      }
,
      
{
         
"name":"zack_sink.jpg",
         
"size":2303,
         
"lastmod":1236974993000,
         
"url":"images\/thumbs\/zack_sink.jpg"
      }

   ]
}
 
var store 
= new Ext.data.JsonStore({
    url: 
'get-images.php',
    root: 
'images',
    fields: [
        
'name''url',
        
{name:'size', type: 'float'},
        
{name:'lastmod', type:'date', dateFormat:'timestamp'}
    ]
}
);
store.load();

var listView 
= new Ext.ListView({
    store: store,
    multiSelect: 
true,
    emptyText: 
'No images to display',
    reserveScrollOffset: 
true,
    columns: [
{
        header: 
'File',
        width: .
5,
        dataIndex: 
'name'
    }
,{
        header: 
'Last Modified',
        width: .
35
        dataIndex: 
'lastmod',
        tpl: 
'{lastmod:date("m-d h:i a")}'
    }
,{
        header: 
'Size',
        dataIndex: 
'size',
        tpl: 
'{size:fileSize}'// format using Ext.util.Format.fileSize()

        align: 
'right'
    }
]
}
);

// put it in a Panel so it looks pretty

var panel 
= new Ext.Panel({
    id:
'images-view',
    width:
425,
    height:
250,
    collapsible:
true,
    layout:
'fit',
    title:
'Simple ListView (0 items selected)',
    items: listView
}
);
panel.render(document.body);

// little bit of feedback

listView.on(
'selectionchange', function(view, nodes){
    var l 
= nodes.length;
    var s 
= l != 1 ? 's' : '';
    panel.setTitle(
'Simple ListView ('+l+' item'+s+' selected)');
}
);


]]>
Extjs panel 元素样式?/title><link>//www.355548.live/algz/articles/295885.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Mon, 21 Sep 2009 09:17:00 GMT</pubDate><guid>//www.355548.live/algz/articles/295885.html</guid><wfw:comment>//www.355548.live/algz/comments/295885.html</wfw:comment><comments>//www.355548.live/algz/articles/295885.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/295885.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/295885.html</trackback:ping><description><![CDATA[baseCls :defaults to 'x-panel'<br /> <br /> Panel      Default  Default             Custom      Additional       Additional<br /> Element    element  class               element     class            style<br /> <br /> ========   ==========================   =========   ==============   ===========<br /> <br /> header     div      baseCls+'-header'   headerCfg   headerCssClass   headerStyle<br /> <br /> bwrap      div      baseCls+'-bwrap'     bwrapCfg    bwrapCssClass    bwrapStyle<br /> <br /> + tbar     div      baseCls+'-tbar'       tbarCfg     tbarCssClass     tbarStyle<br /> <br /> + body     div      baseCls+'-body'       bodyCfg     bodyCssClass     bodyStyle<br /> <br /> + bbar     div      baseCls+'-bbar'       bbarCfg     bbarCssClass     bbarStyle<br /> <br /> + footer   div      baseCls+'-footer'   footerCfg   footerCssClass   footerStyle<br /> <br /> <br /> baseCls :"<span style="color: #3399ff;">content11</span>",<br /> <br /> <div id="ext-comp-1002" class=" <span style="color: #3399ff;">content11</span>"><br /> <div class="<span style="color: #3399ff;">content11</span>-header x-unselectable" id="ext-gen8" style="-moz-user-select: none;"><br /> <span class="<span style="color: #3399ff;">content11</span>-header-text" id="ext-gen11">content11</span><br /> </div><br /> <div class="<span style="color: #3399ff;">content11</span>-bwrap" id="ext-gen9"><br /> <div class="<span style="color: #3399ff;">content11</span>-body" id="ext-gen10">fdsaf</div><br /> </div><br /> </div><br /> <br /> <br /> headerCssClass :"<span style="color: #3399ff;">content11</span>",<br /> <br /> <div id="ext-comp-1002" class=" x-panel"><br /> <div class="x-panel-header <span style="color: #3399ff;">content11 </span>x-unselectable" id="ext-gen8" style="-moz-user-select: none;"><br /> <span class="x-panel-header-text" id="ext-gen11">content11</span><br /> </div><br /> <div class="x-panel-bwrap" id="ext-gen9"><br /> <div class="x-panel-body" id="ext-gen10">fdsaf</div><br /> </div><br /> </div><br /> <br /> <img src ="//www.355548.live/algz/aggbug/295885.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2009-09-21 17:17 <a href="//www.355548.live/algz/articles/295885.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Extjs dataView 详解 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/294297.html紫蝶∏飛揚↗紫蝶∏飛揚↗Tue, 08 Sep 2009 06:10:00 GMT//www.355548.live/algz/articles/294297.html//www.355548.live/algz/comments/294297.html//www.355548.live/algz/articles/294297.html#Feedback0//www.355548.live/algz/comments/commentRss/294297.html//www.355548.live/algz/services/trackbacks/294297.htmlvar store = new Ext.data.JsonStore({ url: 'get-images.php', root: 'images', fields: [ 'name', 'url', {name:'size', type: 'float'}, {name:'lastmod', type:'date', dateFormat:'timestamp'} ] }); store.load(); var tpl = new Ext.XTemplate( '<tpl for=".">', '<div class="thumb-wrap" id="{name}">', '<div class="thumb"><img src="{url}" title="{name}"></div>', '<span class="x-editable">{shortName}</span></div>', '</tpl>', '<div class="x-clear"></div>' ); var panel = new Ext.Panel({ id:'images-view', frame:true, width:535, autoHeight:true, collapsible:true, layout:'fit', title:'Simple DataView',

items: new Ext.DataView({ store: store, tpl: tpl, autoHeight:true, multiSelect: true, overClass:'x-view-over', //鼠标悬停item时的cL?defaults to undefined itemSelector:'div.thumb-wrap', //必须?gؓitem选择?此g可ؓ.thumb-wrap e.g. div.some-class
//selectedClass:'x-view-selected', //(默认?defaults to 'x-view-selected',但仍必须写此cȝCSS内容
emptyText: 'No images to display'

/*
            plugins: [
                new Ext.DataView.DragSelector(),
                new Ext.DataView.LabelEditor({dataIndex: 'name'})
            ],*/

            prepareData: function(data){ //数据预处?x据处理前.data为原始数?cd为对?
                data.shortName = Ext.util.Format.ellipsis(data.name, 15); //指定字符串ؓ15个字W?出部分用三个圆点代?
            //  data.sizeString = Ext.util.Format.fileSize(data.size);
            //  data.dateString = data.lastmod.format("m/d/Y g:i a");
                return data;
            },
           
           listeners: {
             selectionchange: { //l点的选择发生改变?即重新选择l点?可以更改为selectionchange:function(dv,nodes)...
              fn: function(dv,nodes){
               var l = nodes.length;
               var s = l != 1 ? 's' : '';
               panel.setTitle('Simple DataView ('+l+' item'+s+' selected)');
              }
             }

}) }); panel.render(document.body);

DataView 用store提供的数据流Q采用tpl的格式显C,itemSelector的gؓ数据中块的CSSc选择器,对块操作时更换其CSScL?如鼠标悬停在块上和块被选定时的CSScL?单点?是有利于对数据中的块好控制操?

tpl定义的块Q?span aria-expanded="false" class="nodeLabelBox repTarget " role="treeitem"><div id="zack_hat.jpg" class="thumb-wrap">
鼠标悬停时的块(overClassQ:
点击被选中的块QselectedClassQ:<div id="kids_hug2.jpg" class="thumb-wrap x-view-selected">

1.当鼠标点L据流中某一块时Q块增加selectedClass定义的类样式Q如没定义类?即采用默认的cd'x-view-selected'QCSS内容依然为空,仍需手写,只是cd必须为此Q;
2.用overClass定义的CSScL式,鼠标悬停在块(div)上,更换其CSScL?
3.dataView.store.filter(f1,f2):从store中查找f1字段,与f2匚w(不完全匹配相?qo,重新本地加蝲数据.
4.dataView.store.store(f1,'asc'/'desc'):store的内Ҏf1的值排?
5.dataView.store.clearFilter():清除qo状?q原初始.
6.dataView.select(n):更换Wn个块的CSScL?

(?html:

<html>
<head>
</head>
<body id="ext-gen6" class=" ext-gecko ext-gecko3">
-->
<h1>DataView Example</h1>
<p>
</p>
<div id="images-view" class="x-panel" style="width: 535px;">
<div class="x-panel-tl">
</div>
<div id="ext-gen8" class="x-panel-bwrap">
<div class="x-panel-ml">
<div class="x-panel-mr">
<div class="x-panel-mc">
<div id="ext-gen9" class="x-panel-body" style="width: 523px; height: auto;">
<div id="ext-comp-1001" style="height: auto;">
<div id="kids_hug2.jpg" class="thumb-wrap x-view-selected ">
<div class="thumb">
<img title="kids_hug2.jpg" src="images/thumbs/kids_hug2.jpg"/>
</div>
<span class="x-editable"/>
</div>
<div id="zack_hat.jpg" class="thumb-wrap ">
</div>
<div id="zack.jpg" class="thumb-wrap ">
</div>
<div id="zack_sink.jpg" class="thumb-wrap ">
</div>
<div id="sara_pink.jpg" class="thumb-wrap">
</div>
<div id="dance_fever.jpg" class="thumb-wrap ">
<div class="thumb">
<img title="dance_fever.jpg" src="images/thumbs/dance_fever.jpg"/>
</div>
<span class="x-editable"/>
</div>
<div id="gangster_zack.jpg" class="thumb-wrap ">
</div>
<div id="zacks_grill.jpg" class="thumb-wrap">
</div>
<div id="kids_hug.jpg" class="thumb-wrap ">
</div>
<div id="zack_dress.jpg" class="thumb-wrap ">
</div>
<div id="sara_pumpkin.jpg" class="thumb-wrap">
</div>
<div id="sara_smile.jpg" class="thumb-wrap ">
</div>
<div id="up_to_something.jpg" class="thumb-wrap ">
</div>
<div class="x-clear"/>
</div>
</div>
</div>
</div>
</div>
<div class="x-panel-bl x-panel-nofooter">
</div>
</div>
</div>
</body>
<div id="_firebugConsole" style="display: none;" FirebugVersion="1.4.2"/>
</html>

(?css
#images-view .x-panel-body {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
-x-system-font:none;
background:white none repeat scroll 0 0;
font-family:Arial,Helvetica,sans-serif;
font-size:11px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:normal;
}
#images-view .thumb {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#DDDDDD none repeat scroll 0 0;
padding:3px;
}
#images-view .thumb img {
height:60px;
width:80px;
}
#images-view .thumb-wrap {
float:left;
margin:4px 0 4px 4px;
padding:5px;
}

#images-view .thumb-wrap span {
display:block;
overflow:hidden;
text-align:center;
}
#images-view .x-view-over {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#EFEFEF url(../../resources/images/default/grid/row-over.gif) repeat-x scroll left top;
border:1px solid #DDDDDD;
padding:4px;
}

#images-view .x-view-selected {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#EFF5FB url(images/selected.gif) no-repeat scroll right bottom;
border:1px solid #99BBE8;
padding:4px;
}

#images-view .x-view-selected .thumb {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent none repeat scroll 0 0;
}
#images-view .loading-indicator {
background-image:url(../../resources/images/default/grid/loading.gif);
background-position:left center;
background-repeat:no-repeat;
font-size:11px;
margin:10px;
padding-left:20px;
}
 



]]>
解决EXTJS 接收数据中有中文出现"?????"{ؕ?/title><link>//www.355548.live/algz/articles/292401.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Mon, 24 Aug 2009 08:00:00 GMT</pubDate><guid>//www.355548.live/algz/articles/292401.html</guid><wfw:comment>//www.355548.live/algz/comments/292401.html</wfw:comment><comments>//www.355548.live/algz/articles/292401.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/292401.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/292401.html</trackback:ping><description><![CDATA[index.facesQ?׃?<br /> <span style="color: #008000"><span style="color: #99cc00"><%@ page language="java" pageEncoding="UTF-8"%>     //解决EXTJS 接收数据中有中文出现"?????"{ؕ?br />  ${searchAll.searchData}                                                    //解决JS接收数据.Ext.store({urlQindex.facesQ?..})</span></span> <img src ="//www.355548.live/algz/aggbug/292401.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2009-08-24 16:00 <a href="//www.355548.live/algz/articles/292401.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Extjs 漂亮的Panel折叠伸羃控g layout:'accordion' - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/278217.html紫蝶∏飛揚↗紫蝶∏飛揚↗Wed, 27 May 2009 08:22:00 GMT//www.355548.live/algz/articles/278217.html//www.355548.live/algz/comments/278217.html//www.355548.live/algz/articles/278217.html#Feedback5//www.355548.live/algz/comments/commentRss/278217.html//www.355548.live/algz/services/trackbacks/278217.html
HTML:
   <ul id="knowledgemenu" class="x-hidden mymenu">
      <li><a id="knowledge"  class="menubar">知识D</a></li>
      <li><a id="bbs"    class="menubar">公告</a></li>
      <li><a id="question"    class="menubar">待解决问?lt;/a></li>
      <li><a id="sloved"    class="menubar">已解决问?lt;/a></li>
      <li><a id="knownw"   class="menubar">知识贡献</a></li>
      <li><a id="tagslist"    class="menubar">Tags</a></li>
    </ul>
    <ul id="libmenu" class="x-hidden mymenu">
      <li><a id="knownlist"  class="menubar">文章?lt;/a></li>
      <li><a id="booklist"  class="menubar">图书?lt;/a></li>
      <li><a id="A1"  class="menubar">软g?lt;/a></li>
    </ul>
CSS:

.menubar {
 border-bottom: 1px solid #AACCF6;
 color: #222222;
 cursor: pointer;
 display: block;
 height: 20px;
 width: 50px;
 line-height: 17px;
 outline-color: -moz-use-text-color;
 outline-style: none;
 outline-width: 0;
 padding: 3px;
 text-align: center;
 text-decoration: none;
 white-space: nowrap;
}

.menubar:hover {     //鼠标悬停上时触发
 background: #EBF3FD url(../item-over.gif) repeat-x scroll left bottom;
 text-decoration: none;
}


JS:
    var knowledgemenu = new Ext.Panel({
                 title: '维知道',
                 contentEl:'knowledgemenu',  //DOM标签ID
                 border:false,
                    iconCls:'nav'
                });
    var libmenu = new Ext.Panel({
                 title: '专题',
                 contentEl:'libmenu',
                 border:false,
                    iconCls:'nav'
                });
    var westPanel=new Ext.Panel({
                    region:'west',
                    el:'west',
                    title:'功能菜单',
                    collapsible: true,    //本窗口׾~?/span>
                    //collapseMode:'mini',
                    split:true,
                    width: 175,
                    minSize: 175,
                    maxSize: 175,
                    margins:{left: 10, top: 0, right: 0, bottom: 0},
                    layout:'accordion',   //子窗口ؓ折叠
                    layoutConfig:{
                        animate:true
                       // fill :false
                    },
                    items:[knowledgemenu, libmenu]
    }); 

]]>
EXTJS <a>标签动画 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/278019.html紫蝶∏飛揚↗紫蝶∏飛揚↗Tue, 26 May 2009 07:46:00 GMT//www.355548.live/algz/articles/278019.html//www.355548.live/algz/comments/278019.html//www.355548.live/algz/articles/278019.html#Feedback0//www.355548.live/algz/comments/commentRss/278019.html//www.355548.live/algz/services/trackbacks/278019.html

HTML:
<a class="menubar" href="javascript:openknown()" id="knowledge">知识D</a>

CSS:
a.menubar {
border-bottom:1px solid #AACCF6;
  color:#222222;
  cursor:pointer;
  display:block;
   height:20px;
   line-height:17px;
   outline-color:-moz-use-text-color;
   outline-style:none;
   outline-width:0;
   padding:3px;
   text-align:center;
   text-decoration:none;
   white-space:nowrap;
}
a.menubar : hover {
   background : #EBF3FD url(../images/default/menu/item-over.gif) repeat-x scroll left bottom;
   text-decoration:none;
}

]]>
Extjs 首页 "load..." 制作Ҏ - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/277844.html紫蝶∏飛揚↗紫蝶∏飛揚↗Mon, 25 May 2009 08:05:00 GMT//www.355548.live/algz/articles/277844.html//www.355548.live/algz/comments/277844.html//www.355548.live/algz/articles/277844.html#Feedback0//www.355548.live/algz/comments/commentRss/277844.html//www.355548.live/algz/services/trackbacks/277844.html <body>
  <div id="loading-mask" style=""></div>   
  <div id="loading">
    <div class="loading-indicator">
          <img src="resources/extanim32.gif" width="32" height="32" style="margin-right:8px;" align="absmiddle"/>Loading...
    </div>
  </div>
......

CSS:
#loading-mask{
 position:absolute;
 left:0;
 top:0;
    width:100%;
    height:100%;
    z-index:20000;
    background-color:white;   //此处讄遮照颜色
}
#loading{
    position:absolute;
    left:45%;
    top:40%;
    padding:2px;
    z-index:20001;
    height:auto;
}
#loading img {
    margin-bottom:5px;
}
#loading .loading-indicator{
    background:white;
    color:#555;
    font:bold 13px tahoma,arial,helvetica;
    padding:10px;
    margin:0;
    text-align:center;
    height:auto;
}

JS:
....    
    var viewport = new Ext.Viewport({    //new 对象?卌动创建显C?以下函数在组件显C出来后执行.
        layout:'border',
        items:[ hd, api, mainPanel ]
    });

 setTimeout(function(){   //此函数放在所有组?昄出来)?如上?, 或放在显C控制函数里.
        Ext.get('loading').remove();   //删除囄和方?br />         Ext.get('loading-mask').fadeOut({remove:true});   //淡出效果方式,删除整个遮照?br />     }, 250);    //250毫秒后执行此函数

]]>
Panel ?tools 配置?/title><link>//www.355548.live/algz/articles/277819.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Mon, 25 May 2009 05:18:00 GMT</pubDate><guid>//www.355548.live/algz/articles/277819.html</guid><wfw:comment>//www.355548.live/algz/comments/277819.html</wfw:comment><comments>//www.355548.live/algz/articles/277819.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/277819.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/277819.html</trackback:ping><description><![CDATA[new Ext.Panel({...<br /> tools:[{<br />     <span style="color: #008080">id</span>:'refresh',<br />     qtip: 'Refresh form Data',<br />     // hidden:true,<br />     <span style="color: #008080">handler</span>: function(event, toolEl, panel){<br />         // refresh logic<br />     }<br /> }]<br /> ...})<br /> <br /> <span style="color: #008080">id </span>: String<br />    <span style="color: #008080">Required</span>. The type of tool to create. Values may betoggle (Created by default when collapsible is true)<br /> close<br /> minimize<br /> maximize<br /> restore<br /> gear<br /> pin<br /> unpin<br /> right<br /> left<br /> up<br /> down<br /> refresh<br /> minus<br /> plus<br /> help<br /> search<br /> save<br /> print<br /> <span style="color: #008080">handler </span>: Function<br />     <span style="color: #008080">Required</span>. The function to call when clicked. Arguments passed are:<br /> event : Ext.EventObject <br />     The click event.<br /> toolEl : Ext.Element<br />    The tool Element.<br /> Panel : Ext.Panel<br />    The host Panel<br /> scope : Object<br />    The scope in which to call the handler.<br /> qtip : String/Object<br />    A tip string, or a config argument to Ext.QuickTip.register<br /> hidden : Boolean<br />    True to initially render hidden.<br /> on : Object<br />    A listener config object specifiying event listeners in the format of an argument to addListener<br /> <br /> <img src ="//www.355548.live/algz/aggbug/277819.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2009-05-25 13:18 <a href="//www.355548.live/algz/articles/277819.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ext.FormPanel 提交?Ext.Ajax.request 异步提交函数的区?/title><link>//www.355548.live/algz/articles/277329.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Fri, 22 May 2009 06:28:00 GMT</pubDate><guid>//www.355548.live/algz/articles/277329.html</guid><wfw:comment>//www.355548.live/algz/comments/277329.html</wfw:comment><comments>//www.355548.live/algz/articles/277329.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/277329.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/277329.html</trackback:ping><description><![CDATA[<strong class="dntg">(1)Ext.FormPanel</strong><br /> f.getForm().submit({<br />    url:"......",<br />    params:{   XX:xx .....}<br />    success: <span style="color: #99cc00">function <span style="color: #33cccc">(c,v,e)</span></span> {    <span style="color: #339966">//e: 触发事g<br /> </span>                  var json=Ext.decode(<span style="color: #33cccc">v.response.responseText</span>);<br />                },<br />    failure:function(c,v,e){}<br /> })<br /> <br /> <strong class="dntg">(2)Ext.Ajax.request</strong><br /> Ext.Ajax.request({<br />     url:"....",<br />     params:{XX:xx....},<br />     success: <span style="color: #808000"><span style="color: #99cc00">function <span style="color: #33cccc">(v,c) </span></span></span>{<br />                    var json=Ext.decode(<span style="color: #33cccc">v.responseText</span>);<br />                 },<br />     failure:function(v,c){}<br /> })<br /> <br /> <img src ="//www.355548.live/algz/aggbug/277329.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2009-05-22 14:28 <a href="//www.355548.live/algz/articles/277329.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ext.LoadMask 制作面加蝲LOAD - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/272023.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 21 May 2009 08:56:00 GMT//www.355548.live/algz/articles/272023.html//www.355548.live/algz/comments/272023.html//www.355548.live/algz/articles/272023.html#Feedback0//www.355548.live/algz/comments/commentRss/272023.html//www.355548.live/algz/services/trackbacks/272023.html      msg : '正在加蝲...'
     });
     mask.show();
    borrowhistory_store.load({
                params : {
                    webname : "all",
                    start : 0,
                    limit : borrowhistory_pageTool.pageSize
                }
            });
     borrowhistory_store.on("load", function() {
     mask.hide();
     })


]]>
TabPanel子窗?如Ext.Panel{?隐藏属性closable - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/271910.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 21 May 2009 04:43:00 GMT//www.355548.live/algz/articles/271910.html//www.355548.live/algz/comments/271910.html//www.355548.live/algz/articles/271910.html#Feedback0//www.355548.live/algz/comments/commentRss/271910.html//www.355548.live/algz/services/trackbacks/271910.html ?此属性只有TabPanel子窗口才有效.



]]>
Ext.apply无法复制Ext.data.JsonStore{数据源相关的类?/title><link>//www.355548.live/algz/articles/271760.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Wed, 20 May 2009 09:39:00 GMT</pubDate><guid>//www.355548.live/algz/articles/271760.html</guid><wfw:comment>//www.355548.live/algz/comments/271760.html</wfw:comment><comments>//www.355548.live/algz/articles/271760.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/271760.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/271760.html</trackback:ping><description><![CDATA[var store2 = new Ext.data.JsonStore({});<br /> var store3={};<br /> Ext.apply(store2,magazine_store); //效果无用.store2仍引用magazine_store,无法独立使用.<br /> Ext.apply(store3,magazine_store); //效果同上.<br /> store3=Ext.apply(store2,magazine_store); //效果同上. <img src ="//www.355548.live/algz/aggbug/271760.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2009-05-20 17:39 <a href="//www.355548.live/algz/articles/271760.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ext.grid.gridPanel 无法在Ext.formPanel或Ext.window下加?解决Ҏ. - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/271344.html紫蝶∏飛揚↗紫蝶∏飛揚↗Mon, 18 May 2009 07:37:00 GMT//www.355548.live/algz/articles/271344.html//www.355548.live/algz/comments/271344.html//www.355548.live/algz/articles/271344.html#Feedback1//www.355548.live/algz/comments/commentRss/271344.html//www.355548.live/algz/services/trackbacks/271344.html 解决Ҏ:
(1)width:XX,height:XX
(2)anchor:"XX% XX%"   //?高分别所占父lg?高的癑ֈ?



]]>
l定GRID,formH口CRUD,自我感觉良好的手E代?/title><link>//www.355548.live/algz/articles/264782.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Fri, 10 Apr 2009 02:55:00 GMT</pubDate><guid>//www.355548.live/algz/articles/264782.html</guid><wfw:comment>//www.355548.live/algz/comments/264782.html</wfw:comment><comments>//www.355548.live/algz/articles/264782.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/264782.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/264782.html</trackback:ping><description><![CDATA[     摘要:   function author_crud(rs, mode) {// rs:l定选择的记?可直接操作媄响STORE     if (mode == "del") {//单独判断del       ...  <a href='//www.355548.live/algz/articles/264782.html'>阅读全文</a><img src ="//www.355548.live/algz/aggbug/264782.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.355548.live/algz/" target="_blank">紫蝶∏飛揚↗</a> 2009-04-10 10:55 <a href="//www.355548.live/algz/articles/264782.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ext.data.Record.create({...}) 使用说明. - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/263799.html紫蝶∏飛揚↗紫蝶∏飛揚↗Fri, 03 Apr 2009 09:44:00 GMT//www.355548.live/algz/articles/263799.html//www.355548.live/algz/comments/263799.html//www.355548.live/algz/articles/263799.html#Feedback4//www.355548.live/algz/comments/commentRss/263799.html//www.355548.live/algz/services/trackbacks/263799.htmlvar TopicRecord = Ext.data.Record.create([
    {name: 'title', mapping: 'topic_title'},
    {name: 'author', mapping: 'username'},
    {name: 'totalPosts', mapping: 'topic_replies', type: 'int'},
    {name: 'lastPost', mapping: 'post_time', type: 'date'},
    {name: 'lastPoster', mapping: 'user2'},
    {name: 'excerpt', mapping: 'post_text'}
]);

var myNewRecord = new TopicRecord({
    topic_title: 'Do my job please',
    username: 'noobie',
    topic_replies: 1,
    post_time: new Date(),
    user2: 'Animal',
    post_text: 'No way dude!'
});
myStore.add(myNewRecord);


Ext.data.Record.create({...});
Returns:  function
A constructor which is used to create new Records according to the definition.
Ҏ定义, q个构造函数是用来创造新的记录?

]]>
FormPanel.getForm().submit({...}) Ҏ是异步提? - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/263703.html紫蝶∏飛揚↗紫蝶∏飛揚↗Fri, 03 Apr 2009 03:51:00 GMT//www.355548.live/algz/articles/263703.html//www.355548.live/algz/comments/263703.html//www.355548.live/algz/articles/263703.html#Feedback0//www.355548.live/algz/comments/commentRss/263703.html//www.355548.live/algz/services/trackbacks/263703.htmlvar win = new Ext.Window({
  title : "读者资?,
  layout : "fit",
  items : [new Ext.FormPanel({
     id : "author_form",
     frame : true,
     labelWidth : 60,
     autoHeight : true,
     autoWidth : true,
     url : "author_json.jsp",
     buttons : [{
        text : "定",
        handler : function() {
         var f = this.ownerCt;
          Ext.getCmp("author_form").getForm().submit({
             success : function() {
              Ext.Msg.alert("success!");
             },
             failure : function() {
              // Ext.Msg.alert("failure!");
             }
            })

// 错误: 提交不了表单元素.原因: submitҎ是异步提?/span>,不等提交完成p?所以提前执行了关闭功能,无法提交数据.           
//f.ownerCt.close();         

}
       }],
     items : [new Ext.form.TextField({
        fieldLabel : "~号",
        name : "author_num"
       })]
    })]
 });
 win.show();



]]>
Ext.data.JsonStore 提交数据 - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/263587.html紫蝶∏飛揚↗紫蝶∏飛揚↗Thu, 02 Apr 2009 09:24:00 GMT//www.355548.live/algz/articles/263587.html//www.355548.live/algz/comments/263587.html//www.355548.live/algz/articles/263587.html#Feedback0//www.355548.live/algz/comments/commentRss/263587.html//www.355548.live/algz/services/trackbacks/263587.html var author_store = new Ext.data.JsonStore({
 fields : author_f,
 url : "webjson.faces",
 root : "author"// ,
  // baseParams:{webnam:"author"}   //也可在定义时指定参数.参数名相同时覆盖,如webname.
 });

一. load Ҏ.
author_store.load({
            params : {
             webname : "findnam",
             webvalue : v
            }
           });

传送页? webjson.faces
传送方? POST   //默认且不能修Ҏ?
传送内?webname=findnam  webvalue=v

?reload Ҏ
语法:  author_store.reload()    //无参?br /> 概述:  自动加蝲JsonStore. baseParams如定义则传参?没有则不传?


]]>
Extjs 查找FormPanel(也包括所有容?下的所有子lg - 棒球比分大小怎么算|վ//www.355548.live/algz/articles/263414.html紫蝶∏飛揚↗紫蝶∏飛揚↗Wed, 01 Apr 2009 09:36:00 GMT//www.355548.live/algz/articles/263414.html//www.355548.live/algz/comments/263414.html//www.355548.live/algz/articles/263414.html#Feedback3//www.355548.live/algz/comments/commentRss/263414.html//www.355548.live/algz/services/trackbacks/263414.html Extjs API 没有相关说明,因ؓ装到FindBy{相x法里.注意,Extjs也还是JS.FF跟踪可以查询?
var t1=formpanel.items.items[0]; //q回 formpanel W一个组?

?findBy( Function fcn, [Object scope] ) : Array
Extjs API 有相兌?
//t : items数组.
var t=f.findBy(function(){return true});

]]>
[转]常用正则表达式收?/title><link>//www.355548.live/algz/articles/263359.html</link><dc:creator>紫蝶∏飛揚↗</dc:creator><author>紫蝶∏飛揚↗</author><pubDate>Wed, 01 Apr 2009 06:47:00 GMT</pubDate><guid>//www.355548.live/algz/articles/263359.html</guid><wfw:comment>//www.355548.live/algz/comments/263359.html</wfw:comment><comments>//www.355548.live/algz/articles/263359.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.355548.live/algz/comments/commentRss/263359.html</wfw:commentRss><trackback:ping>//www.355548.live/algz/services/trackbacks/263359.html</trackback:ping><description><![CDATA[<p>正则表达式用于字W串处理、表单验证等场合Q实用高效。现一些常用的表达式收集于此,以备不时之需?br /> </p> <p>匚w中文字符的正则表辑ּQ?[\u4e00-\u9fa5]<br /> 评注Q匹配中文还真是个头疼的事,有了q个表达式就好办?/p> <p>匚w双字节字W?包括汉字在内)Q[^\x00-\xff]<br /> 评注Q可以用来计字W串的长度(一个双字节字符长度?QASCII字符?Q?/p> <p>匚wI白行的正则表达式:\n\s*\r<br /> 评注Q可以用来删除空白行</p> <p>匚wHTML标记的正则表辑ּQ?lt;(\S*?)[^>]*>.*?</\1>|<.*? /><br /> 评注Q网上流传的版本太糟p,上面q个也仅仅能匚w部分Q对于复杂的嵌套标记依旧无能为力</p> <p>匚w首尾I白字符的正则表辑ּQ^\s*|\s*$<br /> 评注Q可以用来删除行首行I白字符(包括I格、制表符、换늬{等)Q非常有用的表达?/p> <p>匚wEmail地址的正则表辑ּQ\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*<br /> 评注Q表单验证时很实?/p> <p>匚w|址URL的正则表辑ּQ[a-zA-z]+://[^\s]*<br /> 评注Q网上流传的版本功能很有限,上面q个基本可以满需?/p> <p>匚w帐号是否合法(字母开_允许5-16字节Q允许字母数字下划线)Q^[a-zA-Z][a-zA-Z0-9_]{4,15}$<br /> 评注Q表单验证时很实?/p> <p>匚w国内电话LQ\d{3}-\d{8}|\d{4}-\d{7}<br /> 评注Q匹配Ş式如 0511-4405222 ?021-87888822</p> <p>匚w腾讯QQP[1-9][0-9]{4,}<br /> 评注Q腾讯QQ号从10000开?/p> <p>匚w中国邮政~码Q[1-9]\d{5}(?!\d)<br /> 评注Q中国邮政编码ؓ6位数?/p> <p>匚ww䆾证:\d{15}|\d{18}<br /> 评注Q中国的w䆾证ؓ15位或18?/p> <p>匚wip地址Q\d+\.\d+\.\d+\.\d+<br /> 评注Q提取ip地址时有?/p> <p>匚w特定数字Q?br /> ^[1-9]\d*$    //匚w正整?br /> ^-[1-9]\d*$   //匚w负整?br /> ^-?[1-9]\d*$   //匚w整数<br /> ^[1-9]\d*|0$  //匚w非负整数Q正整数 + 0Q?br /> ^-[1-9]\d*|0$   //匚w非正整数Q负整数 + 0Q?br /> ^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$   //匚w正QҎ<br /> ^-([1-9]\d*\.\d*|0\.\d*[1-9]\d*)$  //匚w负QҎ<br /> ^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$  //匚w点?br /> ^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$   //匚w非负点敎ͼ正QҎ + 0Q?br /> ^(-([1-9]\d*\.\d*|0\.\d*[1-9]\d*))|0?\.0+|0$  //匚w非正点敎ͼ负QҎ + 0Q?br /> 评注Q处理大量数据时有用Q具体应用时注意修正</p> <p>匚w特定字符Ԍ<br /> ^[A-Za-z]+$  //匚w?6个英文字母组成的字符?br /> ^[A-Z]+$  //匚w?6个英文字母的大写l成的字W串<br /> ^[a-z]+$  //匚w?6个英文字母的写l成的字W串<br /> ^[A-Za-z0-9]+$  //匚w由数字和26个英文字母组成的字符?br /> ^\w+$  //匚w由数字?6个英文字母或者下划线l成的字W串<br /> 评注Q最基本也是最常用的一些表辑ּ</p> 转自://lifesinger.3322.org/myblog/?p=185<img src ="//www.355548.live/algz/aggbug/263359.html" width = "1" height = "1" /><br><br><div align=right><a href="//www.355548.live/" title="棒球比分大小怎么算">棒球比分大小怎么算</a> 2009-04-01 14:47 <a href="//www.355548.live/algz/articles/263359.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <script>(function(){ var src = (document.location.protocol == "") ? "//js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> {ganrao}