ofbiz错误处理之二

来源:互联网 发布:linux ubuntu jar命令 编辑:程序博客网 时间:2024/04/30 05:03

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" />

调用就可以了

0 0