ofbiz 自定义DIV的属性
来源:互联网 发布:web后端 数据库 编辑:程序博客网 时间:2024/06/05 03:39
http://widget/templates/htmlScreenMacroLibrary.ftl
增加要添加的属性
<#macro renderContainerBegin id style autoUpdateLink autoUpdateInterval autoAttr>
<#if autoUpdateLink?has_content>
<script type="text/javascript">ajaxUpdateAreaPeriodic('${id}', '${autoUpdateLink}', '', '${autoUpdateInterval}');</script>
</#if>
<div<#if id?has_content> id="${id}"</#if><#if style?has_content> class="${style}"</#if><#if autoAttr?has_content> ${autoAttr}</#if>>
修改DIV的处理类MacroScreenRenderer.java和ModelScreenWidget.java
String autoAttr=container.getAutoAttrExdr(context);
if(autoAttr!=null&&!autoAttr.trim().equals("")){
String [] attrs=autoAttr.trim().split("##");
String str=" ";
for(String attr:attrs){
if(attr==null||attr.trim().equals("")){
continue;
}
str+=" "+attr;
}
parameters.put("autoAttr", str);
}
this.autoAttrExdr = FlexibleStringExpander.getInstance(containerElement.getAttribute("auto-attr"));
- ofbiz 自定义DIV的属性
- Ofbiz: 自定义表单校验
- Ofbiz: 自定义表单校验
- Ofbiz: 自定义表单校验
- Ofbiz: 自定义表单校验
- div的属性
- 获取Div的属性
- div的contentEnable属性
- DIV的常用属性
- 10003--Div的属性
- div.style的属性
- div+css适合div的css属性
- <div>的display属性和visibility属性
- 自定义view的自定义属性
- 自定义控件的自定义属性
- 自定义控件的自定义属性
- 关于div的position属性
- div事件属性的介绍
- 网站如何集成支付宝!原来要给钱的
- android4.1.1 Settings WIFI模块浅析
- windows安装php5.4+apache2.4+Mysql5.5
- Oracle 检查命中率的SQL
- php 5.4 连接不上 mysql 的真正原因!!
- ofbiz 自定义DIV的属性
- centos FTP服务器的架设和配置
- 滤波电容的一点心得
- Error Creating Repository : Database Driver Event, Error occurred loading library libpmora8.so 创建资料
- HttpServletResponse对象
- C/C++ 传递动态内存
- CentOS开机自动运行程序的脚本
- seajs 模块化代码的初步学习
- android调用高版本api函数的兼容性问题