ofbiz错误处理之二
2016-12-09 18:07
253 查看
screen widgets是通过OFBiz中一个screen widgets处理器处理的。在目录${webapp:learning}\WEB-INF中,新建controller.xml文件,并输入如下内容:
---------------------------------------------------
<?xmlversion="1.0"encoding="UTF-8"?>
<site-confxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
<description>Learning Module Site Configuration File</description>
<handlername="screen"type="view"class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
</site-conf>
因为版本问题,博主学习的时候,ofbiz代码已经集合到common/webcommon/WEB-INF/handlers-controller.xml中了,所以粉红色部分就不用这样写,以后同样的handler处理就可以直接使用
<include location="component://common/webcommon/WEB-INF/common-controller.xml" />
或者
<include location="component://common/webcommon/WEB-INF/handlers-controller.xml"
/>
调用就可以了
---------------------------------------------------
<?xmlversion="1.0"encoding="UTF-8"?>
<site-confxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
<description>Learning Module Site Configuration File</description>
<handlername="screen"type="view"class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
</site-conf>
因为版本问题,博主学习的时候,ofbiz代码已经集合到common/webcommon/WEB-INF/handlers-controller.xml中了,所以粉红色部分就不用这样写,以后同样的handler处理就可以直接使用
<include location="component://common/webcommon/WEB-INF/common-controller.xml" />
或者
<include location="component://common/webcommon/WEB-INF/handlers-controller.xml"
/>
调用就可以了
相关文章推荐
- java对世界各个时区(TimeZone)的通用转换处理方法(转载)
- java-注解annotation
- java-模拟tomcat服务器
- java-用HttpURLConnection发送Http请求.
- java-WEB中的监听器Lisener
- Android IPC进程间通讯机制
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- Debian 7.x 安装Oracle JAVA
- springmvc实现url路由功能
- spring boot 配置 druid/** * 配置druid * Created by adam on 4/11/16. */ @Configuration public class D
- api接口rsa加密
- 介绍一款信息管理系统的开源框架---jeecg
- 聚类算法之kmeans算法java版本
- java实现 PageRank算法
- PropertyChangeListener简单理解