您的位置:首页 > 编程语言 > Java开发

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"
/>
调用就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java ofbiz