Hi folks, I saw that an <include> directive is possible in controller.xml and
was wondering if we should put all the Lookups like LookupProduct in one xml for convenience. This will allow applications to take advantage of all available lookups in the system without having to duplicate the request and view maps. It would be nice to start organizing all these requests. :-) - Leon |
Like it. Ready to help also.
+1 Anil Patel On 2/8/07, Leon Torres <[hidden email]> wrote: > > Hi folks, I saw that an <include> directive is possible in controller.xmland > was wondering if we should put all the Lookups like LookupProduct in one > xml for > convenience. This will allow applications to take advantage of all > available > lookups in the system without having to duplicate the request and view > maps. > > It would be nice to start organizing all these requests. :-) > > - Leon > |
In reply to this post by Leon Torres-2
At first glance this would seem like a logical thing to do. The downside is you
would lose modularity. In other words, there may be complications with installations that don't mount all components. Leon Torres wrote: > Hi folks, I saw that an <include> directive is possible in > controller.xml and was wondering if we should put all the Lookups like > LookupProduct in one xml for convenience. This will allow applications > to take advantage of all available lookups in the system without having > to duplicate the request and view maps. > > It would be nice to start organizing all these requests. :-) > > - Leon > |
It should be that if you create a request-uri with the same name lower
in the file than the <include> element, your request-uri should override the one from the included document. And if you're never calling the request-uri from components you haven't loaded, then you'll never have the error. --- Adrian Crum <[hidden email]> wrote: > At first glance this would seem like a logical thing to do. The > downside is you > would lose modularity. In other words, there may be complications > with > installations that don't mount all components. > > > Leon Torres wrote: > > Hi folks, I saw that an <include> directive is possible in > > controller.xml and was wondering if we should put all the Lookups > like > > LookupProduct in one xml for convenience. This will allow > applications > > to take advantage of all available lookups in the system without > having > > to duplicate the request and view maps. > > > > It would be nice to start organizing all these requests. :-) > > > > - Leon > > > |
In reply to this post by Adrian Crum
I agree with what Adrian wrote on this one... The lookup screens should be defined in their most natural component. If we were to have an include file for lookups across many components, which component would be put it in? -David On Feb 8, 2007, at 12:57 PM, Adrian Crum wrote: > At first glance this would seem like a logical thing to do. The > downside is you would lose modularity. In other words, there may be > complications with installations that don't mount all components. > > > Leon Torres wrote: >> Hi folks, I saw that an <include> directive is possible in >> controller.xml and was wondering if we should put all the Lookups >> like LookupProduct in one xml for convenience. This will allow >> applications to take advantage of all available lookups in the >> system without having to duplicate the request and view maps. >> It would be nice to start organizing all these requests. :-) >> - Leon smime.p7s (3K) Download Attachment |
Well, the current situation isn't any more "modular" or "natural". We have to
specify a LookupProduct that points to the product lookup screen in applications/product/ in a bunch of different web apps that need it. The only difference of putting them in one controller.xml is that it will cut down code bloat a little and speed up development a small amount. It's slightly more pragmatic from the developer's perspective than the present situation. - Leon David E. Jones wrote: > > I agree with what Adrian wrote on this one... > > The lookup screens should be defined in their most natural component. If > we were to have an include file for lookups across many components, > which component would be put it in? > > -David > > > On Feb 8, 2007, at 12:57 PM, Adrian Crum wrote: > >> At first glance this would seem like a logical thing to do. The >> downside is you would lose modularity. In other words, there may be >> complications with installations that don't mount all components. >> >> >> Leon Torres wrote: >>> Hi folks, I saw that an <include> directive is possible in >>> controller.xml and was wondering if we should put all the Lookups >>> like LookupProduct in one xml for convenience. This will allow >>> applications to take advantage of all available lookups in the system >>> without having to duplicate the request and view maps. >>> It would be nice to start organizing all these requests. :-) >>> - Leon > |
A compromise solution: have the request-uri in it's "native" app..and
then duplicate those request-uris in a specialized app that centralizes those lookup screens. I don't think there would be much worry about the request-uri/view-map definitions changing all too often, while the underlying screen might. --- Leon Torres <[hidden email]> wrote: > Well, the current situation isn't any more "modular" or "natural". > We have to > specify a LookupProduct that points to the product lookup screen in > applications/product/ in a bunch of different web apps that need it. > > The only difference of putting them in one controller.xml is that it > will cut > down code bloat a little and speed up development a small amount. > It's slightly > more pragmatic from the developer's perspective than the present > situation. > > - Leon > > David E. Jones wrote: > > > > I agree with what Adrian wrote on this one... > > > > The lookup screens should be defined in their most natural > component. If > > we were to have an include file for lookups across many components, > > > which component would be put it in? > > > > -David > > > > > > On Feb 8, 2007, at 12:57 PM, Adrian Crum wrote: > > > >> At first glance this would seem like a logical thing to do. The > >> downside is you would lose modularity. In other words, there may > be > >> complications with installations that don't mount all components. > >> > >> > >> Leon Torres wrote: > >>> Hi folks, I saw that an <include> directive is possible in > >>> controller.xml and was wondering if we should put all the Lookups > > >>> like LookupProduct in one xml for convenience. This will allow > >>> applications to take advantage of all available lookups in the > system > >>> without having to duplicate the request and view maps. > >>> It would be nice to start organizing all these requests. :-) > >>> - Leon > > > |
In reply to this post by Leon Torres-2
That still doesn't answer the question that brings out the problem with the idea: where do we put it? -David On Feb 8, 2007, at 4:23 PM, Leon Torres wrote: > Well, the current situation isn't any more "modular" or "natural". > We have to specify a LookupProduct that points to the product > lookup screen in applications/product/ in a bunch of different web > apps that need it. > > The only difference of putting them in one controller.xml is that > it will cut down code bloat a little and speed up development a > small amount. It's slightly more pragmatic from the developer's > perspective than the present situation. > > - Leon > > David E. Jones wrote: >> I agree with what Adrian wrote on this one... >> The lookup screens should be defined in their most natural >> component. If we were to have an include file for lookups across >> many components, which component would be put it in? >> -David >> On Feb 8, 2007, at 12:57 PM, Adrian Crum wrote: >>> At first glance this would seem like a logical thing to do. The >>> downside is you would lose modularity. In other words, there may >>> be complications with installations that don't mount all components. >>> >>> >>> Leon Torres wrote: >>>> Hi folks, I saw that an <include> directive is possible in >>>> controller.xml and was wondering if we should put all the >>>> Lookups like LookupProduct in one xml for convenience. This >>>> will allow applications to take advantage of all available >>>> lookups in the system without having to duplicate the request >>>> and view maps. >>>> It would be nice to start organizing all these requests. :-) >>>> - Leon smime.p7s (3K) Download Attachment |
In reply to this post by cjhowe
Nah, that's too much overhead, this isn't really a killer issue. I'm fine with
the status quo. This idea sort of came up and I put it on the table, but perhaps the includes directive is more useful for organizing requests inside an application than anything. Inter-app includes sounds fishy after all. - Leon Chris Howe wrote: > A compromise solution: have the request-uri in it's "native" app..and > then duplicate those request-uris in a specialized app that centralizes > those lookup screens. I don't think there would be much worry about > the request-uri/view-map definitions changing all too often, while the > underlying screen might. > > > --- Leon Torres <[hidden email]> wrote: > >> Well, the current situation isn't any more "modular" or "natural". >> We have to >> specify a LookupProduct that points to the product lookup screen in >> applications/product/ in a bunch of different web apps that need it. >> >> The only difference of putting them in one controller.xml is that it >> will cut >> down code bloat a little and speed up development a small amount. >> It's slightly >> more pragmatic from the developer's perspective than the present >> situation. >> >> - Leon >> >> David E. Jones wrote: >>> I agree with what Adrian wrote on this one... >>> >>> The lookup screens should be defined in their most natural >> component. If >>> we were to have an include file for lookups across many components, >>> which component would be put it in? >>> >>> -David >>> >>> >>> On Feb 8, 2007, at 12:57 PM, Adrian Crum wrote: >>> >>>> At first glance this would seem like a logical thing to do. The >>>> downside is you would lose modularity. In other words, there may >> be >>>> complications with installations that don't mount all components. >>>> >>>> >>>> Leon Torres wrote: >>>>> Hi folks, I saw that an <include> directive is possible in >>>>> controller.xml and was wondering if we should put all the Lookups >>>>> like LookupProduct in one xml for convenience. This will allow >>>>> applications to take advantage of all available lookups in the >> system >>>>> without having to duplicate the request and view maps. >>>>> It would be nice to start organizing all these requests. :-) >>>>> - Leon > > |
Free forum by Nabble | Edit this page |