Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Francois Fournel
Spring portlet MVC and liferay : redirect to a specific portlet page
15 de Julho de 2011 06:45
Resposta

Francois Fournel

Ranking: Junior Member

Mensagens: 99

Data de entrada: 15 de Abril de 2010

Mensagens recentes

Hello,

I am stuck into a technical problem mixing spring portlet MVC and liferay.
I have a JSP page displayed in the navigator and when I click on a button, I want to redirect the user to another portlet at a specific page (not the landing one when we deploy the portlet for the first time).
I don't know how to contruct the redirection URL (which allows to go from portlet A to portlet B at portlet B's specific page).

Can you help me on that point please.

Thank you.

PS : for the moment I use spring portlet MVC with liferay 606 CE. I use annotations with @RenderRequest to display a JSP page. So I need to call a specific @RenderRequest annotated method to display my specific JSP page.
Jonas Yuan
RE: Spring portlet MVC and liferay : redirect to a specific portlet page
15 de Julho de 2011 06:57
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

Hi Francois Fournel,

It would be better that you could leverage Liferay Friendly URL framework.

Thanks

Jonas Yuan
Francois Fournel
RE: Spring portlet MVC and liferay : redirect to a specific portlet page
7 de Setembro de 2011 06:11
Resposta

Francois Fournel

Ranking: Junior Member

Mensagens: 99

Data de entrada: 15 de Abril de 2010

Mensagens recentes

Thank you for your answer.
Do you mean I need to get rid of Spring MVC annotation ?
I'am too far in the project to go for another framework emoticon.
I would like just the solution for spring mvc, the problem comes again today.
I definitely must find a solution for this ! emoticon

EDIT : I insist in the fact I want to redirect to a PORTLET specific page (not a liferay specific page (=url adress in the navigator))
Steffen Schuler
RE: Spring portlet MVC and liferay : redirect to a specific portlet page
28 de Setembro de 2011 08:18
Resposta

Steffen Schuler

Ranking: Regular Member

Mensagens: 130

Data de entrada: 12 de Maio de 2008

Mensagens recentes

I recommend friendly URLs too... it is just simpler.


within you JSP you can e.g. define a link like:

<portlet:actionURL var="redirectURL" name="redirectAction"/>
<a href="<%= redirectURL.toString() %>" name="redirect">go to my page via a redirection</a>


within you SpringMVCPortlet

@ActionMapping(value="com.javax.portlet.Action=redirectAction")
public void redirectAction(ActionRequest req, ActionResponse res){
res.redirect("/somewhere/mypage")
}



If you want to redirect according to a specific parameter, you can add a parameter to the portlet:actionURL and extract in you Action method...
Manish Devraj
RE: Spring portlet MVC and liferay : redirect to a specific portlet page
4 de Janeiro de 2012 05:09
Resposta

Manish Devraj

Ranking: New Member

Mensagens: 1

Data de entrada: 4 de Janeiro de 2012

Mensagens recentes

I am having similar issue. I am creating portlet with Spring MVC that will load multiple views from Spring within same portlet. I have used Liferay navigation (navigation.vm) to create application level menu. Now I want to call specific page of portlet from menu. Say I have User information and Product information pages developed using Spring. Now I can create sub level of menu as "Users" and "Products" which shall redirect to these pages.

As this is not happening using code I need to know my portlet URL and URL of pages that gets loaded so I can call them to point to actual URLs using some friendly URL.

Can you please help me achieve this
Tejas patel
RE: Spring portlet MVC and liferay : redirect to a specific portlet page
12 de Março de 2013 06:38
Resposta

Tejas patel

Ranking: Junior Member

Mensagens: 71

Data de entrada: 23 de Janeiro de 2012

Mensagens recentes

Hello Francois,

Do you get the solution of your problem?
If yes, then please share it because I have same problem using springMVC.

Thanks,
Tejas patel