You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "BJ Freeman (JIRA)" <ji...@apache.org> on 2007/12/18 01:38:43 UTC

[jira] Issue Comment Edited: (OFBIZ-1531) implement a fix to solve the location="${parameters.mainDecoratorLocation} giving an error.

    [ https://issues.apache.org/jira/browse/OFBIZ-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552587 ] 

bjfreeman edited comment on OFBIZ-1531 at 12/17/07 4:37 PM:
-------------------------------------------------------------

in then dev mailing list chris came up with a feasable solution
this is from his email.

You'll need to get put the <viewmap>@page value into the context and run a script in your main-decorator to determine the correct values

if (page.like("component://partymgr")
applicationMenuName = "Party";
elseif(page.like("component://product")
applicationMenuName="Product";
etc
parameters.put("applicationMenuName", applicationMenuName);

then in your main-decorator, instead of having 
<set field="applicationMenuName" value="SetupMainMenu" global="true"/>
you will have
<set field="applicationMenuName" vlaue="${parameters.applicationMenuName}"/>
etc


chris corrected :
sorry, that should be page.startsWith("component://...")

      was (Author: bjfreeman):
    in then dev mailing list chris came up with a feasable solution
this is from his email.

You'll need to get put the <viewmap>@page value into the context and run a script in your main-decorator to determine the correct values

if (page.like("component://partymgr")
applicationMenuName = "Party";
elseif(page.like("component://product")
applicationMenuName="Product";
etc
parameters.put("applicationMenuName", applicationMenuName);

then in your main-decorator, instead of having 
<set field="applicationMenuName" value="SetupMainMenu" global="true"/>
you will have
<set field="applicationMenuName" vlaue="${parameters.applicationMenuName}"/>
etc



  
> implement a fix to solve the location="${parameters.mainDecoratorLocation} giving an error.
> -------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1531
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1531
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: BJ Freeman
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>
> Though not meant to be used for intra-apps
> the Include feature is being used that way in the controller for common-controller.
> there is a gotcha describe in the dev ML about 
> .mainDecoratorLocation not being accessed when since it is in the context in the web.xml
> To remedy this 
> all 
> location="${parameters.mainDecoratorLocation} 
> will be changed to the actual path found in the web.xml for each application.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.