• Post Reply Bookmark Topic Watch Topic
  • New Topic

Forwarding to a view on action in Liferay  RSS feed

Gopal Ram
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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!