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

ASF subversion and git services commented on OFBIZ-13330:
---------------------------------------------------------

Commit 68d1ee2fe0ed3dcc718a0a1810eab36bcf942f8b in ofbiz-framework's branch 
refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=68d1ee2fe0 ]

Fixed: Compound's single form are loaded as ModelGrid in memory (OFBIZ-13330)

If you create a simple single form in a compound, when OFBiz load it in memory, 
the element create isn't a ModelForm but a ModelGrid.

This came from the object builder that analyze the XML tag name with the name 
space. In FormFactory::createModelForm

*******

if ("form".equals(formElement.getTagName()) && ...)
{     return new ModelSingleForm( ...) }

return new ModelGrid( ...)

*******

Or :  "wf:form" != "form"

Simple fix to remove the namespace from the analysis.


> Compound's single form are loaded as ModelGrid in memory
> --------------------------------------------------------
>
>                 Key: OFBIZ-13330
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13330
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework/widget
>    Affects Versions: 24.09.04
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>         Attachments: OFBiz-13330.patch
>
>
> If  you create a simple single form in a compound, when OFBiz load it in 
> memory, the element create isn't a ModelForm but a ModelGrid.
> This came from the object builder that analyze the xml tag name with the name 
> space. In FormFactory::createModelForm 
> *******
> if ("form".equals(formElement.getTagName()) && ...) {
>     return new ModelSingleForm( ...)
> }
> return new ModelGrid( ...)
> *******
> Or :  "wf:form" != "form"
> Simple fix to remove the namespace from the analyze.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to