Hi, I'm running Jetspeed 1.5. Like some other folks, I have a need to dynamically change the title of a portlet, based on information passed in to it. I'm trying to write Velocity portlets, so all of the information needed to set the title is obtained in the Action class, in the buildNormalContext() method. I did some looking around on the mailing list, and it appears that, due to the lifecycle of Jetspeed 1 portlets, this is not easy to do.
I found one post that seemed to help: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=1113 But, when implementing the proposed solution, it became clear to me that VelocityPortlet.getContent() writes to output rather than returning a String that can be stored as suggested in the above mail. So, as I see it, the only way I can change the title, via the Action class, is by: 1. Calling getContent twice in jetspeed.vm (which, will, if I don't have a cached portlet, call buildNormalContent twice). Surround the first call with HTML comment characters so the user doesn't see it. 2. Hack VelocityPortlet so that you can get to some part of the Action class via the jetspeed.vm template. Am I missing anything obvious? Is there an easier way to have a dynamic title? Dan PS Thanks much for putting Jetspeed together. I'm really digging how configurable and well documented it is. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
