Foros de discusión

navigation from a portlet a page

Sohi Mankotia, modificado hace 11 años.

navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
hi,


Suppose I have home page and another page ABC . In home page there is a portlet A and ABC page have portlrt B. In portlet A there is a link navigate to page ABC. After clicking on that link it should be navigate to ABC page and should show portlet B in ABC page.

Can anyOne tell me how to achieve that?
thumbnail
Jignesh Vachhani, modificado hace 11 años.

RE: navigation from a portlet a page

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
You should put friendly URL of page ABC in property file and can provide as a link in home page portlet A.

Hope this would the answer, if not provide more details .
Sohi Mankotia, modificado hace 11 años.

RE: navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
hi ...sorry,i did not get u.

1. I have two portlet : 1.Welcome page of liferay (Which automatically comes when deploy application) 2. Page B
2. in Welcome page...... I have two portlets portlet x and portlet y. there is a link in Portlet X "click here" . After clicking on that user shuld navigate to page B which have simple another portlet Z.


How to implement this using JSPs and Spring Controller
thumbnail
Jignesh Vachhani, modificado hace 11 años.

RE: navigation from a portlet a page

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
Sohi

On welcome page you will have 2 portlet which has a link called "Click here" So here in this link you can provide friendly URL as a href like /web/guest/pageB of page B.
Hope this would be clear to you
Sohi Mankotia, modificado hace 11 años.

RE: navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
i am giving link

<a href="http://localhost:8080/web/guest/PageB">here</a>



but it is not moving to PageB. it again comes to welcome page.


Di i need to dom any thing in Controller???
thumbnail
Jignesh Vachhani, modificado hace 11 años.

RE: navigation from a portlet a page

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
When you simple click on pageB from navigation which URL coming out in address bar ?
That URL you will have to configure in href.
Sohi Mankotia, modificado hace 11 años.

RE: navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
ya its done.
Thank u very much.



Can u tell me one more thing:


Suppose in place of that link "click here " I have a login form with username and pwd one more field age.
when user submit by clicking on Login button. then
username password and age are sent as request parameters(action url). Then I process these in my Controller class with action method.
and i Want age parameter to pass it to the any portlet in Page B.


Then how to navigate to the page B from action method and how to delegate method to portlet of Page B.????
thumbnail
Jignesh Vachhani, modificado hace 11 años.

RE: navigation from a portlet a page

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
If you want to pass any parameter then you can use IPC (Inter portelt communication) concept of liferay.
you can check This Blog to get idea about IPC

Or another way is , to pass that parameter in session and get that parameter from session.
Sohi Mankotia, modificado hace 11 años.

RE: navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
how to do if i want to navigate through a action method of a controller to Page B.?????
Sohi Mankotia, modificado hace 11 años.

RE: navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
how to do if i want to navigate through a action method of a controller to Page B.?????
Sohi Mankotia, modificado hace 11 años.

RE: navigation from a portlet a page

New Member Mensajes: 13 Fecha de incorporación: 6/07/12 Mensajes recientes
to navigate through action method
thumbnail
Tejas Kanani, modificado hace 11 años.

RE: navigation from a portlet a page

Liferay Master Mensajes: 654 Fecha de incorporación: 6/01/09 Mensajes recientes
From Portlet A's action class you can use sendRedirect to page B.
actionResponse.sendRedirect("/web/guest/pageb");