Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 181691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:48:30+00:00 2026-05-11T14:48:30+00:00

I am writing my first portlet based application (for liferay, but the solution should

  • 0

I am writing my first portlet based application (for liferay, but the solution should be container agnostic) and I am wondering how people solve to provide links to the user that ‘lead’ to different portlets (maybe on different ‘pages’ in the portal).

While you can easily have different view modes inside your portlet, how can you link to another portlet and (maybe) also pass parameters along?

I am not talking about plain communication between portlets, it’s the real pageflow that interests me.

Example: You have page A with a portlet that displays a list of news items. Then you have page B that is in the way configured I’d like a single the news item to be shown (for example different portlets around it)

Is there a generic solution to link to page B and say to the news-Detail-Portlet that it should show item XYZ?

The quick and dirty solution would be to configure the target link via edit mode of the news-list-portlet. But this has several disadvantages: – complex portlets may have several target URLs which leads to massive configuration efforts for the portal admin – the urls may not follow a scheme that allows simple parameter injection

I have a solution in mind, but this would require massive efforts and maybe changes in the targeted portlets, which is not always possible if you use 3rd party portlets.

My solution would look like this: (draft!)

Portlets register at a central service with their portlet IDs and when a portlet wants to link to a portlet it can do a lookup based on a symbolic name. This would ease the pain for the admin, because it is possible to ‘auto discover’ portlets. The service may also provide a UI to wire portlets based on source and target portlet.

The URL generation for portlets that can be changes may be solved via service call to the portlet that generates the URL as a whole with injected parameters and returns it. For portlets that you can’t change you have to append the parameters and hope that it works. :-/

Any suggestions? Are there simpler solutions? existing solutions?

Thanks!

Patrick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:48:31+00:00Added an answer on May 11, 2026 at 2:48 pm

    As far as I know Portlet Specification doesn’t cover this. So there is no portable solution. For Liferay you can always use theirs custom tag library which aims exactly this issue. There is similar mechanism for Websphere Portal.

    Something can be found here and here

    Generally I would try to avoid this and use standard IPC mechanism(Public Render Parameters or Events)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 239k
  • Answers 239k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You need to declare all your localizable text with NSLocalizedString… May 13, 2026 at 7:00 am
  • Editorial Team
    Editorial Team added an answer Found the problem!!! - closest('tr') has harmfull behaviour in Firefox.… May 13, 2026 at 7:00 am
  • Editorial Team
    Editorial Team added an answer This doesn't work, and here is a good answer that… May 13, 2026 at 7:00 am

Related Questions

I am writing my first serious wxWidgets program. I'd like to use the wxConfig
I am writing my first project that will use autoconf and teaching it to
I am writing my first taglib as part of a plugin and I would
I am writing my first class-library in VB.NET. My idea is to distribute this

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.