yeah, thanks Jacques and sorry for the confusion.

Jacopo

On Jun 19, 2008, at 1:19 PM, Jacques Le Roux wrote:

Note that Jacopo certainly meaned ofbiz-component.xml file

Jacques

From: "Grant Edwards" <[EMAIL PROTECTED]>
Thank you Jacopo .... I will look into it further this afternoon and let you know how it goes.
Jacopo Cappellato wrote:
You can just mount a webapp (in the ofbiz-controller.xml file that overrides the order (or ecommerce etc..) webapp and then add a new request-map entry to replace the event:

<request-map uri="additem">
    <security https="true" auth="true"/>
<event type="java" path="com.mycompany.CustomEvents" invoke="addToCart"/>
    <response name="success" type="request" value="orderentry"/>
    <response name="survey" type="view" value="survey"/>
    <response name="product" type="view" value="product"/>
    <response name="error" type="request" value="orderentry"/>
</request-map>


Hope it helps,

Jacopo


On Jun 19, 2008, at 10:55 AM, Grant Edwards wrote:

Hi,

The customization of services using the hot-deploy component is fairly simple. But what about events like the one below? I dont really want to go scratching around in org.ofbiz.order.shoppingcart.ShoppingCartEvents as this would make future updates from the project difficult to handle.

Is a custom order component, and all that goes with it, the way to go ?


Kind regards

Grant Edwards





<request-map uri="additem">
    <security https="true" auth="true"/>
<event type="java" path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
    <response name="success" type="request" value="orderentry"/>
    <response name="survey" type="view" value="survey"/>
    <response name="product" type="view" value="product"/>
    <response name="error" type="request" value="orderentry"/>
</request-map>




Reply via email to