If I understand you properly, what you are doing should work, provided your references are all correct.
Wherever you need to specify a location, put in the fully qualified version, such as location="component://componentA/widget/ComponentScreens.xml" When I've done that, and it hasn't worked, it's been because I mistyped something. Cheers, Anne. On 6 October 2011 04:10, Wai <[email protected]> wrote: > Hello, > > I would like to get a clarification of the following: > > I have 2 components. ComponentA and componentB. > > In componentA, I define a screen, ComponentAScreen. > In componentB, I defined a screen, ComponentBScreen. > ComponentBScreen uses decorators defined in CommonScreens.xml in > componentB's component directory. > ComponentAScreen includes ComponentBScreen. > > The problem is that when I tried to display a page defined by > ComponentAScreen, I get an ScreenRenderer exception indicating that it > cannot find the decorator referenced by ComponentBScreen. Further > investigation showed that the decorator screens in ComponentBScreen was > referenced using the directory path of componentA. > > Could someone verify that this is how things are supposed to work??? > > Thanks, > Wai > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/one-component-includes-a-screen-from-another-component-clarification-tp3875463p3875463.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > -- Coherent Software Australia Pty Ltd PO Box 2773 Cheltenham Vic 3192 Phone: (03) 9585 6788 Fax: (03) 9585 1086 Web: http://www.cohsoft.com.au/ Email: [email protected] Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/
