[
https://issues.apache.org/jira/browse/OFBIZ-12555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Malin updated OFBIZ-12555:
----------------------------------
Description:
When you define a widget form and wish populate hidden fields with the element
auto-fields-service, OFBiz rendering each as edit field type.
<form name="ListPartyQuals" ...>
<auto-fields-service service-name="updatePartyQual"
default-field-type="hidden"/>
</form>
The problem came from the function
ModelFormFieldBuilder.induceFieldInfoFromServiceParam didn't manage the case
"hidden"
By the way, this function is a "if" forest, and simplify reading.
was:
When you define a widget form and wish populate hidden fields with the element
auto-fields-service, OFBiz rendering each as edit field type.
<form name="ListPartyQuals" ...>
<auto-fields-service service-name="updatePartyQual"
default-field-type="hiddens"/>
</form>
The problem came from the function
ModelFormFieldBuilder.induceFieldInfoFromServiceParam didn't manage the case
"hidden"
By the way, this function is a "if" forest, and simplify reading.
> default-field-type hidden doesn't works for auto-fields-service
> ----------------------------------------------------------------
>
> Key: OFBIZ-12555
> URL: https://issues.apache.org/jira/browse/OFBIZ-12555
> Project: OFBiz
> Issue Type: Bug
> Components: framework/widget
> Affects Versions: 22.01.01, Upcoming Branch
> Reporter: Nicolas Malin
> Assignee: Nicolas Malin
> Priority: Minor
> Attachments: OFBIZ-12555.patch
>
>
> When you define a widget form and wish populate hidden fields with the
> element auto-fields-service, OFBiz rendering each as edit field type.
> <form name="ListPartyQuals" ...>
> <auto-fields-service service-name="updatePartyQual"
> default-field-type="hidden"/>
> </form>
> The problem came from the function
> ModelFormFieldBuilder.induceFieldInfoFromServiceParam didn't manage the case
> "hidden"
> By the way, this function is a "if" forest, and simplify reading.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)