From: Alistair Y. <ali...@sm...> - 2005-07-13 19:30:12
|
Thanks Mathew, I copied this into my tree with no effect. I'm not convinced the problem lies here. Template compilation used to work. I think it was using the ba= t file before. It's using an ant task now. I'm getting a NullPointerException for style_0/recycler/main.html when it XmlTemplate tries to compile: <literal type=3D"String"></literal> There isn't any localisation in this template. The lack of a string causes the exception. Which leads me to think that: <literal type=3D"String"><localise id=3D"enter.website" /></literal> in style_default/default/login_anon.html has the same problem - I verified it has a NullPointerException too. XmlTemplate.getCharacterData() replaces the <localise> element in a <literal> element with the text that the Localiser returns. This seems to point to the Localiser not being either available or not finding the properties file when XmlTemplate is invoked from the ant task= . That wouldn't explain why <literal type=3D"String"></literal> causes a NullPointerException now. It didn't before. any ideas? Alistair --=20 Alistair Young Senior Software Engineer UHI@Sabhal M=F2r Ostaig Isle of Skye Scotland > Alistair Young wrote: >> I'd rather you sent the source file - patches don't work too well here > > Attached. > > -- > +--Matthew Buckett-----------------------------------------+ > | VLE Developer, Learning Technologies Group | > | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | > +------------Computing Services, University of Oxford------+ > |