[
http://issues.apache.org/jira/browse/OFBIZ-538?page=comments#action_12456974 ]
Anil K Patel commented on OFBIZ-538:
------------------------------------
let's say now you want to use ViewFacilityInventoryByProduct in a some other
component e.g assetmaint in hotdeploy folder.
Define new CommonFacilityDecorator in assetmaint and Then add following line to
web.xml file of asssetmaint component.
<context-param>
<param-name>commonFacilityDecoratorLocation</param-name>
<param-value>component://assetmaint/widget/facility/CommonScreens.xml</param-value>
<description>The location of the CommonFacilityDecorator screen to use
for this webapp; referred to as a context variable in screen def XML
files.</description>
</context-param>
The location of customer decorator is
<param-value>component://assetmaint/widget/facility/CommonScreens.xml</param-value>
in the above entry.
View entry in controller.xml file of assetmaint component reads
<view-map name="ViewFacilityInventoryByProduct" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#ViewFacilityInventoryByProduct"/>
My screen will use decorator from assetmaint component and not from facility
component. So now I have a ViewFacilityInventoryByProduct screen without coping
it to assetmaint component.
Hope this helps
> Parameterize CommonFacilityDecorator location in FaclityScreens
> ---------------------------------------------------------------
>
> Key: OFBIZ-538
> URL: http://issues.apache.org/jira/browse/OFBIZ-538
> Project: OFBiz (The Open for Business Project)
> Issue Type: Improvement
> Reporter: Anil K Patel
> Attachments: ParameterizedCommonFacilityDecoratorLocation.patch
>
>
> Parameterize CommonFacilityDecorator location in FaclityScreens, Just makes
> it easy to write custom apps.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira