Re: svn commit: r789200 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r789200 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java

Jacopo Cappellato-4
Hi Adam,

thanks for enhancing the code in the HtmlFormRenderer.
BTW it is worth of mention that the <Html, Text, Xml, Fo><Form,  
Screen>Renderer classes are no more used by the trunk and have been  
all substituted by the new Macro<Screen, Form>Renderer classes.

Cheers,

Jacopo

On Jun 28, 2009, at 9:17 PM, [hidden email] wrote:

> Author: doogie
> Date: Mon Jun 29 03:17:39 2009
> New Revision: 789200
>
> URL: http://svn.apache.org/viewvc?rev=789200&view=rev
> Log:
> Convert one direct call to ContentUrlTag.appendContentPrefix to the
> local appendContentUrl.
>
> Modified:
>    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/
> HtmlFormRenderer.java
>
> Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/
> HtmlFormRenderer.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?rev=789200&r1=789199&r2=789200&view=diff
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/
> HtmlFormRenderer.java (original)
> +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/
> HtmlFormRenderer.java Mon Jun 29 03:17:39 2009
> @@ -2666,10 +2666,7 @@
>         String value = modelFormField.getEntry(context,  
> imageField.getValue(context));
>         if (UtilValidate.isNotEmpty(value)) {
>             writer.append(" src=\"");
> -            StringBuilder buffer = new StringBuilder();
> -            ContentUrlTag.appendContentPrefix(request, buffer);
> -            writer.append(buffer.toString());
> -            writer.append(value);
> +            appendContentUrl(writer, value);
>             writer.append('"');
>         }
>
>
>


smime.p7s (3K) Download Attachment