From: Tim P. <ti...@pa...> - 2004-02-27 16:37:05
|
On Friday 27 February 2004 4:04 pm, Keats wrote: > I'd be willing to change the default behaviour of $Form to return empty > strings instead of nulls, as this seems more useful. Any objections? I may not have correctly analysed what is causing the new behaviour,=20 but it seems good not to change the way things work. > I would also add a method to check if a parameter exist, e.g., > $Form.Exists.formVar. That seems useful.=20 > btw, what problems are you having with FastWriter? You should be able = to > just ignore it altogether with 2.0. Would that that were true.=20 Tim Joyce 'understood' the FastWriter and used it pervasively.=20 In trying to remove it I have broken everything.=20 The first symptom [1] was given Template A abd templets b and c=20 evaluated within it I got output=20 bcA I then fiddled some more.=20 The problem seems to be that org.webmacro.Template no longer=20 renders to a FastWriter but to an OutputStream, which breaks=20 my rendering to a string buffer, as a StringWriter does not have=20 an OutputStream ???? http://melati.org/cgi-bin/cvsweb.cgi/melati/src/org/melati/template/webma= cro/WebmacroTemplate.java.diff?r1=3D1.8&r2=3D1.9 shows you the 1st change I made to get to [1] above.=20 I could really do with some help.=20 cheers timp |