Hiding a Portlet on the Page(Urgent)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Hiding a Portlet on the Page(Urgent)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Hiding a Portlet on the Page(Urgent)  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-07 06:17 PM

Hello All,

I have four portlets on my page now(View part). Now what I need to do is to 
hide a portlet depending on a condition.

I dont want the portlet to be diplayed even in its minimized mode, rather I 
 want the portlet to be absent if it does not satisfy a condition.

Where do I need to put this condition in control.jsp or in Default.jsp or in
 the same view part(Viewjsp)of a portlet .

As of now I am not looking for an administration related solution for this i
e depending on his privilege , displaying him the required portlets.

Please some one tell me , Can we do this programmatically?

Its an urgent one . please suggest me your views.
Thank you.





[ Post a follow-up to this message ]



    Re: Hiding a Portlet on the Page(Urgent)  
Jessica Garcia-Glennie


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-07 06:17 PM

Please do not flat your posts as urgent. http://www.catb.org/~esr/faqs/smart...ons.html#urgent

Anyway, you can set the level of access that any user has to a portlet using
 the admin console.  If he doesn't have the required level (user), he will n
ot be able to see the portlet on the page.

Is your condition more complicated than that?





[ Post a follow-up to this message ]



    Re: Hiding a Portlet on the Page(Urgent)  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 12:21 PM

you can take a look to this topic
http://www-128.ibm.com/developerwor...6
&cat=9





[ Post a follow-up to this message ]



    Re: Hiding a Portlet on the Page(Urgent)  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-28-07 12:24 PM

> Please do not flat your posts as urgent.
> http://www.catb.org/~esr/faqs/smart-questions.html#urg
> ent
>
> Anyway, you can set the level of access that any user
> has to a portlet using the admin console.  If he
> doesn't have the required level (user), he will not
> be able to see the portlet on the page.
>
> Is your condition more complicated than that?

Thank you Jessica for your reply and I will post them as urgent again.

My actual requirement is to set a condition programtically and control the p
ortlet rendering .

In this scenario ,I will be getting the data from a third party resource so 
, in advance I will not be knowing whether the content is present or not.

If the request to that third party reource able to retrive content(data) fro
m it, portlet should display it.

Can I put some condition for <wps:portletRender> in control.jsp and control 
the portlet rendering ,as it is responsible for portlet rendering.

Can it be done this way?





[ Post a follow-up to this message ]



    Re: Hiding a Portlet on the Page(Urgent)  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-28-07 12:24 PM

Sorry,

I will not post my topics as urgent again.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register