Win a copy of Terraform in Action this week in the Cloud 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How to pass parameters between portlets?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By entering some details in a portlet and clicking submit, the entered parameters should be passed to the another portlet. Can you please any one help on htis?
[ March 06, 2008: Message edited by: Subramanian N V ]
 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can generate a url using the wps:urlGeneration tag

here is a link that might be of good help

http://publib.boulder.ibm.com/infocenter/wpdoc/v510/index.jsp?topic=/com.ibm.wp.ent.doc/wps/dgn_link.html
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please tell me how to do this in JSR168 portlets.
 
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're going to find this a challenge in JSR168.

Portlets in a common war can share data in the PortletSession through the APPLICATION scope, but I'm not sure if that solves your problem.

I might ask why it's a second portlet that needs the first portlet's data? Could you change the design of the app to be more portal friendly? What about having a single portlet accept the data, but switch on which JSP it might send the data to?

Working with the portal requires a mind shift. You have to start thinking like a portal developer, and not a Servlet/JSP developer. Portal requires a mind shift.

Maybe you can describe what you're trying to accomplish, as opposed to how you are trying to do it? Maybe we can provide some insight.

Good luck!

-Cameron McKenzie
 
author
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

As mentioned early, there is a sample way to pass parameters among portlets:

by page's parameters.

Here is a real example:
[ June 14, 2008: Message edited by: Jonas X. Yuan ]
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jonas,

Can you please tell me how to pass the page's parameters.

Thanks,
Anant
 
Anant Jagania
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cameron,

I am working on a portal server. But very confused about how to set the requirement with it.

I would like to know what mind shift is required to develop portal application.

My requirements are somthing like.. i have two different pages having same portlets but portlets needs to show different data.

Please advice me.
reply
    Bookmark Topic Watch Topic
  • New Topic