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.

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
gopi balagala
Primefaces Push Stream data in Liferay Portlet
8 juillet 2013 03:55
Réponse

gopi balagala

Rang: Youngling

Publications: 1

Date d'inscription: 24 juin 2013

Publications Récentes

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 juillet 2013 16:52
Réponse

James Min

Rang: Youngling

Publications: 9

Date d'inscription: 14 août 2006

Publications Récentes

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