• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Can I make a call to another portlet?

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Iam new to portlets can any one answer the below query.
I need to call some other portlets depending upon the successfull login.
Is it possible using JSR 168 portlets?

Thanks in Advance
Srikanth
 
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
You can package multiple portlets within a common, single, portlet applicatio war file. These portlets can share information through the Application Scope of the PortletSession. Check out my signature links for some free tutorials on the subject.

However, JSR168 portlets don't really call each other. There's no mechanism to do that, and it's not really how portlets are intended to work. Portlets are supposed to be independent creatures sharing space on a portal page.

What you might need is a JSF portlet that allows a wizard like experience through a portlet. It's a very proven pattern.

Also, IBM provides things like C2A, click-2-action, to provide inter-portlet communication. They also provide a PortletService framework to perhaps facilitate sharing information. IBM specific though, so don't bet the interoperabiliy of your portlets on it.

Keep asking questions - we'll get you thinking like a portlet developer in no time!

-Cameron McKenzie
 
Srikanth Ganji
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cameron McKenzie,

My req is to show the other features like policy's the user is having other Info about the policy's in seperate portlets after successfull login of the user.
Hence I want to call one portlet from the other things to retrive the user related all other Info depending upon successfull login in different portlets.
Just want to know the info that there is a login for each and every portlet site is that validated against the user's created in the Application server i.e somthing like IDMS which is having the user details or we can store the info about loginid and password in the database.

can you throw some light on it.

Thanks & regards
Srikanth
 
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
The PortalAPI allows you to obtain a User object that allows you to obtain all sorts of information about the user, and the RenderRequest defines a variable called USER_INFO.

RenderRequest API

Any portlet can grab this information. If the portlets are on the page, you can have them display. The portal page aggregation mechanism will call the view mode of any portlet placed on a page, and perhaps those portlets could grab this information and display the information you're interested in.

-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
The Answer is YES.

There is a simple way to do it: by page's parameter.

Here is an example,

1) navigation portlet (games navigation), input keyword "test" and and press GO;

2) in the same page, browse portlet takes this keyword "test" and do keyword-search for games, and then display search results.

Here is real example (Liferay Portal):


Thanks

Jonas Yuan
http://liferay.cignex.com
[ June 14, 2008: Message edited by: Jonas X. Yuan ]
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic