Hi Ganesh, I fixed this in the trunk earlier in the year but I guess I didn't back port it to 9.04 (or you're using an old trunk revision).
If you look at the commit history for MacroScreenRenderer.java from sometime around February or March you should be able to find the changes easily enough. From memory I think the problem was that the screen renderer was using the writer passed to it during initialization instead of the one passed to it in each of the render* methods. Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/08/2010, at 10:26 PM, Ganesh Bawne wrote: > I am using CMS to store Freemarker templates. These freemarker templates are > called inside the Screen Widgets using Content element. My freemarker > templates also include other screens as well as HTML tags such as <div>. > Screens inside the freemarker template are rendered using > render.screen(“ScreenName”) method. > > Now the problem is, when Freemarker template is rendered it renders the > screen properly but the HTML tags part of the freemarker templates are > rendered after the render.screen() call irrespective of the location of the > html tags in the FTL template. > > Only difference between what I am doing and out of the box code is that FTL > templates are stored in the CMS instead of the file system and called inside > the screen widget using the Content (or SubContent) element instead of > “platform-specific element”. I am not sure what is the difference in > freemarker rendering when template is stored in the CMS. > > Can someone point me to the right code to look into this problem. > > > > > Thanks & Regards > Ganesh Bawne
smime.p7s
Description: S/MIME cryptographic signature
