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

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

Although not a perfect solution, having <label style="head1">My Heading</label> 
should still be the preferred practice over <[CDATA[<h1>My Heading</h1>]]/>.  

Moving to cdata in this instance makes your screen more medium specific instead 
of less.   A more ideal solution would be for the html renderer to identify 
reserved words head1 = <h1>, head2 = <h2>, paragraph = <p>, etc.  I understand 
there aren't many examples of non html interfaces floating around but utilizing 
cdata in this manner helps to ensure that we don't see any.  The widgets are 
kept outside of the webapp to make sure that web applications are not the only 
focus for their development.

> 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