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

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

From a thread by Chris Howe and David Jones
Chris Howe: Lets say that I want to create an application that most closely matches the ecommerce app. I should start with copied versions the following files only.

Code Block

ofbizhome/specialized/myapp/build.xml
ofbizhome/specialized/myapp/ofbiz-component.xml
ofbizhome/specialized/myapp/webapp/myapp/WEB-INF/controller.xml
ofbizhome/specialized/myapp/webapp/myapp/WEB-INF/web.xml
ofbizhome/specialized/myapp/webapp/myapp/index.jsp

from this I should edit the following
build.xml:
find "ecommerce"
replace with "myapp"

ofbiz-component.xml:
find "ecommerce"
replace with "myapp"

web.xml:
change display name and description from "ecommerce"
to "myapp"

Then change specialized/component-load.xml to load
"myapp"

This should give you an exact duplication of functionality of the copied ecommerce application without the hundreds of thousands of lines of code. Then by simply copying/creating the files that need to be changed and changing the requests and views in controller.xml you will have your new application, but still benefit from svn updates. What is the potential downside of this?

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.