Versions Compared

Key

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

...

Quick Start Guides

...

Code Block
ProxyRequests Off

<Proxy *>
        AddDefaultCharset off
        Order deny,allow
        Allow from all
</Proxy>

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off \| On \| Full \| Block
ProxyVia On

NameVirtualHost *:80

<VirtualHost *:80>
    #   General setup for the virtual host. 
    ServerName www.example.com:443
    ServerAdmin you@example.com

    ProxyRequests Off
    ProxyPreserveHost On
    proxyPass / ajp://localhost:8009/

    RewriteEngine On
    RewriteRule ^/(images/.+);jsessionid=\w+$ /$1

</VirtualHost>

include conf/httpd-ssl.conf 
(or include ../apache2/httpd-ssl.conf if using a file in sites-available on Debian/Ubuntu using a2ensite)

...

I you need to use an svn repository on the same server the tip is to add

Code Block

proxyPass /svn !

just before

Code Block

proxyPass / ajp://localhost:8009/

...

Code Block
<!-- Begin of standard login procedure -->
<tr>
 <td>open</td>
 <td>/manufacturing/control/logout</td>
 <td></td>
</tr>
<tr>
 <td>type</td>
 <td>USERNAME</td>
 <td>admin</td>
</tr>
<tr>
 <td>type</td>
 <td>PASSWORD</td>
 <td>ofbiz</td>
</tr>
<tr>
 <td>select</td>
 <td>locale</td>
 <td>value=fr</td>
</tr>
<tr>
 <td>clickAndWait</td>
 <td>submitButton</td>
 <td></td>
</tr>
<tr>
 <td>assertElementNotPresent</td>
 <td>//div[@class='errorMessage']</td>
 <td></td>
</tr>
<!-- End of standard login procedure -->

Advices from Peter Goron

Anchor
NativeDatabaseTip
NativeDatabaseTip

...

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.

...

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"

...

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

A David Jones's tip
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.

...