Free Sample
+ Collection

Apache OFBiz Development: The Beginner's Tutorial

Beginner's Guide
Jonathon Wong, Rupert Howell

Using Services, Entities, and Widgets to build custom ERP and CRM systems
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847194008
Paperback472 pages

About This Book

  • Understand how OFBiz is put together
  • Learn to create and customize business applications with OFBiz
  • Gain valuable development and performance hints
  • A fully illustrated tutorial with functional step-by-step examples

Who This Book Is For

This book is for developers who want to build easily deployed and supported OFBiz applications. No previous knowledge of OFBiz is assumed, but readers should be comfortable in a Java development environment.

Table of Contents

Chapter 1: Getting Started with OFBiz
Getting the OFBiz Code
Downloading and Installing SVN
Installing the Java Development Kit (JDK)
Downloading OFBiz Ready to Launch
Setting Up an Eclipse Project
Using Derby—the OFBiz Stock Database
Running OFBiz
Switching Off OFBiz
Our First Tour of OFBiz
Chapter 2: Working with OFBiz
Adding Our First Field
Resetting Our Play Area Quickly
The Structure of OFBiz in General
The Model-View-Controller Architectural Pattern
Chapter 3: Screen Widgets
Equipping Our Webapp with a Screen Widget View Handler
Using the Screen Widget View Handler
Files and Locations
Creating Our First Screen Widget
The Anatomy of the <section> Element
Nested Sections for Nested Conditions
Organizing a Large Screen into Smaller Screens
Screen Widget's Integration with FreeMarker
Cleaning Up in the "party" Component
Commenting Changes to the Core Code
Screen Widgets as Templates
Chapter 4: Form Widgets
Files and Locations
Creating Our First Form Widget
Form Processing via Request Event
Java Events
Submitting and Processing Our First Form
The "list" Type Form Widget
The "multi" Type Form Widget
Alternative Targets in Two-Target Forms
Row-Level Actions
Chapter 5: Other View Element Types in Screen Widgets
Menu Widgets
Bringing it All Together
Chapter 6: The Controller
How OFBiz Hears Our Requests—The Control Servlet
Programming a Control Servlet
Chapter 7: Entities, View Entities, and Extended Entities
View Entities
Extending Entities
Chapter 8: Accessing the Entities and View Entities
Setting-Up Our Playground
GenericValue Objects
Creating a Database Record
Updating Database Records
Deleting Database Records
Retrieving Database Records
Using the Entity Engine Cache
Dynamic View Entities
Paginating Using the EntityListIterator
Functions and Dynamic View Entities
Chapter 9: The Events
Java Events
Working with the Database
Chapter 10: The Service Engine
Defining a Service
Creating the Java Code for the Service
Testing Our First Service
Service Parameters
The DispatchContext
Service Security and Access Control
Calling Services from Java Code
Implementing Interfaces
Synchronous and Asynchronous Services.
Using the Job Scheduler
Quickly Running a Service
Naming a Service and the Service Reference
Event Condition Actions (ECA)
Chapter 11: Permissions and the Service Engine
Simple Permissions
Two-Part Permissions and Special "_ADMIN" Permissions
Role Checks
Combining Multiple Checks
Nested Checks
Complex Permissions
Chapter 12: Minilang
What is Minilang?
Defining a Simple Service
Simple Events
Validating and Converting Fields
Checking Security in Minilang
Invoking from Minilang
Minilang in Screen Widgets
Chapter 13: Tying Up the Loose Ends
The OFBiz Look and Feel
Using FreeMarker
OFBiz Utilities
Outputting Different Formats
Chapter 14: Tips and Techniques
Debugging Techniques
Debugging Java Code
Managing a Project Using Subversion
Apache HTTP Server and OFBiz using mod_proxy_ajp
Development Tips

What You Will Learn

  • Learn what OFBiz is, and what it is capable of doing for business.
  • Install and configure OFBiz to optimize system performance.
  • Develop a bespoke OFBiz component. Enhance and modify existing components.
  • Save time by learning how to re-use existing OFBiz code.
  • Explore Entities – the basic units of the framework's Model – to simplify database operations and perform complicated queries.
  • Define, create, and call Java services in the Service Engine to build synchronous and asynchronous communications.
  • Learn syntax and schema for the OFBiz language: MiniLang. Use MiniLang to speed up your OFBiz development.  
  • Acquire valuable development and performance tips that will make your custom applications supreme.

In Detail

Apache OFBiz (Open For Business) is versatile open-source enterprise automation software that powers many small and medium sized businesses around the world. It incorporates a number of mature applications such as ERP, e-Commerce, MRP and CRM.

Built around an MVC framework with common logic, data model and process components, Ofbiz allows existing and bespoke applications to be added through a component-based architecture. Ofbiz includes a mature suite of enterprise applications that integrate and automate a company's many business needs.
This easy-to-read book will quickly enable newcomers to get hands-on with OFBiz. It provides an overview of the main modules and employs illustrated examples that show readers how to build exemplary business applications rapidly. Covering the main aspects of the Model-View-Controller framework, the reader will gain a working knowledge of Widgets, Entities, and The Service Engine. The authors also describe how to tweak OFBiz, and offer valuable performance and development tips. By navigating through the flow of OFBiz and providing insight into the thousands of examples that already exist in the core code they have made this book a must-have for anyone looking to get started with OFBiz.


Read More

Recommended for You