ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-9258) Render form values from pulled data
Date Tue, 14 Mar 2017 14:55:41 GMT

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

Jacques Le Roux commented on OFBIZ-9258:
----------------------------------------

Hi James,

Reviewing your whole patch will be for another day... I though applied the patch and tried
your explanation.

# I went to https://localhost:8443/catalog/control/EditProduct?productId=GZ-1000
# Then I added &pullData=true to the URL and pressed Enter
# The form content does not change for input fields. They are still the same, they are not
empty (is it temporary and I can't see it?)
# I read several "Not rendering ftl as dataOnly is true" lines in the log

Do I miss something or it worked as expected?

OK, I had a look with the debugger. It seems to work, in getPullDataUrl() I see requests like
https://localhost:8443/catalog/control/EditProduct?productId=GZ-1000&pullData=true&dataOnly=true
Note that it seems that if there are several  fields to complete, the URL then contains several
(there 2) ataOnly=true string, not a big deal, I guess but...
https://localhost:8443/catalog/control/EditProduct?productId=GZ-1000&pullData=true&dataOnly=true&dataOnly=true
I did not debug deeper to see how your mechanism works.

BTW how is the purpose of this issue different from the proposition at OFBIZ-6967? You simply
want to render HTML, right?
Then the idea is to automate the rendering of fields w/o having to define what should be rendered
and how, right?

> Render form values from pulled data
> -----------------------------------
>
>                 Key: OFBIZ-9258
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9258
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Upcoming Release
>            Reporter: James Yong
>            Assignee: James Yong
>            Priority: Minor
>         Attachments: OFBIZ-9258.patch
>
>
> Currently, form data is being rendered together with the form widgets. To better facilitate
the use of Single Page or Mobile Application in the future, it would be better to let the
form widgets pull data from the server instead.
> An initial discussion was made at http://ofbiz.135035.n4.nabble.com/Render-table-rows-from-pulled-data-td4703142.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message