• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking a portlet

 
Shah Devang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
 
saumil baxi
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
Even I am looking for it but for liferay ..
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
Vito Andolini
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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...
 
Jonas X. Yuan
author
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • 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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic