随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  开源项目 - OFBiz

摘要:ContainerLoader类实现StartupLoader接口,目的是装入各种Container容器。 ContainerLoader会以三种方式寻找Container。第一种方式从配置文件中找,默认的配置文件是framework/base/config/ofbiz-containers.xml 阅读全文

posted @ 2016-03-28 11:17 eastson 阅读(939) 评论(0) 推荐(0) 编辑

摘要:任意一个JAVA程序都是从main()开始启动的,OFBIZ也不例外。OFBIZ的main()位于framework/start/src/org/ofbiz/base/start/Start.java: OFBIZ的main()过程可以简单理解为两个步骤:init()和start()。init()初 阅读全文

posted @ 2016-03-28 10:31 eastson 阅读(933) 评论(0) 推荐(0) 编辑

摘要:这是OFBiz实战系列的第一篇文件,该系列的目的是整合Groovy+FreeMaker开发一个图书管理系统,阐述在此过程中碰到的一系列问题,以及如何解决这些问题。第一篇文章说明如何使用Groovy+FreeMaker搭建基本的组件框架,并能够将数据从Groovy传到FreeMaker。|1. 在hot-deploy目录下创建组件library基本目录结构。2. 新建文件library/ofbiz-component.xml,编辑内容: 3. 新建文件library/webapp/library/WEB-INF/web.xml,编辑内容: Librar... 阅读全文

posted @ 2014-03-13 11:36 eastson 阅读(1439) 评论(0) 推荐(0) 编辑

摘要:这里的doRequest()是指RequestHandler中的同名函数:public void doRequest(HttpServletRequest request, HttpServletResponse response, String chain, GenericValue userLogin, Delegator delegator) throws RequestHandlerException { ... }下面以http://localhost:8080/practice/control/main?foo=xxx&bar=yyy为例演示说明一下整个doR... 阅读全文

posted @ 2014-03-10 15:27 eastson 阅读(3088) 评论(0) 推荐(0) 编辑

摘要:这里的nextRequestResponse是指RequestHandler中doRequest()函数在最后使用的一个变量,doRequest()会依据nextRequestResponse返回不同的响应给请求者。nextRequestResponse有多种不同的类型,不同的类型处理方式也不一样。第一种类型是request,表明这是一个请求链,递归调用doRequest()处理下一个请求:// // // if ("request".equals(nextRequestResponse.type)) { // chained request doRequest(reque 阅读全文

posted @ 2014-03-07 11:05 eastson 阅读(1289) 评论(0) 推荐(0) 编辑

摘要:RequestHandler,可以称之为请求处理器,在ControlServlet.init()中初始化:public class ControlServlet extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); // configure custom BSF engines configureBsf(); // initialize the req... 阅读全文

posted @ 2014-03-05 11:43 eastson 阅读(580) 评论(0) 推荐(0) 编辑

摘要:原文地址:http://www.cnblogs.com/ofbiz/p/3205851.html1.打开themes文件夹,拷贝一份样式作为自己的样式更改初始样式,我这里拷贝的是flatgrey文件夹,重新命名为qlstyle。2.在文件/ofbiz/framework/common/config/CommonEntityLabels.xml中找要在页面显示的数据,默认这些数据都不存在中文 ,你可以在你新建的标签中添加中文资源。 后台管理模块样式3.修改 文件ofbiz/themes/qlstyle/ofbiz-component.xml中相关的程序名等。 ... 阅读全文

posted @ 2014-03-03 14:32 eastson 阅读(733) 评论(0) 推荐(0) 编辑

摘要:OFBiz使用了大量的配置文件,整个过程有点复杂。这里将配置过程大略整理了一下,方便后面查阅。第一层:org.ofbiz.base.start.Start启动类。该类载入org/ofbiz/base/start/start.properties定义的载入类loader,可以定义多个载入类,最典型的载入类是org.ofbiz.base.container.ContainerLoader。# --- Location (relative to ofbiz.home) for (normal) container configurationofbiz.container.config=framewo 阅读全文

posted @ 2014-03-03 10:10 eastson 阅读(618) 评论(0) 推荐(0) 编辑

摘要:component-load.xml定义了OFBiz的组件载入位置,默认的是通过目录来设置: 其实也可以通过component-location设置具体的组件位置: 阅读全文

posted @ 2014-02-28 16:40 eastson 阅读(438) 评论(0) 推荐(0) 编辑

摘要:默认的,OFBiz会在framework、applications、specialpurpose、hot-deploy这几个目录寻找组件,在themes目录中寻找主题。OFBiz是通过framework\base\config\component-load.xml定义这些为位置的: 阅读全文

posted @ 2014-02-25 14:07 eastson 阅读(296) 评论(0) 推荐(0) 编辑

摘要:如何添加实体栏位?这里演示为PostalAddress添加planet栏位。打开applications/party/entitydef/entitymodel.xml,找到PostalAddress,添加planet栏位:上面只是修改的实体的定义,但是还没有影响到底层的数据库表结构。重启OFBiz,在console.log中应该有类似下面的内容:[ DatabaseUtil.java:390:WARN ] Entity [PostalAddress] has 19 fields but table [OFBIZ.POSTAL_ADDRESS] has 18 columns.[ Databas 阅读全文

posted @ 2014-02-25 11:50 eastson 阅读(405) 评论(0) 推荐(0) 编辑

摘要:如何扩展controller.xml?两种方法:一种方法是直接修改原先的controller.xml,这种方法不方便后续升级。第二种方法是新建一个extended.xml文件,再在controllerm.xml中include新建的文件。 阅读全文

posted @ 2014-02-25 11:32 eastson 阅读(264) 评论(0) 推荐(0) 编辑

摘要:1. 首先要安装好OFBIZ,参考《OFBIZ安装》。2. 安装ECLIPSE。3. 安装FreeMarker插件,这是OFBIZ的模版引擎。在"Eclipse Marketplace..."搜索"JBoss Tools",点击"Install",然后选择"FreeMarker IDE".4. 关联*.bsh编辑器Windows > Preferences > General > Editors > File Associations:5. 导入OFBIZ项目File > Import 阅读全文

posted @ 2013-07-17 11:43 eastson 阅读(2166) 评论(2) 推荐(1) 编辑

摘要:1. 安装SVN客户端,从Apache OFBiz Source Repository获取OFBIZ下载地址。此处以12.04为例,下载地址为http://svn.apache.org/repos/asf/ofbiz/branches/release12.04/: 2. 安装JDK 1.6,不是JR 阅读全文

posted @ 2013-07-17 09:24 eastson 阅读(1499) 评论(0) 推荐(0) 编辑

摘要:0. OFBIZTutorials1.A Tour of OFBiz2.Entities and Services - Data Models and Business Logic in OFBiz3. Hello World 1 | 2 | 34.OFBiz初学者的开发指南|实体引擎指南5.Apache OFBiz (Open For Business) Wiki6.OFBiz Tutorial - A Beginners Development Guide7.Apache OFBiz Getting Started8.OFBiz Tutorials9.ofbiz权限判断语法整理 阅读全文

posted @ 2013-07-16 16:08 eastson 阅读(304) 评论(0) 推荐(0) 编辑

摘要:These tutorials are designed to give you a basic knowledge of developing applications with OFBiz. Please read them in sequence. If you find any errors, please let us know.OFBiz in a Nutshell(PDF) - General overview of Open For Business.Running OFBiz- a short guide on how to run OFBiz.Developing Appl 阅读全文

posted @ 2012-08-06 08:59 eastson 阅读(482) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示