> -----Ursprungliche Nachricht----- > Von: Scott Eade [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 19. September 2002 01:00 > An: turbine-user > Betreff: Re: AW: trouble extending TemplatePageAttributes > > > > From: "Marc Lustig" <[EMAIL PROTECTED]> > > > > $page.setScript($content.getURI("resources/audiotex.js")) > > > This is how I use the setScript() method that I have added to my extended > TemplatePageAttributes. > > Everything else looks okay, but I am wondering how your page renders when > the template does not include the above line - in particular, does the > rendered html include a <head> element?
When I don't use any of the methods of my TemplatePageExtendedAttributes class in my Default.vm everything works fine. When I include one of the methods like the setScript nothing appears except the error message. When I comment the one statement in setScript it works fine as well, but nothing is put into the head, of course. It seems the problem is due to the RunData-field not being initialized properly. Also, your patch appears incomplete since the RunData-field in TemplatePageAttributes is declared private. You need to add the field to the extended class in order to compile. I have to dig further... Marc -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
