communication between portlets and themes
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 > communication between portlets and themes




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

    communication between portlets and themes  


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


 
07-25-07 06: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 f
ew portlets, if i click any one links in portlet from first theme then it ha
s 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.






[ Post a follow-up to this message ]



    Re: communication between portlets and themes  
Michael Harris


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


 
07-25-07 06: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.





[ Post a follow-up to this message ]



    Re: communication between portlets and themes  


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


 
07-26-07 06:20 AM

thanx for quick response. how do i write custom logic. I will explain my req
uirement in details here. see, I have two diff themes. First theme is having
 some portlets without any tabs. it just merely showing portlets. just assum
ing that one of the portlet
is having hyper link. if i click that link, it will take me to go second the
me with corresponding tabs. In this case i have to disable the rest of the T
abs. I have written showing tabs in topNav.jspf. My doubt is when we reach s
econd 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.






[ Post a follow-up to this message ]



    Re: communication between portlets and themes  
Michael Harris


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


 
07-27-07 12:21 AM

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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:16 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