Liferay Portal EE Trial Forums

Got an EE Trial and have a question? Use this forum to get help with your Liferay EE Trial and learn from the experts.

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
gopi balagala
Primefaces Push Stream data in Liferay Portlet
8 luglio 2013 3.55
Risposta

gopi balagala

Punteggio: Youngling

Messaggi: 1

Data di Iscrizione: 24 giugno 2013

Messaggi recenti

Hi Firends,

I am very new to Liferay Portlets, I want to do quick POC one page portlets using JSF2, Primefaces and Liferay I successfully done everything, they are asking some more changes,

Requirement:
-------------------
1). I have primefaces data table.
2). Need to add streaming push data.

If its possiable or not? If possiable please give me any examples.

Thanks,
Gopi Balagala,
gopi.balagala@derivit.com
James Min
RE: Primefaces Push Stream data in Liferay Portlet
10 luglio 2013 16.52
Risposta

James Min

Punteggio: Youngling

Messaggi: 9

Data di Iscrizione: 14 agosto 2006

Messaggi recenti

It's possible, but this is a very specific requirement so there is not going to be an example, except in pieces. Do you mean a data table JSF UI component, or a view of a DB table in the UI? For the first, you really need to look on the PrimeFaces docs for how to use a PrimeFaces datatable. If you mean a view of a DB table, you need a way to access the DB. Liferay Service Builder can be used to generate the Hibernate mappings and Spring beans/interfaces. You can take a look at the Sample Service Builder portlet and see if you can somehow integrate that in to your own portlet: https://github.com/liferay/liferay-plugins/tree/master/portlets/sample-service-builder-portlet

What do you mean by streaming push? Usually when you are streaming data you are pulling from some data source. I suppose you could find a JSF component that might do this, or you could find a JavaScript library that has what you need. You may or may not need to implement AJAX if you actually need to push data seamlessly. It's up to you what toolkits that you want to use.

There might be some other sample portlets in GitHub that you could borrow some code from: https://github.com/liferay/liferay-plugins/tree/master/portlets