掲示板

navigation from a portlet a page

11年前 に Sohi Mankotia によって更新されました。

navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
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
11年前 に Jignesh Vachhani によって更新されました。

RE: navigation from a portlet a page

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
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 .
11年前 に Sohi Mankotia によって更新されました。

RE: navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
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
11年前 に Jignesh Vachhani によって更新されました。

RE: navigation from a portlet a page

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
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
11年前 に Sohi Mankotia によって更新されました。

RE: navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
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
11年前 に Jignesh Vachhani によって更新されました。

RE: navigation from a portlet a page

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
When you simple click on pageB from navigation which URL coming out in address bar ?
That URL you will have to configure in href.
11年前 に Sohi Mankotia によって更新されました。

RE: navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
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
11年前 に Jignesh Vachhani によって更新されました。

RE: navigation from a portlet a page

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
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.
11年前 に Sohi Mankotia によって更新されました。

RE: navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
how to do if i want to navigate through a action method of a controller to Page B.?????
11年前 に Sohi Mankotia によって更新されました。

RE: navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
how to do if i want to navigate through a action method of a controller to Page B.?????
11年前 に Sohi Mankotia によって更新されました。

RE: navigation from a portlet a page

New Member 投稿: 13 参加年月日: 12/07/06 最新の投稿
to navigate through action method
thumbnail
11年前 に Tejas Kanani によって更新されました。

RE: navigation from a portlet a page

Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
From Portlet A's action class you can use sendRedirect to page B.
actionResponse.sendRedirect("/web/guest/pageb");