[
https://issues.apache.org/jira/browse/OFBIZ-13290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018550#comment-18018550
]
Deepak Dixit commented on OFBIZ-13290:
--------------------------------------
Fixed an issue where the include-form tag failed when referencing a form
defined as a grid
To address this:
* Updated FormFactory#createModelFormFromLocation to also search for grid
elements when a matching form is not found.
* Adjusted logic to ensure that a ModelSingleForm is only created when the tag
is form and the type is single or upload.
*
This fix ensures that grid-based forms can now be included using include-form,
resolving the rendering issue.
> InventoryReports screen broken
> ------------------------------
>
> Key: OFBIZ-13290
> URL: https://issues.apache.org/jira/browse/OFBIZ-13290
> Project: OFBiz
> Issue Type: Bug
> Components: framework/widget
> Affects Versions: 24.09
> Reporter: Deepak Dixit
> Priority: Major
>
> Getting following exception while rendering
> [InventoryReports|https://demo-trunk.ofbiz.apache.org/facility/control/InventoryReports]
>
> {code:java}
> java.lang.RuntimeException: Error rendering included form named
> [ListFacilityInventoryByProduct] at location
> [component://product/widget/facility/FacilityForms.xml]:
> java.lang.NullPointerException: Cannot invoke
> "org.w3c.dom.Element.getAttribute(String)" because "formElement" is
> nulljava.lang.NullPointerException: Cannot invoke
> "org.w3c.dom.Element.getAttribute(String)" because "formElement" is null
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)