More info below.

--- Dan Moore <[EMAIL PROTECTED]> wrote:

> 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.

And this method doesn't work for me, because it breaks the Customizer. 
(The Customizer apparently outputs HTML comment characters, which close
the comment around the first call.)

Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to