Login  Register

Fwd: svn commit: r767996 - in /ofbiz/trunk: applications/order/webapp/ordermgr/request/ applications/party/templates/email/ applications/workeffort/webapp/workeffort/workeffort/ framework/common/webcommon/includes/ framework/widget/src/org/ofbiz/widget/fo/ ...

Posted by Jacopo Cappellato-4 on Apr 23, 2009; 6:20pm
URL: http://ofbiz.116.s1.nabble.com/Fwd-svn-commit-r767996-in-ofbiz-trunk-applications-order-webapp-ordermgr-request-applications-party--tp201619.html

Hi Adrian,

thanks for working at this; do you want me to write the 4 freemarker  
methods? I can quickly do this if you want.

Jacopo

Begin forwarded message:

> Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/
> MacroScreenRenderer.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenRenderer.java?rev=767996&r1=767995&r2=767996&view=diff
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/
> MacroScreenRenderer.java (original)
> +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/
> MacroScreenRenderer.java Thu Apr 23 17:54:30 2009
> @@ -116,11 +116,35 @@
>         return rendererName;
>     }
>
> +    public void renderScreenBegin(Appendable writer, Map<String,  
> Object> context) throws IOException {
> +        executeMacro("<@renderScreenBegin/>");
> +    }
> +
> +    public void renderScreenEnd(Appendable writer, Map<String,  
> Object> context) throws IOException {
> +        executeMacro("<@renderScreenEnd/>");
> +    }
> +
>     public void renderSectionBegin(Appendable writer, Map<String,  
> Object> context, ModelScreenWidget.Section section) throws  
> IOException {
> -        // TODO: not implemented FIXME
> +        if (section.boundaryCommentsEnabled()) {
> +            StringWriter sr = new StringWriter();
> +            sr.append("<@renderSectionBegin ");
> +            sr.append("boundaryComment=\"Begin ");
> +            sr.append(section.isMainSection ? "Screen " : "Section  
> Widget ");
> +            sr.append(section.getBoundaryCommentName());
> +            sr.append("\"/>");
> +            executeMacro(sr.toString());
> +        }
>     }
>     public void renderSectionEnd(Appendable writer, Map<String,  
> Object> context, ModelScreenWidget.Section section) throws  
> IOException {
> -        // TODO: not implemented FIXME
> +        if (section.boundaryCommentsEnabled()) {
> +            StringWriter sr = new StringWriter();
> +            sr.append("<@renderSectionEnd ");
> +            sr.append("boundaryComment=\"End ");
> +            sr.append(section.isMainSection ? "Screen " : "Section  
> Widget ");
> +            sr.append(section.getBoundaryCommentName());
> +            sr.append("\"/>");
> +            executeMacro(sr.toString());
> +        }
>     }
>
>     public void renderContainerBegin(Appendable writer, Map<String,  
> Object> context, ModelScreenWidget.Container container) throws  
> IOException {


smime.p7s (3K) Download Attachment