Foros de discusión

Problem Liferay 6 with primefaces

PortletFaces Community Member, modificado hace 12 años.

Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
Hi ,

I would like to work with liferay 6 and primefaces, but I have a problem ti integrate primefaces with liferay. Even <p:commandButton> and <p:commandLink> don't work means don't have any action, they only
execute the methods of bean but don't display anything from the destination page.
Help me please and sorry for my bad english.
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
I've seen posts here by developers that have successfully used PrimeFaces. Please attach a test portlet to this message that reproduces your problem. If possible, please attach a maven-based project.
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
Thanks Neil

this is an example of a portlet which causes a problem, for example here when I execute the method deleteUser , the user is deleted from data base but I have an empty page after executing the method and I don't have the container of my page test.xhtml. This is my project :
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Hi Farhat,

I should have an opportunity to look at this in the coming weeks, but for now, did you try Cagatay's example portlet?
http://code.google.com/p/primefaces/source/browse/examples/trunk/prime-portlet

Neil
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
Hi Neil ,
I had been tried with the url that you had given but any results emoticon
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Are you using Liferay 6.0 or Liferay 6.1? Also, what version of PrimeFaces?
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
I use liferay 6.0 and primefaces 3.1 , also I had tried by using primefaces 2.2 but any result
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
I developed a PrimeFaces demo portlet using PrimeFaces. I tried version 3.1 and 3.2 and ran into problems. Specifically, f:ajax DOM replacement fails due to PrimeFaces HeadRenderer, as it renders <head>...</head> elements which are not permitted in a portlet environment.

This bug will be fixed in version 3.0 of the bridge, which should be coming out Around April 6th.

Note that the demo portlet utilizes p:inputText, p:calendar, and p:commandButton. I tried using p:fileUpload but ran into problems there too. I spent a lot of time trying to make it work, but I need to gave the PrimeFaces team fix a problem first. See the following links for more info:
http://code.google.com/p/primefaces/issues/detail?id=2905
http://forum.primefaces.org/viewtopic.php?f=3&t=9253
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
If you had developped a basic portlet with primefaces can you give me the whole code may be it will help me
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
We're doing a transition from the source repository to Git and I'm not able to release any code until around April 5th.

However, I just tried Cagatay's example here:
http://code.google.com/p/primefaces/source/browse/examples/trunk/prime-portlet

There are three portlets in his example:

Prime1: Read-only type of portlet that simply outputs "Welcome to Gambit Portlet Powered by PrimeFaces"

Prime2: Demo of p:calendar and p:commandButton

Prime3: Demo of p:editor and p:commandButton

All three portlets seem to work fine, but you can only have 1 portlet on a portal page. This is a known JavaScript problem that I still have to work out with Cagatay, see:
http://forum.primefaces.org/viewtopic.php?f=3&t=14612&sid=a5a00f528521acb4002cc7ce5bd94675&start=10
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
We're doing a transition from the source repository to Git and I'm not able to release any code until around April 5th.

However, I just tried Cagatay's example here:
http://code.google.com/p/primefaces/source/browse/examples/trunk/prime-portlet

There are three portlets in his example:

Prime1: Read-only type of portlet that simply outputs "Welcome to Gambit Portlet Powered by PrimeFaces"

Prime2: Demo of p:calendar and p:commandButton

Prime3: Demo of p:editor and p:commandButton

All three portlets seem to work fine, but you can only have 1 portlet on a portal page. This is a known JavaScript problem that I still have to work out with Cagatay, see:
http://forum.primefaces.org/viewtopic.php?f=3&t=14612&sid=a5a00f528521acb4002cc7ce5bd94675&start=10
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
thanks Neil for your interesting ,I tried to make just one portlet to work by copying and paste code from http://code.google.com/p/primefaces/source/browse/examples/trunk/prime-portlet but the problem persist the <p: commandButton> doesn't have any action. Really , I don't understand what's the problem. Can you give me your jars please
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
I tried to upload the WAR to this thread but it exceeds the max file size.

Try this:

svn co http://primefaces.googlecode.com/svn/examples/trunk/prime-portlet
cd prime-portlet
mvn clean package

In the target folder, you should have a WAR file that you can copy to the Liferay deploy folder.
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
the war file was not found on the folder
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
When you did "mvn clean package" did it report the following?

[INFO] Building war: prime-portlet/target/prime-portlet-1.0.0-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
May be I will change to work with icefaces , I'd like that you advice me about this idea Neil .
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
ICEfaces2 has the most compatibility at this time with the 2.0.x version of the bridge. We will be posting demo portlets for ICEfaces3, PrimeFaces3, and RichFaces4 soon as well, but that will require the forthcoming 3.0.x version of the bridge.
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
thank you Neil
When this version will be coming
PortletFaces Community Member, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Regular Member Mensajes: 199 Fecha de incorporación: 3/04/12 Mensajes recientes
The prime portlet that you had given works fine now . The only error is when I load every page (editor.xhtml , calendar.xhtml ...) I have an alert javaScript
which contains this message :

Error in extras bootstrap [ Type Error : window.logger is undefined ]

Any idea please about this
hiho hihi, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

New Member Mensaje: 1 Fecha de incorporación: 3/04/12 Mensajes recientes
Bonjour tout le monde,
je suis débutant avec liferay , je veux réaliser une simple portlet liferay avec une page JSF avec primefaces sous eclipse indigo, liferay-portal-server 6.0 (tomcat 6) et liferay sdk plugins 6.1, mais les balises <p:....> ça marche pas (ne s'affichent pas dans ma page) même si j'ai ajouté les fichiers jar de primefaces, par contre les balises <h:.....> ça marche bien.

merci d'avance pour votre propositions
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Hopefully we'll have the 3.0.0-BETA version of Liferay Faces posted on Friday and you will be able to start with the new PrimeFaces 3 reference portlet:
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#primefaces3-portlet
thumbnail
Neil Griffin, modificado hace 12 años.

RE: Problem Liferay 6 with primefaces

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
The 3.0.0-BETA1 version is out now. The liferay.com website will be updated with download links today or tomorrow.

For now, you can download it from here:
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#primefaces3-portlet

And the code is in GitHub here:
https://github.com/liferay/liferay-faces/tree/master/demos/bridge/primefaces3-portlet

Please let me know how it works out for you.