[ http://issues.apache.org/jira/browse/OFBIZ-278?page=comments#action_12456570 ] Chris Howe commented on OFBIZ-278: ----------------------------------
HtmlFormWrapper cannot handle the resource path component://.... as input. So, the first thing that needs to be solved is that HtmlFormWrapper needs to be able to do that. After that, it's not an issue of refactoring to parameterizing the resource into the screen widget (while that might be beneficial in some cases), but rather refactoring : /order/OrderDeliveryScheduleForms.xml to: component://order/webapp/ordermgr/order/OrderDeliveryScheduleForms.xml This issue is simply broadened because the format HtmlFormWrapper() uses a relative path at least 53 times throughout the applications folder. > Relative paths for form definitions passed to the HtmlFormWrapper constructor > limit reusability of scripts. > ----------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-278 > URL: http://issues.apache.org/jira/browse/OFBIZ-278 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: accounting, content, ecommerce, manufacturing, order, > product > Affects Versions: SVN trunk > Reporter: Marco Risaliti > Priority: Trivial > > Copy of http://jira.undersunconsulting.com/browse/OFBIZ-603 from Chris Howe. > ================================================== > component://order/webapp/ordermgr/WEB-INF/actions/order/OrderDeliveryScheduleInfo.bsh > > line 53: > uses "/order/OrderDeliveryScheduleForms.xml" as a parameter. > Because of this every app that calls this beanshell script must have the > forms.xml file in it's path. This is extremely trivial at the moment, but > will cause some people some trouble once the order application is updated to > use mainDecoratorLocation variable -- 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
