フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Gosia K
Liferay search container loaded by ajax
2011/04/11 10:25
答え

Gosia K

ランク: New Member

投稿: 1

参加年月日: 2008/11/06

最近の投稿

Hi,

I’m trying to load a liferay table (liferay-ui:search-container) using ajax. To do that I set windowState="EXCLUSIVE" and everything works perfect.
But then any link (portlet:renderURL) in that piece of code by default is invoked in exclusive mode too.
Because of that pagination is called in EXCLUSIVE mode and as a result I have a white page with only the content of my portlet.

Is there any way to have pagination using ajax or to remove exclusive mode for pagination.

Thanks!
Alex Curtui
RE: Liferay search container loaded by ajax
2012/11/15 5:02
答え

Alex Curtui

ランク: Junior Member

投稿: 30

参加年月日: 2012/11/08

最近の投稿

Hello, have you solved your problem?
If so, can you share some hints about how you loaded the search container by ajax?

Regards,
Alex C.
Vishal Panchal
RE: Liferay search container loaded by ajax
2012/11/15 21:37
答え

Vishal Panchal

ランク: Expert

投稿: 279

参加年月日: 2012/05/20

最近の投稿

Hi All,

According to me the Best way to achieve this is to use jqxGrid .

Thanks,
Vishal R. Panchal
Priyanka Dhingra
RE: Liferay search container loaded by ajax
2012/11/15 21:47
答え

Priyanka Dhingra

ランク: Liferay Master

投稿: 501

参加年月日: 2011/12/19

最近の投稿

Can you tell how you did the former part....
load a liferay table (liferay-ui:search-container) using ajax.
I have a requirement...but not getting how to do it
Murali Karteek
RE: Liferay search container loaded by ajax
2013/02/14 20:38
答え

Murali Karteek

ランク: Junior Member

投稿: 37

参加年月日: 2012/03/05

最近の投稿

Hi All,

Can you show me piece of code to achieve Liferay Search Container loaded using Ajax?

Thanks and Regards,
Karteek.
Murali Karteek
RE: Liferay search container loaded by ajax
2013/05/20 5:22
答え

Murali Karteek

ランク: Junior Member

投稿: 37

参加年月日: 2012/03/05

最近の投稿

Hi All,

Some one guide me to load the liferay search container table loaded by ajax?

Thanks & regards,
Karteek
Alex Curtui
RE: Liferay search container loaded by ajax
2013/05/20 22:42
答え

Alex Curtui

ランク: Junior Member

投稿: 30

参加年月日: 2012/11/08

最近の投稿

Hi,

I don't have time to detail the process right now, but here are some links that will help you:

Search Container with pagination withour refresh and Search Container on popup page.

Good luck,
Alex
Murali Karteek
RE: Liferay search container loaded by ajax
2013/05/20 23:28
答え

Murali Karteek

ランク: Junior Member

投稿: 37

参加年月日: 2012/03/05

最近の投稿

Hi Alex,

Thanks for your reply. I tried it earlier itself and it is working fine.
But my requirement is not only that along with that , when I select any option from select box according
to option search container table should be updated in the same page through Ajax Control.
And also Search Container with pagination without refresh.

Both the things should be work for me.



Thanks & regards,
Karteek.
Alex Curtui
RE: Liferay search container loaded by ajax
2013/05/20 23:59
答え

Alex Curtui

ランク: Junior Member

投稿: 30

参加年月日: 2012/11/08

最近の投稿

Hi Karteek,

Unlike links (a hrefs), the dropdown has a javascript action attached to it. You must remove it, and attach yours, which does the same thing as for hrefs:

 1<!-- you need to define an url to which the call is made -->
 2<portlet:resourceURL var="ajaxSearchUrl"/>
 3
 4//this applies for all select's on page, you should modify it to get only the desired ones
 5//remove default javascript action
 6A.all("select").set("onchange", "");
 7
 8//refresh the page on "change" event
 9A.all("select").on("change", function(dropdown){
10    var uri = "${ ajaxSearchUrl }";
11    uri += //and here it depends what have you selected
12    // if change page: uri += "&cur=" + selectedValue <- taken from dropdown parameter
13    // else, change delta param
14
15    parent.io.set('uri', uri);
16    parent.io.start();
17});


Regards,
Alex
Murali Karteek
RE: Liferay search container loaded by ajax
2013/05/21 3:09
答え

Murali Karteek

ランク: Junior Member

投稿: 37

参加年月日: 2012/03/05

最近の投稿

Thank You Alex,

Your Reply helped me a lot in completing the task.
Prathibha h m
RE: Liferay search container loaded by ajax
2014/06/02 2:58
答え

Prathibha h m

ランク: Junior Member

投稿: 63

参加年月日: 2009/09/17

最近の投稿

Hi Murali,

Can you let me know how were able to achieve this. Can you please share your code block.

it will be a great help.

Regards,
Prathibha
Puneet Malode
RE: Liferay search container loaded by ajax
2015/08/12 22:27
答え

Puneet Malode

ランク: New Member

投稿: 17

参加年月日: 2012/07/20

最近の投稿

Hi Prathibha,
I may be replying to old post, but it may help someone.
I have created POC for loading the Search Container using Ajax. Please look into the attached portlet for complete code.
添付ファイル: ResourceServering-portlet.7z (115.1k)
Ravi Darji
RE: Liferay search container loaded by ajax
2015/12/03 21:22
答え

Ravi Darji

ランク: Junior Member

投稿: 27

参加年月日: 2014/05/14

最近の投稿

Puneet Malode:
Hi Prathibha,
I may be replying to old post, but it may help someone.
I have created POC for loading the Search Container using Ajax. Please look into the attached portlet for complete code.

Hi Puneet,

can you give me download Link?

Thanks & Regards,
Ravi Darji
Puneet Malode
RE: Liferay search container loaded by ajax
2015/12/07 6:51
答え

Puneet Malode

ランク: New Member

投稿: 17

参加年月日: 2012/07/20

最近の投稿

Hi Ravi,
The entire working portlet is attached to my previous reply. You can download the portlet from there.
kartik shiroya
RE: Liferay search container loaded by ajax
2016/01/11 22:58
答え

kartik shiroya

ランク: Junior Member

投稿: 34

参加年月日: 2014/12/28

最近の投稿

Murali Karteek:
Thank You Alex,

Your Reply helped me a lot in completing the task.



Hello Murali Karteek

Can u share your code block how u done this task.

Regards,
Kartik
Shiva goud
RE: Liferay search container loaded by ajax
2016/01/11 23:32
答え

Shiva goud

ランク: Regular Member

投稿: 110

参加年月日: 2015/01/01

最近の投稿

kartik shiroya:
Murali Karteek:
Thank You Alex,

Your Reply helped me a lot in completing the task.



Hello Murali Karteek

Can u share your code block how u done this task.

Regards,
Kartik



you can get Punnet POC form this URL
https://www.liferay.com/community/forums?p_auth=GDxR0Edp&p_p_id=19&p_p_lifecycle=1&p_p_state=exclusive&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=1&p_p_col_count=2&_19_struts_action=%2Fmessage_boards%2Fget_message_attachment&_19_messageId=57413273&_19_attachment=ResourceServering-portlet.7z