Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Lots of English and updated bad links up to start of Part 1

This tutorial document is developed for targeted at OFBiz beginners. It will help learn covers the fundamentals of the OFBiz application development process. Aim behind the creation The goal of this tutorial is to acquaint a developer with best practices, coding conventions and . the control flow and many morethings that the developer needs to know in order to modify OfBiz. This practice exercise acts as the "Helloworld" for OFBiz similar as to the first Helloworld application used when the programming "C" programming language was introduced by Kernighan and Richie.

Info
titleImportant!

This tutorial is intended to be used with the latest SVN revision. It will not work with Release 4version of OfBiz.

For any questions or concerns please use User Mailing List. To subscribe to a Details about the mailing list details are available here: https://cwiki.apache.org/OFBADMIN/mailing-lists.htmlat: Apache OFBiz User List

Info
titleSource Code!

OFBiz
Download Apache OFBiz™
OFBiz Source Repository and Access

Tutorial
If you want take a quick reference of this tutorial, The source code for the Practice Application demonstrated in here this tutorial can be downloaded from here: Download Source Code

Framework Introduction Videos
These are old but still worth watching if you want. You can watch In parallel with the development of this application,you can view OFBiz videos, which are available at Framework Introduction Videos , in parallel with the development of this application.and Diagrams,

Table of Contents

Creating Practice Application (Hello World...)

...

This tutorial is divided in 6 Parts as:

Part 1:  In this part, you will learn how to create and load your own component ( custom component ) and add first screen (view) to show that shows “This is practice application”

Part 2: Going ahead, you will create some advanced GUI patterns, interact with existing database table tables and will learn how to secure your web application.

Part 3: Here you learn interacting with database entities, you will write services for performing CRUD operations (Create, RetriveRetrieve, Update, Delete) and event events for form fields field validation purpose.

Part 4: Now In Part 4, you will learn how to call automatic triggers (service(s)services) based on your defined condition(s) entity(EECA)/service based(SECA), calling conditions that your define.  Calling multiple
services as group and share sharing common parameters of services by implementing/ using the concept of interfaceinterfaces will be discussed.

Part 5: In this part of the tutorial you will create your custom entity, extend an existing OOTB OfBiz entity and prepare xml the XML data for your application.

Part 6: At the final step you will ajaxify request to set a communitcation use Axis to allow communication between client and server side applicationapplications. After completing this application, you will become an OFBiz developer. (smile)

...

  1. For any additional queries and concerns you can refer to the Example component. You will always find the code in the example component to be reflect the latest code version of OFBiz. Take reference Refer to it, whenever you want to see some sample code for the development of this application, this . This will help you in future developments development activities as well.
    Every When each new feature is first added, it is added in the Example component for the referencesas a reference.
  2. Before starting the development of this application you must read the contents from :
    1. OFBiz Contributors Best Practices ,
     
    1.   
    2. Coding Conventions
    and
    1.  and
    2. Best Practices Guide
  3. Don't copy any file files from other componentcomponents, as the revision number for the file is also copied. Always create a new file and, if required, then copy  copy and paste the contents of the original file. " Also be conscious about the careful to remove any unused code as well.
  4. For searching for any of the document documents the best place to start is at : OFBiz Documentation Index.
  5. Right from the beginning, reading the console log must be a habit to make troubleshooting easy and . It also gives an understanding of the system well.You can find the source code of this application attached with this document that you are going to develop but it is preferred to just take reference from it. It can be downloaded from here: Download Source (wink)'s internal processing steps.

Part 1

Create a Component

  1. Create the sub-directory (folder) in hot-deploy/ and name it "practice"(hot-deploy/practice). The directory name should match the new components name that we are creating.
    Note : Remember that all customized development is done at this place only. 
  2. Create the ofbiz-component.xml file on path hot-deploy/practice and place the following content in it (for reference you can check this file in any other component of OFBiz):

    Code Block
    <?xml version="1.0" encoding="UTF-8"?>
    <ofbiz-component name="practice"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
          <resource-loader 	name="main" type="component"/>
        <webapp name="practice"
           title="Practice"
           server="default-server"
           base-permission="OFBTOOLS"
           location="webapp/practice"
           mount-point="/practice"
           app-bar-display="false"/>
    </ofbiz-component>
    

...