hi:
i was just learning ofbiz by OFBiz Tutorial - A Beginners Development Guide webpage, but when i learned part 2, i was puzzled as one problem appeared in console. finally i found the cause. In guide , the menu name is

name="MainAppBar"   in PracticeMenus.xml,but when you used the menu in 
CommonScreens.xml ,
<set field="applicationMenuName"  value="PracticeAppBar"  global="true"/>

so the console will be report a wrong place ,


 * 
<http://localhost:8080/mypractice/control/main;jsessionid=442786E1DABE177398F6141E04025125.jvm1>


Method public static org.ofbiz.widget.menu.ModelMenu org.ofbiz.widget.menu.MenuFactory.getMenuFromLocation(java.lang.String,java.lang.String,org.ofbiz.entity.Delegator,org.ofbiz.service.LocalDispatcher) throws java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception The problematic instruction: ---------- ==> assignment: appModelMenu=Static["org.ofbiz.widget.menu.MenuFactory"].getMenuFromLocation(applicationMenuLocation,applicationMenuName,delegator,dispatcher) [on line 27, column 1 in component://tomahawk/includes/appbarOpen.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public static org.ofbiz.widget.menu.ModelMenu................

i hope you can modify the wrong place , other readers will not be puzzled .

Reply via email to