Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Forwarding to a view on action in Liferay

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Portal and trying to do some prototype on some portlets in different views. I am using 4.1 Liferay version. I was successfuly in creating views and portlets inside views. I have a list of rows in a table clicking on which I should be able to navigate to a different view by passing some context.

Is it possible to switch to a different view (layout id is different) programmatically and pass parameters to that.

Portlet in view1 as a table of customers and on selecting the customer a customer specific view should be selected. Need to switch to View2 which should have the selected customer as the context. Is this possible to do it.

I tried the following but faced some difficulties.

1. I had an Action request which accepts the incoming request.
2. Customer name is passed as a parameter to the Action request.
3. Have a URL redirect (Currently hard coded the layout id that needs to be changed. Did not figure out a way to get the layout id from View name) by passing the url paremeter as the customer name.

This approach did not work since I am not able to get the http parameter from the portlet class on View2.

Is theare any other way of doing this.

--gram
 
Run away! Run away! Here, take this tiny ad with you:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!