You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacopo Cappellato <ja...@hotwaxmedia.com> on 2009/04/23 20:20:52 UTC

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

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 {


Re: 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 <ja...@hotwaxmedia.com>.
sure, I will do.

On Apr 23, 2009, at 8:31 PM, Adrian Crum wrote:

> Now that I think of it, I only added the macros to the HTML macro  
> template. You could do the rest if you want.
>
> -Adrian
>
> Jacopo Cappellato wrote:
>> 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 {


Re: 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 Adrian Crum <ad...@hlmksw.com>.
Now that I think of it, I only added the macros to the HTML macro 
template. You could do the rest if you want.

-Adrian

Jacopo Cappellato wrote:
> 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 {
>