[ 
https://issues.apache.org/jira/browse/OFBIZ-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrian Crum updated OFBIZ-1318:
-------------------------------

    Attachment: widget_boundary_comments.patch

Si,

I am attaching a basic patch for you to review. I moved the boundary comment 
code to the rendering classes. I also cleaned up a few things and fixed a bug I 
ran into while working on it.

The rendered comments don't include the location#name syntax you're looking for 
because the rendering classes have no references to the model classes that 
created them.  I could develop this further to enable that capability, but that 
would require refactoring the widget interfaces.

HTML comments are enabled with the "widgetVerbose" parameter set to true.


> 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
>         Attachments: widget_boundary_comments.patch
>
>
> 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.

Reply via email to