[
https://issues.apache.org/jira/browse/OFBIZ-10495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561444#comment-16561444 ]
Deepak Dixit commented on OFBIZ-10495:
--------------------------------------
Hi [~Dennis Balkir] ,
Here I am attaching slightly modified patch ,instead of supporting only section and div, we can now pass any type, if type is passed container will render specific element else default will be div. In this way we can support more html5 elements i.e. nav, header, footer etc.
Plesae review it and let me know if it looks good to you.
> Rendering different HTML container types with ScreenRenderer
> ------------------------------------------------------------
>
> Key: OFBIZ-10495
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10495> Project: OFBiz
> Issue Type: Improvement
> Reporter: Dennis Balkir
> Priority: Minor
> Attachments: OFBIZ-10495.patch, OFBIZ-10495_modular_container.patch
>
>
> This patch will add an type-parameter to the start and end render macros and methods of HTML containers.
> With this it is possible to not only use {{<div>}} containers, but also use, for example, HTML5's {{<section>}} .
> Simply by using
> {code:xml}
> <container type="section">
> <platform-specific>
> </platform-specific>
> </container>
> {code}
> the renderer will render the container element as the given type.
> If type is left empty, it will always use it's fallback {{<div>}}, and because of this no existing screen in OFBiz needs to be changed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)