Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Development tips

Eclipse

...

If you are not using the Accounting module much and specifically the GL section, than go to accounting --> ofbiz-component.xml and comment the entry for secas_ledger.xml in that file, restart the server and try again. This should solve your problem.

A Mridul Pathak's tip

Anchor
BestPracticeModifyOrCreate
BestPracticeModifyOrCreate

What is the best practice to modify an existing component or create a new one?

...

David Jones: Yes, this is the best practice... Being able to do this is part of the design and intention of the screen widget. BTW, the hot-deploy directory may be easier to use than the specialized directory, but of course you can mount a component from anywhere.

Anchor
BestPracticeCustomWebApp
BestPracticeCustomWebApp

What is considered the best practice in creating a custom web application with OFBIZ?

One approach is to simply copy an entire component into a new directory and start hacking away at it until it fit your needs. This is a fine practice if you never have plans of bringing it up to date with a current revision or version. OFBIZ is currently making about 40 commits a week. By the time you complete your customizations, you are out of date.

Another approach is to make adifferences web app. This is where you copy the five essential files from a similar application that is being maintained by the project, make minor modifications to them.

Which one is right? It depends on on how much changes you are making. Modifying the following files will allow you to "customize" an application, whereas starting from scratch using an existing application as a template is better for a "custom application."

A David Jones's tip