Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Gosia K
Liferay search container loaded by ajax
11 aprile 2011 10.25
Risposta

Gosia K

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 6 novembre 2008

Messaggi recenti

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
15 novembre 2012 5.02
Risposta

Alex Curtui

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 8 novembre 2012

Messaggi recenti

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
15 novembre 2012 21.37
Risposta

Vishal Panchal

Punteggio: Expert

Messaggi: 276

Data di Iscrizione: 20 maggio 2012

Messaggi recenti

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
15 novembre 2012 21.47
Risposta

Priyanka Dhingra

Punteggio: Liferay Master

Messaggi: 501

Data di Iscrizione: 19 dicembre 2011

Messaggi recenti

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
14 febbraio 2013 20.38
Risposta

Murali Karteek

Punteggio: Junior Member

Messaggi: 36

Data di Iscrizione: 5 marzo 2012

Messaggi recenti

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
20 maggio 2013 5.22
Risposta

Murali Karteek

Punteggio: Junior Member

Messaggi: 36

Data di Iscrizione: 5 marzo 2012

Messaggi recenti

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
20 maggio 2013 22.42
Risposta

Alex Curtui

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 8 novembre 2012

Messaggi recenti

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
20 maggio 2013 23.28
Risposta

Murali Karteek

Punteggio: Junior Member

Messaggi: 36

Data di Iscrizione: 5 marzo 2012

Messaggi recenti

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
20 maggio 2013 23.59
Risposta

Alex Curtui

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 8 novembre 2012

Messaggi recenti

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
21 maggio 2013 3.09
Risposta

Murali Karteek

Punteggio: Junior Member

Messaggi: 36

Data di Iscrizione: 5 marzo 2012

Messaggi recenti

Thank You Alex,

Your Reply helped me a lot in completing the task.