• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inter portlet Call

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
How can I call one portlet from another one on a button click.

-Vivek
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, you asked a loaded question.

One option is to use Jetspeed legacy messaging, but that's gone away with JSR-168.

Another way is to have the 'second' portlet read some data placed in a shared session. Portlets in the same portlet app can potentially share their session space, but if the two portlets are in different wars, you're out of luck.

WebSphere provides a C2A or Click-to-Action technology which is slick, but I don't know how 'standard' that is. If you're using WebSphere Portal, I could probably help you out with Click-2-Action.

Another option might be to use a Struts portlet type of domain, which helps you to create multi-pate portlet applciations.

The big point is that you don't really call one portlet from another portlet. The portal page is supposed to be an aggregation of data, and sometimes designing portal applications requires you to bend your thinking in a way you just might not be used to.

Cheers!

-Cameron McKenzie
 
Vivek Nidhi
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using websphere portal server
 
Cameron Wallace McKenzie
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know if I'd describe it as 'calling a portlet from another portlet', but I'd say that using C2A is a pretty slick mechanism. Click to Action is more of a messaging mechanism, that allows one portlet to send content or text to another portlet.

Another mechanism might be using the Struts portlet framework if you are trying to create a wizard type appliations.

-Cameron McKenzie
 
Evil is afoot. But this tiny ad is just an ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic