掲示板

Liferay search container loaded by ajax

13年前 に Gosia K によって更新されました。

Liferay search container loaded by ajax

New Member 投稿: 1 参加年月日: 08/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!
11年前 に Alex Curtui によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 30 参加年月日: 12/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.
thumbnail
11年前 に Vishal Panchal によって更新されました。

RE: Liferay search container loaded by ajax

Expert 投稿: 289 参加年月日: 12/05/20 最新の投稿
Hi All,

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

Thanks,
Vishal R. Panchal
thumbnail
11年前 に Priyanka Dhingra によって更新されました。

RE: Liferay search container loaded by ajax

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
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
thumbnail
11年前 に Murali Karteek によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 37 参加年月日: 12/03/05 最新の投稿
Hi All,

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

Thanks and Regards,
Karteek.
thumbnail
10年前 に Murali Karteek によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 37 参加年月日: 12/03/05 最新の投稿
Hi All,

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

Thanks & regards,
Karteek
10年前 に Alex Curtui によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 30 参加年月日: 12/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
thumbnail
10年前 に Murali Karteek によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 37 参加年月日: 12/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.
10年前 に Alex Curtui によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 30 参加年月日: 12/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:

<!-- you need to define an url to which the call is made -->
<portlet:resourceurl var="ajaxSearchUrl" />

//this applies for all select's on page, you should modify it to get only the desired ones
//remove default javascript action
A.all("select").set("onchange", "");

//refresh the page on "change" event
A.all("select").on("change", function(dropdown){
	var uri = "${ ajaxSearchUrl }";
	uri += //and here it depends what have you selected
	// if change page: uri += "&amp;cur=" + selectedValue &lt;- taken from dropdown parameter
	// else, change delta param

	parent.io.set('uri', uri);
	parent.io.start();
});


Regards,
Alex
thumbnail
10年前 に Murali Karteek によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 37 参加年月日: 12/03/05 最新の投稿
Thank You Alex,

Your Reply helped me a lot in completing the task.
9年前 に Prathibha h m によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 74 参加年月日: 09/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
thumbnail
8年前 に Puneet Malode によって更新されました。

RE: Liferay search container loaded by ajax

New Member 投稿: 17 参加年月日: 12/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.
thumbnail
8年前 に Ravi Darji によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 56 参加年月日: 14/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
thumbnail
8年前 に Puneet Malode によって更新されました。

RE: Liferay search container loaded by ajax

New Member 投稿: 17 参加年月日: 12/07/20 最新の投稿
Hi Ravi,
The entire working portlet is attached to my previous reply. You can download the portlet from there.
thumbnail
8年前 に kartik shiroya によって更新されました。

RE: Liferay search container loaded by ajax

Junior Member 投稿: 47 参加年月日: 14/12/29 最新の投稿
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
8年前 に Shiva Krishna Goud によって更新されました。

RE: Liferay search container loaded by ajax

Regular Member 投稿: 110 参加年月日: 15/01/02 最新の投稿
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