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