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

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

Commit dbf611d222c3dc6abb40b01b26a84514da70f67d in ofbiz-framework's branch 
refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=dbf611d222 ]

Improved: Add auto-parameters-form option to on-event-update-area link in xml 
form (OFBIZ-12684)

As we have an auto-parameters-entity and an auto-parameters-service option in
xml forms on-event-update-area tags, it could be useful to have an
auto-parameters-form option that will propagate current form fields as 
parameters
to the paginate or submit action link (for instance in modal "tunnel" processes)

Currently, if you want to propagate the parameters of a form to a zone that is
refreshed in ajax after the submit you have to write specific javascript code or
to return all the parameters sent to the request through a service as OUT
parameters and/or redirect-parameter.

This feature will add automatically the form parameters on the
generated on-event-update-area link

jleroux: fixed 3 checkstyle issues:
> Task :checkstyleMain
[ant:checkstyle] [ERROR] CommonWidgetModels.java:385:17:
Il y a une espace de trop après '!'. [NoWhitespaceAfter]

[ant:checkstyle] [ERROR] CommonWidgetModels.java:398:77:
Il manque une espace après 'conversion de type'. [WhitespaceAfter]

[ant:checkstyle] [ERROR] ModelForm.java:2326:
La ligne excède 150 caractères (trouvé 155). [LineLength]

Thanks: Leila


> Add auto-parameters-form option to on-event-update-area link in xml form
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-12684
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12684
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Upcoming Branch
>            Reporter: Leila Mekika
>            Priority: Trivial
>         Attachments: OFBIZ-12684.patch, OFBIZ-12684_Example.patch
>
>
> As we have an auto-parameters-entity and an auto-parameters-service option in 
> xml forms on-event-update-area tags, it could be useful to have an 
> auto-parameters-form option that will propagate current form fields as 
> parameters to the paginate or submit action link (for instance in modal 
> "tunnel" processes) 
>           
>    Currently, if you want to propagate the parameters of a form to a zone 
> that is refreshed in ajax after the submit you have to write specific 
> javascript code or to return all the parameters sent to the request through a 
> service as OUT parameters and/or redirect-parameter.
> This feature will add automatically the form parameters on the generated 
> on-event-update-area link
>     To test, apply the OFBIZ_12684_Example.patch on a trunk environment (with 
> demo data)  then go to the following page and click on the "edit" button on 
> line Web Store Warehouse: 
> https://localhost:8443/catalog/control/ProductStoreFacilities?productStoreId=9000
> The validation of the edition form should refresh correctly the list



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

Reply via email to