Apache OFBiz Development: The Beginner's Tutorial

Using Services, Entities, and Widgets to build custom ERP and CRM systems
Preview in Mapt

Apache OFBiz Development: The Beginner's Tutorial

Jonathon Wong, Rupert Howell

1 customer reviews
Using Services, Entities, and Widgets to build custom ERP and CRM systems
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $29.99
Save 66%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Apache OFBiz Development: The Beginner's Tutorial Book Cover
Apache OFBiz Development: The Beginner's Tutorial
$ 29.99
$ 10.00
DevOps in Finance Book Cover
DevOps in Finance
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $45.98
Add to Cart

Book Details

ISBN 139781847194008
Paperback472 pages

Book Description

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.

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
Summary
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
Summary
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
Summary
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
Summary
Chapter 5: Other View Element Types in Screen Widgets
Menu Widgets
FreeMarker
Bringing it All Together
Summary
Chapter 6: The Controller
How OFBiz Hears Our Requests—The Control Servlet
Programming a Control Servlet
Summary
Chapter 7: Entities, View Entities, and Extended Entities
Entities
View Entities
Extending Entities
Summary
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
Summary
Chapter 9: The Events
Java Events
Working with the Database
Summary
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)
Summary
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
Summary
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
Summary
Chapter 13: Tying Up the Loose Ends
The OFBiz Look and Feel
Using FreeMarker
OFBiz Utilities
Outputting Different Formats
Summary
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
Summary

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.

Authors

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
Summary
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
Summary
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
Summary
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
Summary
Chapter 5: Other View Element Types in Screen Widgets
Menu Widgets
FreeMarker
Bringing it All Together
Summary
Chapter 6: The Controller
How OFBiz Hears Our Requests—The Control Servlet
Programming a Control Servlet
Summary
Chapter 7: Entities, View Entities, and Extended Entities
Entities
View Entities
Extending Entities
Summary
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
Summary
Chapter 9: The Events
Java Events
Working with the Database
Summary
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)
Summary
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
Summary
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
Summary
Chapter 13: Tying Up the Loose Ends
The OFBiz Look and Feel
Using FreeMarker
OFBiz Utilities
Outputting Different Formats
Summary
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
Summary

Book Details

ISBN 139781847194008
Paperback472 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Apache OfBiz Cookbook Book Cover
Apache OfBiz Cookbook
$ 26.99
$ 10.00
HTML5 Web Application Development By Example : Beginner's guide Book Cover
HTML5 Web Application Development By Example : Beginner's guide
$ 26.99
$ 10.00
MySQL Admin Cookbook Book Cover
MySQL Admin Cookbook
$ 29.99
$ 10.00
Corona SDK HOTSHOT Book Cover
Corona SDK HOTSHOT
$ 29.99
$ 10.00
Creating your MySQL Database: Practical Design Tips and Techniques  Book Cover
Creating your MySQL Database: Practical Design Tips and Techniques
$ 11.99
$ 8.40
Corona SDK Application Design Book Cover
Corona SDK Application Design
$ 12.99
$ 9.10