2012 年文章归档
共 7 篇文章
jquery getJson IE下再次调用回调函数无效不起作用解决
项目使用jqery combox ajax 下拉列表,在IE下第一次打开没有问题可从后台获得数据,但是的二次打开不能从后台获得最新数据,跟踪发现第二次打开回调函数没有起作用,仍然是上次老数据。在firefox和Chrome下则没有这个问题。 后发现是jquery ajax 缓存设置问题。原来数据被IE缓存了,原来getJSON是jquery数据交互中的第三层,最底层就是$.ajax(),$.ajax()中有个 cache 参数,将其改为false,就能解决上述问题。 代码修改如下 $.ajaxSetup({ async:false, cache:false )}; $.ajax()的参数列表…
2012-11-11 06:51 · JavaScript
随机出现“No result defined for action ....Action and result input”解决
最近一次系统升级,随机出现编辑原来数据库数据失败问题,而如果修改这个action所有数据则可以成功,新添加再修改也可以成功。跟踪发现系统报错: No result defined for action com.jim.web.action.appointment.AppointmentAction and result input com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:376) com.opensymphony.xwork2.DefaultActio…
2012-11-11 00:53 · Struts · JavaScript
注解大小写引起远程tomcat7部署错误“Struts has detected an unhandled exception” 解决
项目为JPA+SSH,本地开发环境为Myeclipse+tomcat7,其中tomcat7为windows安装版。项目测试没有问题。通过Myeclipse 生成war,然后部署到远程服务器Linux+Tomcat7上,结果出现以下错误 Struts Problem Report Struts has detected an unhandled exception: Messages: Table 'db.Role' doesn't exist could not execute query org.hibernate.exception.SQLGrammarException: could …
2012-11-08 07:28 · EJB3、JPA及其相关 · Srping · Struts · Hibernate
javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: N
环境Hibernate+jpa2 ,新增加int 字段,出异常如下 javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of...... 原因:bean中新添加的字段是int类型 private int employeeid; @Column(name=calendar_employeeid) public intgetEmployeeId() { return …
2012-10-04 01:45 · EJB3、JPA及其相关 · Hibernate
SSH+JPA 只能执行一次add操作,解决办法
环境SSH+JPA2,出现一个很奇怪问题,每当重启服务器只能执行一次add操作,异常报错为: javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.dalton.domain.Department org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException .....................................…
2012-06-24 05:41 · EJB3、JPA及其相关
EasyUI(v1.26) Combox 几种使用方发与BUG
EasyUI(v1.26) Combox 可以内嵌radio tree等,使用灵活方便。但是也有BUG不方便的地方。 使用方法一,使用json设置和传递Combox值。 <td>Gender</td> <td><input name="gender" id="editPerson_gender" class="easyui-combobox" style="width:60px" url="combobox_data_gender.json" valueField="id" textField="gender" required="true" editable="false" > </inp…
2012-06-09 00:56 · JavaScript
给li 标签添加图标的三种方法
1.使用CSS的特殊属性 ul{list-style-type:disc;} //disc的作用是在每个li前加一个黑点,其他常用的有square:黑色方块;none:无列表样式;decimal:数字; 你还可以控制图标在li标签的外面还是里面,如 ul{list-style-position:inside;}或者outside 如果你想加入自己定义的图案,可用 ul{list-style-image:url(图片地址);} 当然这还可以配合position使用。 但是我从来不适用以上属性,我也不建议大家使用,为什么呢? 首先,ul的list-style-type在不同浏览器下显示的点或者方…
2012-05-29 14:19 · JavaScript