- 浏览: 1280693 次
- 性别:
- 来自: 杭州
最新评论
-
guo_guo_guo:
不错
Intellij IDEA 添加jar包的三种方式 -
颜若儒:
请问下,除了用session的方式 ,我采用redirectA ...
Spring验证的错误返回------BindingResult -
AlanJae:
讲得很清晰
Windows下Nginx+Tomcat整合的安装与配置(一)【精】 -
zmwxiaoming:
...
RabbitMQ学习一. 在windows下安装配置 -
iammabing:
感谢楼主,第一次使用idea,最后一步始终不成功,网上找了很多 ...
Intellij IDEA 导入Eclipse或MyEclipse的Web项目
文章列表
Java 判断多级路径是否存在,不存在就创建
方案一:
(带文件名的Path:如:D:\news\2014\12\abc.text)
public boolean isexitsPath(String path)throws InterruptedException{
String [] paths=path.split("\\\\");
StringBuffer fullPath=new StringBuffer();
for (int i = 0; i < paths.length; i++) {
...
Extjs 分页技术详细介绍和baseParams属性介绍
分页原理:1.Extjs分页是根据store.load({params:{start:0,limit:10}}); 中start,limit这两个参数来进行分页的。(1).当store第一次load的时候,start=0,limit=10;(2).当点击翻页按钮时,store进行load,此时 start=start+pageSize。 2.为了分页Json字符串中要加上totalProperty来表示记录的总条数。如:totalProperty:'total'3.后台的返回json中必须包含有totalProperty属性 ...
Servlet中Request,Response,Ajax,转发,重定向等的关系
一.Request设置参数,通过转发或者重定向,跳转到页面:
if ("specialDoc".equals(action)) {
String userName = null;
User user = (User) request.getSession().getAttribute("user");
if (user != null) {
userName = user.getUsername();
}
long id = Long.v ...
EL表达式和Jstl标签的理解和注意事项
一.定义:
1.EL表达式:
EL(Expression Language)是为了使JSP写起来更加简单的一种表达式语言。
(EL表达式详解)
2.Jstl标签:
JSTL(JSP Standard Tag Library,JSP标准标签库)是一个不断完善的开放源代码的JSP标签库。
(JSTL标签详解)
二.语法结构:
1.EL表达式:
${expression}
2.Jstl标签:
<c:if></c:if>等以字母c开头的标签
...
Extjs grid工具栏中搜索的实现
1.单选框+文本框:
{
id:"byXmmc",
xtype:"radio",
boxLabel:"按项目名称 ",
name:"ftype", //注意两个radio的name是一样的,才是一组的
listeners:{
"check":function(){
Ext.getCmp("paras").setValue("");//文本框置空
} ...
Extjs grid设置单元格字体颜色,单元格背景颜色,行背景颜色
一.在ColumnModel中用renderer渲染颜色:
1.不定义样式:
(1).字体颜色:
{
header:"审核状态",
dataIndex:"status",
width:100,
renderer:function(v){
if(v==1){
return "<span style='color:green;'>审核成功</span>";
}
else if(v==0){
...
ExtJS Tree刷新后自动展开并选择节点(二)
实例讲解:输入文件号查找文件,并将查找到的文件展示出来。
1.输入文件号点击查找:
tbar: [
{
xtype:'label',
text: '文件号:'
},{
xtype : 'textfield',
id: 'searchFor',
allowBlank: true,
width: 120
},{
text: '查找',
iconCls: 'filter',
...
Extjs中树与表格面板的单击即选中的解决方法
1.TreePanel中的单击即选中
tree.on("click",function(node){
if(!node.isLeaf){
node.toggle(); //单击触发目录的收缩展开
}
else{
node.ui.toggleCheck(); //单击使节点选中
}
});
2.GridPanel中的单击即选中
var sm = new Ext.grid.CheckboxSelectionModel();
sm.handleMouseDo ...
Extjs在IE浏览器中报 'events'为空或不是对象 或 'render'为空或不是对象 的问题
一.'events'为空或不是对象:1.问题描述: Extjs代码,在Chrome和FireFox中都不报错,在IE中报“'events'为空或不是对象”的错误。2.问题分析: 报这个错误的原因大多数是因为items中的最后一项多了一个逗号。3.问题解决示例:
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
tltie:"容器组件" ...
ExtJS Tree刷新后只选择节点,不展开(二)
实例讲解:点击触发域(Ext.form.TriggerField)三角按钮,弹出树面板窗口,并将触发域中的内容在树面板中选中。
1.点击触发域获取触发域中的内容:
policyTg.onTriggerClick=policytrig ...
ExtJS Tree刷新后只选择节点,不展开
实例讲解:通过点击岗位,将岗位对应的模块菜单给展开。
1..先对树进行全面加载(无须获取Path路径了):
moduleloader.on("load",function(treeLoader, node){
//将树面板先展开再关闭,用于将所有子节点显示出来!
module_tree.expandAll(); //注意!此处是将树面板全部展开!!!而不是节点!!!
module_tree.collapseAll();
module_root.expand();//展开根节点
}
注意 ...
ExtJS Tree刷新后自动展开并选择节点
实例讲解:通过点击岗位,将岗位对应的模块菜单给展开。
1.点击岗位获取对应模块菜单ID:
function check(node,checked){
if(checked == true){
//得到岗位对应的功能
Ext.Ajax.request({
url : 'user.up?doType=getModuleById',
params : {postID : node.id},
success : function(response, options) {
checkMo ...
Renderer解析和使用正则
一.Renderer解析:
1.理解:
renderer可以格式化该列显示的数据格式或者按照你自定义的脚本显示最终数据样子。
2.方法参数说明:
renderer:function(value, cellmeta, record, rowIndex, columnIndex, store) ...
GridPanel合并表头
注意:一定要引入插件的js文件
<script type="text/javascript" src="../js/ext/GroupHeaderPlugin.js"></script>
1.启动Extjs并布局:
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = '../js/ext/resources/images/default/s.gif';
Ext.state.Manager.setProvider(new Ext.state.Coo ...
Extjs中对于iFrame的使用
注:Extjs中没有iFrame,只能用html中的来代替!
方式:
在Extjs的元素中加上下面这句话:
html:"<iframe id='frame' name='frame' src='http://******' width=100% height=100%/>"
一.Jsp页面文件:
<%@page import="com.datanew.czfc.enterprise.entity.Enterprise"%>
<%@page import=" ...