WebSphere Portal Server - communication between portlets and themes

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2007 > communication between portlets and themes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author communication between portlets and themes

2007-07-25, 1:23 pm

Hi,

How to do we achieve communication between portlets and themes. Becoz i have following requirement, I have two different themes, first theme is having few portlets, if i click any one links in portlet from first theme then it has to go to another port
let in second theme. In this case i have different Tabs in second theme. How will i come to know, landing on current Tab. Becoz i have to deactive rest of the tabs. Is there any way. I tried in topNav.jspf file. But no clue. If you dont understand my ques
tion. Again I will explain you. pls help me.

Michael Harris

2007-07-25, 1:23 pm

First a clarification. Portlets are not in themes. Portlets are in
pages. Themes are applied to pages.

Tabs in themes usually correspond to the pages that are available for
the user to navigate to... although they don't have to if you code them
differently.

What do you mean by "deactivate" the tab. Do you mean it should go away
or do you mean it should be present, but it is disabled and the user
cannot click on it.

If you mean it should go away, you likely can change your page hierarchy
for these portlets such that when you to to the second set of pages, it
is at a different root and therefore all the other pages will
automatically go away. If you mean it should be visible, but disabled,
then you will need to write custom logic in your theme to handle this.

Can you post an example of what page tabs show up:
1. when the first portlet is showing
2. when the second portlet is showing

And then indicate which tabs are showing up when the second portlet is
showing that you do not want to show.

2007-07-26, 1:20 am

thanx for quick response. how do i write custom logic. I will explain my requirement in details here. see, I have two diff themes. First theme is having some portlets without any tabs. it just merely showing portlets. just assuming that one of the portlet
is having hyper link. if i click that link, it will take me to go second theme with corresponding tabs. In this case i have to disable the rest of the Tabs. I have written showing tabs in topNav.jspf. My doubt is when we reach second themes how will i ge
t name of current tab so that i can disable rest of the tabs. Disable means just apply css file to that tabs thats all. i hope so this time u will able to understand my question. pls help me.

Michael Harris

2007-07-26, 7:21 pm

I do not know how you have modified your theme. However, in the default
theme, the current page is called the selected page in the code. The
tab for the current page is the one where class="wpsSelectedPage" is
specified on the <li> tag. The tab for the other pages have
class="wpsUnSelectedPage" instead.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com