This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Invoking a portlet

 
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
 
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 ..
 
author and cow tipper
Posts: 5000
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
 
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...
 
author
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".
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!