Hello

I understand RenderRequest is a subinterface of PortletRequest. Then, I
thought that doing in the doView method of my Portlet
RenderRequest.setAttribute("HideDecorator", new Boolean(true)), works.

But the attribute not comes to decorator.vm. I make
RenderRequest.setAttribute("Qro", "qro") and not comes to decorator.vm.

In the decorator.vm I do:
#set($Qro = $renderRequest.getAttribute("Qro"))

And display in the screen
portlet oculto? = ${ Qro }

Please, What am I doing wrong? The issue JS2-710 is not clear for me. The
method getPortletRequest() confused me.

Regards

-----Original Message-----
From: curro [mailto:[email protected]] 
Sent: miércoles, 24 de febrero de 2010 11:23
To: [email protected]
Subject: Hide portlet

Hello,

 

I need hide a portlet in function of his information on method doview. I
found a post where some persons were explaining like to do it, but I don't
understand it.
(http://old.nabble.com/How-can-I-hide-portlet-programmatically--td8691150.ht
ml)

 

They explained:

 

1)       The portlet calls: 
  getPortletRequest().setAttribute("HideDecorator", new Boolean(true))

2)       In webapps/jetspeed/decorations/portlet/decorator.vm I have
introduced 
variable $hidePortlet: 
  #set($hidePortlet = $renderRequest.getAttribute("js_${ 
jetspeed.CurrentFragment.Id}_HideDecorator"))

 

But I'm not able to obtain the Portlet request in the render phase. How can
I obtain the PortletRequest. Who receives the method getPortletRequest()?

With the renderrequest not works. My knowledge of portlets  and portals is
poor. Can someone help me?

 

Regards and Thanks a lot

Francisco ROsado


Se certificó que el correo entrante no contiene virus.
Comprobada por AVG - www.avg.es 
Versión: 9.0.733 / Base de datos de virus: 271.1.1/2705 - Fecha de la
versión: 02/23/10 20:34:00


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to