grid

          grid

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            78 Posts :: 0 Stories :: 62 Comments :: 0 Trackbacks
          表格:過濾行
                          
                               

          參考示例行過濾
                     

          一:定義過濾器         

          設(shè)置表格"showFilter"屬性為"true"后,可以在列配置對(duì)象上定義過濾器對(duì)象:

          <div field="name" width="120" headerAlign="center" allowSort="true">姓名
              <!--定義此列的過濾器對(duì)象,注意property="filter"-->
              <input id="nameFilter" property="filter" class="mini-textbox" onvaluechanged="onNameFilterChanged" style="width:100%;" />
          </div>   
                     

          二:處理"valuechanged"事件      

          在"onvaluechanged"值變化時(shí),會(huì)自動(dòng)調(diào)用一個(gè)過濾方法onNameFilterChanged。此方法由開發(fā)者實(shí)現(xiàn),如下:

          function onNameFilterChanged(e) {
              var textbox = e.sender;
              var key = textbox.getValue();
          
              grid.load({ key: key });
          }
          
          posted on 2012-11-08 15:46 nikofan 閱讀(4792) 評(píng)論(10)  編輯  收藏

          Feedback

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七) 2012-11-09 08:48 121212
          <servlet>

          <description>Dispatcher Servlet for EXTDispatcher</description>

          <servlet-name>EXTDispatcher</servlet-name>

          <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

          <load-on-startup>1</load-on-startup>

          </servlet>



          <servlet-mapping>

          <servlet-name>EXTDispatcher</servlet-name>

          <url-pattern>/hwdispatcher/*</url-pattern>

          </servlet-mapping>

            回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七) 2012-11-09 08:55 121212
          <?xml version="1.0" encoding="UTF-8"?>
          <context:annotation-config />

          <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>

          <context:component-scan base-package="ext.xxx.part" />



          <bean id="extDirectSpringConfiguration" class="ch.ralscha.extdirectspring.controller.Configuration"

          p:sendExceptionMessage="true"

          p:sendStacktrace="true">

          <property name="exceptionToMessage">

          <map>

          <entry key="java.lang.IllegalArgumentException"

          value="illegal argument"/>

          <entry key="org.springframework.beans.factory.NoSuchBeanDefinitionException">

          <null/>

          </entry>

          </map>

          </property>

          </bean>

          <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">

          <property name="prefix" value="/WEB-INF/jsp/huawei/" />

          <property name="suffix" value=".jsp" />

          </bean>

          <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver" p:defaultEncoding="utf-8" >

          <property name="maxInMemorySize" value="10240" />

          </bean>

          <mvc:annotation-driven validator="validator" />


          <!-- Creates the JSR-303 Validator -->

          <bean id="aggregateResourceBundleLocator" class="org.hibernate.validator.resourceloading.AggregateResourceBundleLocator">

          <constructor-arg>

          <list>

          <value>ext.huawei.iris.message.hw_workflow</value>

          </list>

          </constructor-arg>

          </bean>

          <bean id="RBMessageInterpolator" class="org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator">

          <constructor-arg ref="aggregateResourceBundleLocator"/>

          </bean>

          <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">

          <property name="messageInterpolator" ref="RBMessageInterpolator"/>

          </bean>

          <!-- Changes the locale when a 'locale' request parameter is sent -->

          <bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"/>

          <bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">

          <property name="velocityProperties">

          <value>

          resource.loader=class

          class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

          input.encoding=UTF-8

          output.encoding=UTF-8

          default.contentType=text/html;charset=UTF-8

          </value>

          </property>

          </bean>

          </beans>  回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七)[未登錄] 2012-11-21 15:12 1
          1.Apache配置
          備份Apache\conf\extra\app-Windchill-Auth.conf,然后打開編輯,在最后一行添加
          <LocationMatch ^/+Windchill/+hwdispatcher(;.*)?>
          AuthzLDAPAuthoritative off
          AuthName "Windchill"
          AuthType Basic
          AuthBasicProvider Windchill-EnterpriseLdap Windchill-AdministrativeLdap
          require valid-user
          </LocationMatch>

          備份Apache\conf\extra\app-Windchill-AJP.conf,然后打開編輯,
          將原文件中該內(nèi)容替換為以下內(nèi)容:
          <IfModule mod_proxy_ajp.c>
          # ProxyPassMatch ^(/Windchill/((?i).*\.jsp(.*)|servlet/.*|go/.*|(?i).*\.do(.*)))$ balancer://ajpWorker$1 nocanon
          ProxyPassMatch ^(/Windchill/((?i).*\.jsp(.*)|servlet/.*|.*\.jar|gwt(/.*)?/servlet/.*|ptc1/.*|app|app/.*|hwdispatcher/.*))$ balancer://ajpWorker$1 nocanon
          </IfModule>

          2.配置web.xml
          備份Windchill\codebase\WEB-INF\web.xml
          在servlet配置后增加
          <!-- hw Iris-->
          <servlet>
          <description>Ext Dispatcher Servlet for Iris</description>
          <servlet-name>ExtDispatcher</servlet-name>
          <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
          </servlet>
          在servlet-mapping后增加
          <!-- hw Iris-->
          <servlet-mapping>
          <servlet-name>ExtDispatcher</servlet-name>
          <url-pattern>/hwdispatcher/*</url-pattern>
          </servlet-mapping>


          4.備份WEB-INF/lib
          刪lib包下的org.spring.* 的jar包
          刪除lib下的
          jackson-core-asl-1.8.4.jar,
          jackson-mapper-asl-1.9.1.jar
          拷貝Spring3.0.4_Release.jar 包到WEB-INF/lib包下。
            回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七) 2012-11-26 11:47 212
          httpd.conf內(nèi)
          AddHandler type-map var 注釋取消

          Include conf/extra/additions.conf前插入下面配置。
          ExpiresActive on
          ExpiresByType image/gif "access plus 30 days"
          ExpiresByType image/png "access plus 30 days"
          ExpiresByType image/jpeg "access plus 30 days"

          <IfModule mod_deflate.c>
          DeflateCompressionLevel 9
          AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php application/javascript
          </IfModule>

          app-Windchill-Auth.conf文件內(nèi)

          <LocationMatch ^/+Windchill/+hwdispatcher(;.*)?>
          AuthzLDAPAuthoritative off
          AuthName "Windchill"
          AuthType Basic
          AuthBasicProvider Windchill-EnterpriseLdap Windchill-AdministrativeLdap
          require valid-user
          </LocationMatch>

          app-Windchill-AJP.conf 文件內(nèi)增加紅色部分
          # Delegate specific web app requests to Tomcat by request URL

          <IfModule mod_jk.c>
          JkMount /Windchill/*.jsp ajpWorker
          JkMount /Windchill/*.jspx ajpWorker
          JkMount /Windchill/*.jspf ajpWorker

          JkMount /Windchill/*.jsp/* ajpWorker
          JkMount /Windchill/*.jspx/* ajpWorker
          JkMount /Windchill/*.jspf/* ajpWorker

          JkMount /Windchill/*.jar ajpWorker

          JkMount /Windchill/servlet/* ajpWorker
          JkMount /Windchill/gwt/servlet/* ajpWorker
          JkMount /Windchill/gwt/*/servlet/* ajpWorker
          JkMount /Windchill/ptc1/* ajpWorker
          JkMount /Windchill/app/* ajpWorker
          JkMount /Windchill/app ajpWorker
          JkMount /Windchill/hwdispatcher/* ajpWorker
          </IfModule>
          (3)Site.conf配置

          <Property name="iris.cfg.home" overridable="true"
          targetFile="codebase/wt.properties"
          value="$(wt.home)/codebase/ext/huawei/iris/cfg"/>
          <Property name="iris.cfg.email" overridable="true"
          targetFile="codebase/wt.properties"
          value="$(iris.cfg.home)/emailTemplate"/>
          <Property name="iris.cfg.rooturl" overridable="true"
          targetFile="codebase/wt.properties"
          value="hwdispatcher/iris/"/>
          <Property name="iris.cfg.extjs.home" overridable="true"
          targetFile="codebase/wt.properties"
          value="$(wt.home)/codebase/navigator/resources/extjs/huawei/"/>
            回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七)[未登錄] 2012-11-26 11:54 1
          <script type="text/javascript" src="resources/ext-tpdm/adapter/ext/ext-base.js"></script>
          <script type="text/javascript" src="resources/ext-tpdm/ext-all-debug.js"></script>
          <script type="text/javascript" src="/Windchill/dispatcher/api.js?group=workspace,admintools"></script>  回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七) 2012-11-26 12:08 121
          <script type="text/javascript" src="resources/ext-tpdm/adapter/ext/ext-base.js"></script>
          <script type="text/javascript" src="resources/ext-tpdm/ext-all-debug.js"></script>
          <script type="text/javascript" src="/Windchill/dispatcher/api.js?group=iris,workspace,admintools">
          </script>
          @ExtDirectMethod(value = ExtDirectMethodType.STORE_READ, group = "part")
          @RequestMapping(value = "/getUsageLinkFromFile", method = RequestMethod.POST)  回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七) 2012-11-26 12:13 23
          org.springframework-3.0.4.RELEASE.jar
          org.springframework.beans-3.0.4.RELEASE.jar  回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七)[未登錄] 2012-11-26 14:21 1
          <beans xmlns="replacewww.springframework.org/schema/beans"

          xmlns:mvc="replacewww.springframework.org/schema/mvc"

          xmlns:xsi="replacewww.w3.org/2001/XMLSchema-instance" xmlns:p="replacewww.springframework.org/schema/p"

          xmlns:context="replacewww.springframework.org/schema/context"

          xsi:schemaLocation="replacewww.springframework.org/schema/beans

          replacewww.springframework.org/schema/beans/spring-beans-3.0.xsd

          replacewww.springframework.org/schema/aop replacewww.springframework.org/schema/aop/spring-aop-3.0.xsd

          replacewww.springframework.org/schema/tx replacewww.springframework.org/schema/tx/spring-tx-3.0.xsd

          replacewww.springframework.org/schema/mvc

          replacewww.springframework.org/schema/mvc/spring-mvc-3.0.xsd

          replacewww.springframework.org/schema/context replacewww.springframework.org/schema/context/spring-context-3.0.xsd">

          <context:annotation-config />

          <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
            回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七)[未登錄] 2012-11-26 14:23 1
          <context:component-scan base-package="ch.ralscha.extdirectspring" />
            回復(fù)  更多評(píng)論
            

          # re: jQuery MiniUI 開發(fā)教程 表格控件 表格:過濾行(七) 2013-05-10 15:14 對(duì)減肥空間的撒
          啦啦啦啦啦  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 乌兰浩特市| 滕州市| 东乡县| 泰宁县| 和田县| 广饶县| 武邑县| 甘泉县| 佛冈县| 鄂尔多斯市| 东乡族自治县| 鹤壁市| 连平县| 舟曲县| 绩溪县| 淅川县| 岚皋县| 兰坪| 静宁县| 平谷区| 鄂尔多斯市| 郯城县| 新兴县| 双牌县| 吉安县| 双鸭山市| 朝阳县| 疏勒县| 永平县| 迭部县| 保山市| 东兴市| 承德县| 中江县| 永新县| 桑日县| 卓资县| 拉孜县| 油尖旺区| 长沙市| 桃园市|