Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FAAF926E for ; Tue, 17 Apr 2012 02:30:26 +0000 (UTC) Received: (qmail 18852 invoked by uid 500); 17 Apr 2012 02:30:25 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 18831 invoked by uid 500); 17 Apr 2012 02:30:25 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 18817 invoked by uid 99); 17 Apr 2012 02:30:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 02:30:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [67.221.226.157] (HELO zimbra.hotwaxmedia.com) (67.221.226.157) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 02:30:18 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.hotwaxmedia.com (Postfix) with ESMTP id 5BAC392F0718 for ; Mon, 16 Apr 2012 21:29:57 -0500 (CDT) X-Virus-Scanned: amavisd-new at zimbra.hotwaxmedia.com Received: from zimbra.hotwaxmedia.com ([127.0.0.1]) by localhost (zimbra.hotwaxmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RyPH5wqgLvge for ; Mon, 16 Apr 2012 21:29:52 -0500 (CDT) Received: from [192.168.1.2] (unknown [122.168.148.85]) by zimbra.hotwaxmedia.com (Postfix) with ESMTPSA id 3964392F0717 for ; Mon, 16 Apr 2012 21:29:50 -0500 (CDT) Message-ID: <4F8CD59A.8000108@hotwaxmedia.com> Date: Tue, 17 Apr 2012 07:59:46 +0530 From: Atul Vani User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: user@ofbiz.apache.org Subject: Re: Complicated Question References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Glad to be helpful. -- Thanks & Regards Atul Vani On 4/16/2012 10:33 PM, Skip wrote: > Thaks Atul, this is exactly what I needed. I looked and looked at pages of > Google returns and could not find this. > > Thanks again > > Skip > > -----Original Message----- > From: Atul Vani [mailto:atul.vani@hotwaxmedia.com] > Sent: Sunday, April 15, 2012 9:30 PM > To: user@ofbiz.apache.org > Subject: Re: Complicated Question > > > I think you're going in the wrong direction. Read this document (below), > specially the section "Extending an Existing Component". > https://cwiki.apache.org/OFBIZ/addressing-custom-requirements-in-ofbiz.html > > May be all you need is to just override the webapp, not even the component. > > Thanks& Regards > Atul Vani > Enterprise Software Developer > HotWax Media Pvt. Ltd. > http://www.hotwaxmedia.com/ > We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for > yourself. > > > On 04/13/2012 10:14 PM, Skip wrote: >> Let me restate the two problems a little more succinctly. >> >> Problem 1 >> I want to include a controller from a hot-deploy component into an > existing >> ofbiz controller in applications directories. I know I can use "condition > / >> widget / fail-widget tags" in screen widgets, but can you use something >> similiar in a controller.xml file. I could find no examples. >> >> For example, in >> ...applications/product/webapp/catalog/WEB-INF/controller.xml >> >> > > location="component://company1/webapp/common/WEB-INF/common-controller.xml"/ >> Only, I want the location to be a variable like >> >> >> If this is possible, where can I declare "externalLocation". >> >> Alternately, is it possible to "inject" the hot-deploy controller into the >> first. >> >> Problem 2 >> >> I want to call a service with an indeterminate attribute list. >> >> I think I have found the solution here. Just set validate="false" in the >> service declaration and I can pass in whatever attributes I want from the >> form widget. >> >> >> >> -----Original Message----- >> From: Atul Vani [mailto:atul.vani@hotwaxmedia.com] >> Sent: Thursday, April 12, 2012 10:43 PM >> To: user@ofbiz.apache.org >> Subject: Re: Complicated Question >> >> >> Didn't get the problem completely, but still, check my comments inline. >> >> Thanks& Regards >> Atul Vani >> Enterprise Software Developer >> HotWax Media Pvt. Ltd. >> http://www.hotwaxmedia.com/ >> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for >> yourself. >> >> >> On 04/13/2012 05:55 AM, Skip wrote: >>> I am implementing Ofbiz for two sister companies, each of which sells >>> different kinds of products. I have implemented the first company and am >>> starting on the second. I would like to maintain just a single set of >>> source for both companies. >>> >>> I have two components in hot-deploy that load the seed data and code >>> specific to each company. Only one or the other is included in >>> component-load.xml. >>> >>> >>> However, I do not want these screens from company 1 available in the >> second >>> company. These company specific screens have to do with product >> attributes >>> for the items sold. >>> >>> In the ordermgr order entry screen, I have have added a secondary screen >>> that allows sales people to look up products by their attributes using >>> product type specific screens. For example, for a screw, they enter the >>> thread count, length, material, etc. Another example would be would be a >>> tap which has fields for diameter, length, thread count, etc. >>> >>> Other screens allow inexperienced employees to enter new products by >>> selecting product attributes from product specific dropdowns. Using this >>> data, they can add or update products. >>> >>> There are two problems here, the add and update actions require product >>> specific URLs which eventually end up in product specific services. >>> >>> I would like to do two things. >>> >>> The first is to include the controller.xml file for one or the other of >>> these two companies into the the controller.xml file for facility and >>> catalog that has these product specific URLs. For example, in a screen >>> widget, I can do: >>> >>> >>> >>> >>> >>> >>> >>> >>> is it possible to do something like this: >>> >>> >>> somecondition >>> >>> >> location="component://product/webapp/facility/WEB-INF/controller.xml"/> >>> >>> or >>> >>> and specify externalLocation >> in >>> the web.xml file maybe? >>> >> Check out the use of condition / widget / fail-widget tags. >> >>> Second, I could write a single service to do these add/update services > if >>> there was a way to pass an arbitrary list of attributes in the context to >>> the service and not have the service engine complain that field is not >>> defined for service . >>> >>> For example, if I have a service defined as: >>> >>> >> default-entity-name="" >>> location="com.fs.inventory.InventoryServices" >>> invoke="createInventoryProduct" >>> use-transaction="false"> >>> >>> Create a Product, SupplierProduct, and default ProductPrice >>> >>> >> optional="false"/> >>> >> optional="false"/> >>> >> optional="false"/> >>> >> optional="false"/> >>> >>> >> Use attribute(s) of type List in the service. Use 2 or more fields with >> the same name in the HTML form. >> >>> and I pass an attribute "color", I get an error from the service >> validation >>> code. Is there some way to inform the service engine that the service >> could >>> have an arbitrary number of additional attributes (based on the >> productType >>> in this case) and to not throw this error? >>> >>> Thanks in advance for your help. >>> >>> Skip >>>