Hi, I'm faced with the following problem. I have an base page in which I use to set the domain and to set the title information. I also use the modal window to display the pages in. Now the problem is that the title of the modalwindow doesn't correspond to the title of the page. In the modalwindow code there is a method called updateTitle which can be used to update the title of the modal window with the content of the title element. I wanna add it to my base class so all pages automatically get the needed behavior. What I've tried is attaching a behavior to the page but the problem is that the oncomponentag method isn't called. The beforerender is called before the title attribute rendered and any output I would write appears before the html tag (effectively invalidating my page). The after render renders any content after the html tag closed which is also not what I want. Putting the code in the responseheader is a possibility but i would prefer if I could add some javascript that's excecuted just after the body tag opens.
Also I want to be sure that my component hierarchy of the page doesn't change because of this. So I don't want to add an empty label in the body and attach the behavior to that. I also don't want to create some custom body container and mess with the component hierarchy. Isn't there some hook that can be implemented/overridden somewhere to do this? Thanks in advance!!