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

Chris Howe commented on OFBIZ-875:
----------------------------------

The best practice here is _where possible_ eliminate the usage of 
<platform-specific/>.  So, the objection is moving data that is currently 
outside of the <platform-specific/> element into the <platform-specific/> 
element is not a good idea.

Like I said, I agree with this feature being added as it certainly makes the 
html element more robust.  However, I am likely to disagree with where you'll 
want to actually use this feature in the community project. 

1) Unordered lists - likely have a better home in menu widgets or tree widget 
if they were to receive as much attention as is being given to screen widget 
improvement 
2) labels shouldn't move into a less generic direction.  Rather, reserved label 
styles should be handled more in line with the desired interface by the 
renderer.

As I see it now, it's likely that the only place that the community project 
will benefit from this is when adding a small JavaScript snippets.  At the same 
time, there's no harm for a custom application to worry about best practices 
when it's only envisioned usage is html.

> Add ability to put HTML "snippets" in screen widget XML files
> -------------------------------------------------------------
>
>                 Key: OFBIZ-875
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-875
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Adrian Crum
>            Priority: Minor
>         Attachments: html_snippet.patch, html_snippet.patch
>
>
> Sometimes there is a need to output a little HTML that the screen widget 
> doesn't accomodate, but it's not enough code to justify a separate ftl file. 
> This improvement adds an html-snippet element to the platform-specific->html 
> element which allows HTML to be directly inserted in a widget XML file.

-- 
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