You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Scott Gray <sc...@hotwaxmedia.com> on 2010/05/01 00:20:11 UTC

Re: Controller Injection

On 1/05/2010, at 3:56 AM, Adam Heath wrote:

> Scott Gray wrote:
>> On 30/04/2010, at 1:49 PM, Scott Gray wrote:
>> 
>>> What about adding something like the following to ofbiz-component.xml schema
>>> <extend-web-app name="order"
>>>   include-controller="path/to/controller.xml"
>>> />
>> 
>> Finding the webapp to extend doesn't look so easy, it looks like it would need to be something like:
>> <extend-webapp server-name="default-server" mount-point="/ordermgr">
>> That would be the only way to be sure that you're extending the correct webapp.  The name attribute is really only informational and does nothing, I could for example name every webapp in OFBiz "order" and it would have no effect whatsoever.
> 
> <webapp> should be defined separately from the mount point it is
> attached too.  Not all in one as it is now.
> 
> Then, we could extend the webapp, or add more mappings on other servers.

Well you can sort of already do that, multiple webapps can point to the same webapp directory.  The problem right now is that it doesn't support component notation so you'd have to do something like: 
<webapp location="../../applications/order/webapp/ordermgr" ...

Regards
Scott