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 combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
gopi balagala
Primefaces Push Stream data in Liferay Portlet
8 de julio de 2013 3:55
Respuesta

gopi balagala

Ranking: Youngling

Mensajes: 1

Fecha de incorporación: 24 de junio de 2013

Mensajes recientes

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 de julio de 2013 16:52
Respuesta

James Min

Ranking: Youngling

Mensajes: 9

Fecha de incorporación: 14 de agosto de 2006

Mensajes recientes

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