[
https://issues.apache.org/jira/browse/OFBIZ-12260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17365573#comment-17365573 ]
Xin Wang commented on OFBIZ-12260:
----------------------------------
Is this issue related to OFBIZ-11810? Although I did not understand this problem fully, but I kind of think that instead of add {{id}} attribute, we can select form by name, e.g. {{jQuery("form[name='" + form + "']")}}. Even better, we can pass form object directly into {{ajaxSubmitFormUpdateAreas()}}, using {{document.${uniqueItemName}}}.
> Xml Element Link type hidden-form fail to resolve the form
> ----------------------------------------------------------
>
> Key: OFBIZ-12260
> URL:
https://issues.apache.org/jira/browse/OFBIZ-12260> Project: OFBiz
> Issue Type: Sub-task
> Components: framework/widget
> Affects Versions: Trunk
> Reporter: Nicolas Malin
> Assignee: Nicolas Malin
> Priority: Major
> Labels: screen, widget
> Attachments: OFBIZ-12260.patch
>
>
> When you generate a link with the type hidden-form and the link present an update area, on the click jquery failed to resolve the form.
> Example of a current link generate
> {code:java}
> <a href="javascript:ajaxSubmitFormUpdateAreas('ListProductMeterActionMenus_delete_LF_1__0', 'embedded13009956-a841-47d3-86b1-b1931e6b430e,
https://localhost:8443/catalog/control/ListProductMeters,productId=GZ-1000')">javascript:ajaxSubmitFormUpdateAreas('ListProductMeterActionMenus_delete_LF_1__0', 'embedded13009956-a841-47d3-86b1-b1931e6b430e,
https://localhost:8443/catalog/control/ListProductMeters,productId=GZ-1000')</a>{code}
> The problem come from OfbizUtil.js:748
> {code:java}
> var $form = jQuery("#" + form){code}
> To solve the it this, I propose to extend all hidden-form with add the missing id attribute.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)