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.

フォーラム

ホーム » Benefits of Liferay Portal EE

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
gopi balagala
Primefaces Push Stream data in Liferay Portlet
2013/07/08 3:55
答え

gopi balagala

ランク: Youngling

投稿: 1

参加年月日: 2013/06/24

最近の投稿

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
2013/07/10 16:52
答え

James Min

ランク: Youngling

投稿: 9

参加年月日: 2006/08/14

最近の投稿

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