`
文章列表
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> //示例代码: //只允许输入数字与.:<input type="text" name="test" id=&quo ...
将数组转化成List String[] array = ids.split(","); List<String> list = Arrays.asList(array); 将list转化成数组            List<String> list = Arrays.asList(array); String[] array = list.toArray();
查看 logs/catalina.out文件从8703000行开始后的200行 cat logs/catalina.out | tail -n +8703000 | head -n 200
通过给Grid设置BufferView来让它延迟加载,边滚动边加载 BufferView bufferView = new BufferView(); bufferView.setRowHeight(26); bufferView.setCacheSize(300); bufferView.setBufferEnabled(true); bufferView.setScrollDelay(1); grid.setView(bufferView);
1.报org.hibernate.HibernateException: No Session found for current thread错误 把hibernate中这项配置注释掉   <!--<prop key="hibernate.current_session_context_class">thread</prop>--> 并把Service中的事务   @Transactional(propagation=Propagation.REQUIRED .... 配置成REQUIRED,或其他需要事务的配置,如果是NOT_SUPP ...

GWT用frame调用JSP

    博客分类:
  • GWT
Frame htmlFrame = new Frame("../OurHome/modules/core/mainIndex.jsp?merchantId="+merchantId+"&columnId="+columnId);             htmlFrame.removeStyleName(htmlFrame.getStyleName());             DOM.setElementPropertyInt(htmlFrame.getElement(), "frameBorder", 0);        ...

EXTJS4下拉选择树

extjs4下拉选择树,代码是从网上找到的。 控件源代码: Ext.define('Ext.tree.ComboTree',{ extend :"Ext.form.field.Picker", alias: 'widget.combotree', requires: ['Ext.form.*','Ext.tree.Panel'], rootText:this.rootText||'root', rootId:this.rootId||'0 ...
extjs中combobox取值会取到显示值,取不到value值,所以在表单提交的时候不能用form.submit();要把所有的值都取出来用ajax提交。 ComboBox代码 Ext.define('App.view.RoleComboBox',{ extend:'Ext.form.ComboBox', alias:['widget.roleComboBox'], fieldLabel:'Role', valueField:'id', displayField:'name', name:'role', hiddenN ...

extjs4使用google map

首先引入JS     <script src="../ext4/examples/ux/GMapPanel.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=zh-CN"></script> 其中GMapPanel.js是extjs中自带的,代码是 /** * @author Shea Freder ...
   EXTJS4与FCKeditor整合:   1.自定义CKeditor控件,继承自textArea Ext.define('Ext.ux.form.CkEditor', { extend: 'Ext.form.field.TextArea', alias: 'widget.ckeditor', onRender : function(ct, position){ if(!this.el){ this.defaultAutoCreate = { tag: "te ...
    一开启tomcat调试就卡,一停马上就有反应,这种情况一般点设置了断点的原因,可以在启动的tomcat的界面点击查看断点 并将图中的勾去掉,一般就可以了.

转:JPA注解

    博客分类:
  • SSH
1、@Entity(name="EntityName") 必须,name为可选,对应数据库中一的个表 @Entity //标识这个pojo是一个jpa实体     public class Users implements Serializable {     } 2、@Table(name="",catalog="",schema="") 可选,通常和@E ...
spring 与jpa整合抛Not supported by BasicDataSource 异常, 要把spring 里面hibernate里配置数据源的部分注释掉 <bean id="sessionFactory"           class="org.springframework.orm.hibernate4.LocalSessionFactoryBean" >         <property name="dataSource" ref="dataSource"/>       ...
前两天需要在项目里配置json-lib来处理一下json数据。 于是在pom.xml里配置json-lib的依赖。 配置如下:         <dependency>             <groupId>net.sf.json-lib</groupId>             <artifactId>json-lib</artifactId>             <version>2.4</version>         </dependency> 但是配置完了之后package的时 ...
PostMethod setFollowRedirects(true);设置为ture,保证跳转后参数不丢失.
Global site tag (gtag.js) - Google Analytics