[
https://issues.apache.org/jira/browse/OFBIZ-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533140
]
Adrian Crum commented on OFBIZ-1318:
------------------------------------
Si,
I looked at that capability back when I was refactoring the UI. The existing
comments that Jacques mentioned were put there by me. At the time David had
commented about the existing capability to turn on the comments via a
parameter, so I checked into it. I found that the code David is referring to
needed work - because the commenting was done by the model classes, not the
HTML rendering classes. I had planned on reworking the screen widgets to move
that code to the HTML rendering classes, but I ran out of time.
Anyways, I'll vote for this. I agree it would greatly benefit development. I
can lend a hand if you'd like.
> screen widget show where code came from in html
> -----------------------------------------------
>
> Key: OFBIZ-1318
> URL: https://issues.apache.org/jira/browse/OFBIZ-1318
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Si Chen
>
> This should help debugging a lot:
> The screen widget render could put in an HTML comment in the html document if
> log INFO is turned on (or VERBOSE if you really don't like it) to show where
> the text came from. For example, if the screen widget called a form, it
> could put into HTML:
> <!-- Begin XXXX.Forms.xml#FormA -->
> <!-- End XXXX.Forms.xml#FormA -->
> Similarly, if html-template is called it could put into HTML:
> <!-- Begin applications/XXX/x.ftl -->
> <!-- End applications/XXX/x.ftl -->
> etc. etc.
> I think this would be a good debugging tool.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.