Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Invoking a portlet

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Can I invoke a portlet B from portlet A, on some action from portlet A? I am using JBoss Portal Server.

Thanks In Advance
Devang Shah
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
Even I am looking for it but for liferay ..
 
author and cow tipper
Posts: 5006
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
You can have a portlet page call another page in a portlet application. So, page 1 can have a link that makes page 2 appear. But you can't have a portlet provide a like that makes itself disappear, and makes another reappear.

You're still in a Servlet/JSP mentality. Stop thinking of portlets as though they were JSPs or Servlets. You need to bend your mind into the portlet world.

Sounds like you might be trying to do a wizard like application. Why not just use the JSF or Struts portlet? It will allow you to easily provide a wizard like experience to a user, all within a single portlet.

Keep asking these questions though. Let me help you think like a portlet developer.

Good luck.

-Cameron McKenzie
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe I'm missing something here, because I trust Cameron, but isn't his request the definition of cooperative portlets? An action on portlet A triggers an action on portlet B...
 
author
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I Believe that page's parameters would be a simple solution.

Here is a real example in Liferay Portal.

http://sesamestreett.cignex.com/muppet

1) click a muppet, there is an action in side the portlet "Muppet" by page's parameters "muppet=name";

2) click the Video of a muppet, it will invoke the portlet Browser in the page "browseallvideos" by parameters "character=value".
 
reply
    Bookmark Topic Watch Topic
  • New Topic