jeecg问题汇总

(1)使用代码生成器后记得修改spring扫描配置路径entity,dao,control

control在jeecgsrcmain esourcesspring-mvc.xml中配置

entity,dao在jeecgsrcmain esourcesspring-mvc-hibernate.xml中配置


http://www.jeecg.org/forum.php?mod=viewthread&tid=1832&extra=
(2)entity配置注意配置上一层(配置文件路径:jeecgsrcmain esourcesspring-mvc-hibernate.xml)
正确:<value>com.jeecg.*</value>
错误:<!-- <value>com.jeecg.entity.*</value>-->

(3)列表字段过多情况下,实现左右拖动效果,参数设置
修改列表<t:datagrid ,设置参数, fitColumns="false"

(4)代码生成的jsp文件位置
/jeecg/src/main/webapp/webpage/com/jeecg/bsbudetails/bsBuDetailsList.jsp


(5)jeecg_config.properties中可以配置生成的package
/jeecg/src/main/resources/jeecg/jeecg_config.properties


(6)去掉首页聊天功能
/jeecg/src/main/webapp/webpage/main/hplus_main.jsp
注释:<!-- 在线聊天 -->
<%@include file="/context/layui.jsp"%>
(7)dgcol标签 Column(列) 子标签

frozenColumn boolean 是否冰冻列 默认否 FALSE
<t:dgCol title="用户名" sortable="false" field="userName" query="true" frozenColumn="true"></t:dgCol>

(8)JS增强实现POPUP的多赋值

http://www.jeecg.org/forum.php?mod=viewthread&tid=4364&fromuid=14695

(9)js增强实现查看每行数据

function view(){
var rowData = $('#tms_gl_voucherList').datagrid('getSelected');
if (!rowData) {
tip('请选择一条信息');
return;
}
var id = rowData.id;
createdetailwindow('查看','cgFormBuildController/ftlForm/tms_gl_voucher/goDetail.do?olstylecode=&load=detail&id='+id ,1000,700);

}

(10)列表新加操作按钮

jsp文件中:
<t:dgDefOpt title="查看" url="tmsVoucherController.do?goUpdate&id={id}" urlclass="ace_button" ></t:dgDefOpt>

(11)列表页面缺失下面的滚动条

对应jsp页面设置:<t:datagrid 标签
fitColumns="false"

(12)错误异常: CgReportNotFoundException

org.jeecgframework.core.online.exception.CgReportNotFoundException: 动态报表配置不存在! at

查看对应jsp页面中input的
onclick="popupClick(this,'kjqj','kjqj')"
onclick="popupClick(this,'kjqj','kjqj','kjqj')"

(12)主子表卡片页面分录缺失滚动条

src/main/java/org/jeecgframework/tag/core/easyui/TabsTag.java

去掉style中:
overflow-x:auto;overflow-y:auto;

(13)卡片页面字段设置不可编辑

input 设置 disabled

原文地址:https://www.cnblogs.com/nje19951205/p/11819359.html