[ https://issues.apache.org/jira/browse/OFBIZ-6408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076480#comment-15076480 ]
Scott Gray commented on OFBIZ-6408: ----------------------------------- If I'm not mistaken it should look like this: {code} <field name="editLink" use-when="${groovy: return reqOrderQty.compareTo(soldOrderQty) != 0 && thruDate.compareTo(org.ofbiz.base.util.UtilDateTime.nowTimestamp()) == 1}" title=" " widget-style="buttontext"> {code} i.e. the two boolean evaluations should reside in the same "groovy" scriptlet. > Adding a group order generates an error > --------------------------------------- > > Key: OFBIZ-6408 > URL: https://issues.apache.org/jira/browse/OFBIZ-6408 > Project: OFBiz > Issue Type: Bug > Components: product > Affects Versions: Trunk, 13.07.01 > Reporter: Pierre Smits > Labels: GroupOrder, catalog > > When adding a Group Order for a product the following error is returned: > {code} > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://product/widget/catalog/ProductScreens.xml#ViewProductGroupOrder]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://product/widget/catalog/ProductScreens.xml#CommonProductDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://product/widget/catalog/CommonScreens.xml#main-decorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > )) (Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ))) (Error rendering screen > [component://product/widget/catalog/CommonScreens.xml#main-decorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > )) (Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > )))) (Error rendering screen > [component://product/widget/catalog/ProductScreens.xml#CommonProductDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://product/widget/catalog/CommonScreens.xml#main-decorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > )) (Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ))) (Error rendering screen > [component://product/widget/catalog/CommonScreens.xml#main-decorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > )) (Error rendering screen > [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ) (Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > (Error rendering included form named [ListProductGroupOrder] at location > [component://product/widget/catalog/ProductForms.xml]: > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > java.lang.IllegalArgumentException: Error evaluating BeanShell use-when > condition [true&&] on the field editLink of form ListProductGroupOrder: In > file: inline evaluation of: ``true&&;'' Encountered ";" at line 1, column 7. > ))))) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)