Hi,

--- Rapha�l Luta <[EMAIL PROTECTED]> wrote:
> 
> 
> Chris Kimpton wrote:
> > 
> > 
> > In the advanced version I want to set the portlet title, so I
> have
> > this code
> > 
> > portlet.setTitle("Advanced Search");
> > 
> > Where portlet is the VelocityPortlet parameter into the
> > buildNormalContext method.
> > 
> > This does not seem to work, I always get the title specified in
> the
> > .xreg file...
> > 
> 
> It all depends on when do you try to set up the title:
> - if it's during the the getContent() call, then it depends on the
> control implementation
>   because if getContent is only called when needed, the portlet
> title is already rendered...
>   If you're using on Velocity, you can modify the control template
> to do something like
>   this :
> 
> #if( ! $portlet.isClosed($data) )

> #set ($content = $portlet.getContent($data))

That worked great - but is there any overhead in doing this?  That
is, am I now building the content twice perhaps?

Thanks,
Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

Reply via email to