Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Chicon Samu
JSF (RichFaces) and Liferay
October 22, 2009 11:27 PM
Answer

Chicon Samu

Rank: Regular Member

Posts: 120

Join Date: August 30, 2007

Recent Posts

I would like to know, how many people are using JSF (especially RichFaces) and Liferay in a production environment? What are your experiences? I got the impression, that Liferay is going to support UI-frameworks (vaadin, edoras,...), that are really nice, but are not "standard" frameworks like JSF and maybe they are not really used very often outside of liferay. What about in 2-3 years? Does anyone still know vaadin etc.?? I think it is important for liferay to support frameworks, that are really common! But why is liferay not supporting other jsf-frameworks like richfaces? IceFaces is not the best jsf-framework, so I don't know why liferay chose icefaces?! There are much more better jsf-frameworks than icefaces! (e.g. RichFaces ;-) )
Do you think, there is a need to write a wiki article about RichFaces and Liferay?
Alex Wallace
RE: JSF (RichFaces) and Liferay
October 23, 2009 6:43 AM
Answer

Alex Wallace

Rank: Liferay Master

Posts: 640

Join Date: November 4, 2007

Recent Posts

We have created 50+ portlets using either MyFaces or IceFaces and run them in production...

We use 5.1.2 and IceFaces 1.7.x ....

Our MyFaces portlets are the oldest ones and we have most of them in version 1.1.4 and 1.1.5
Mika Koivisto
RE: JSF (RichFaces) and Liferay
October 29, 2009 4:15 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1496

Join Date: August 7, 2006

Recent Posts

Liferay is framework agnostic so you can use pretty much any framework out there. Some of them work better than others. Richfaces are not quite as mature as ICEFaces and there isn't that big community using it yet. Don't get me wrong I'm not endorsing ICEFaces but the fact is that it is currently more stable than Richfaces + JBoss Portlet Bridge.
Chicon Samu
RE: JSF (RichFaces) and Liferay
November 2, 2009 11:08 PM
Answer

Chicon Samu

Rank: Regular Member

Posts: 120

Join Date: August 30, 2007

Recent Posts

I think RichFaces are more used than Icefaces, because RichFaces is the best third-party jsf-framework at the moment, so I am wondering why liferay supports icefaces so far! The fact is, that IceFaces in Liferay has nearly the same problems as Richfaces and liferay. So I would suggest to support the integration of RichFaces in Liferay as well!
Lari Tuominen
RE: JSF (RichFaces) and Liferay
November 3, 2009 12:55 AM
Answer

Lari Tuominen

Rank: Expert

Posts: 283

Join Date: November 7, 2007

Recent Posts

Hi,

We have developed several Liferay portlets with both ICEFaces and RichFaces + Seam. I have to admit that portlet setup is a lot easier with ICEFaces but on the other hand Richfaces provides better control on DOM-updates, and a bit wider component collection. However, thanks to Neil Griffin and the absence of portlet-bridge ICEFaces components are working lot more steadily on Liferay portlets..... We're coming back to this issue with blog post related to Liferay portlet with Richfaces and Seam. (Have to find time to write this!)

- Lari
Chicon Samu
RE: JSF (RichFaces) and Liferay
November 3, 2009 4:12 AM
Answer

Chicon Samu

Rank: Regular Member

Posts: 120

Join Date: August 30, 2007

Recent Posts

It would be really nice if you could give us some information /experiences with richfaces/seam and liferay!
Wesley Hales
RE: JSF (RichFaces) and Liferay
December 9, 2009 9:37 AM
Answer

Wesley Hales

Rank: New Member

Posts: 1

Join Date: December 9, 2009

Recent Posts

You have quite a few ways to get up and running quickly with Richfaces (with or without Seam) here.

The JBoss Portlet Bridge uses a maven profile in its examples for liferay.
You can run most, if not all, of the examples here by using the following:
1mvn install -Pliferay
Joonas Lehtinen
Vaadin history and future
December 22, 2009 3:23 AM
Answer

Joonas Lehtinen

Rank: New Member

Posts: 6

Join Date: October 2, 2009

Recent Posts

Chicon Samu:
I got the impression, that Liferay is going to support UI-frameworks (vaadin, edoras,...), that are really nice, but are not "standard" frameworks like JSF and maybe they are not really used very often outside of liferay. What about in 2-3 years? Does anyone still know vaadin etc.??


Just to address your concern for the longevity of Vaadin. The framework has been in production use since 2001. It was first released as free open source product in the end of 2002 (with name Millstone) and renamed as Vaadin last summer. The framework has maintained API backwards compatibility really well since 2002 and a lot of large (intranet) applications have been built with it over the years.

For a quick glance on history and future, see the roadmap slides from the Vaadin developer meetup.
Madhura Raut
RE: JSF (RichFaces) and Liferay
January 6, 2011 9:29 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

hey hi,
I am new to liferay and I am using liferay 6.0.4 with JSF 2 and glassfish v2.1.1 server. I want to use liferay tags in my portlet.
eg: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:pcc="http://java.sun.com/jsf/composite/pcc"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:liferay-ui="http://liferay.com/tld/ui">

<h:form>
<liferay-ui:message key="title" />title
<liferay-ui:tabs names="One, Two" refresh="false">
<liferay-ui:section> One Body</liferay-ui:section>
<liferay-ui:section> Two Body</liferay-ui:section>
</liferay-ui:tabs>
<liferay-ui:ratings-score score="3.2" />
</h:form>
</ui:composition>

But these tags are not working in .xhtml files. Can you tell me how to use these tags? are there any other configuration settings to be done in some other files for thses tags to be used in .xhtml files? please reply as soon as possible.

Thanks...
ly tm
RE: JSF (RichFaces) and Liferay
January 25, 2011 12:29 AM
Answer

ly tm

Rank: New Member

Posts: 13

Join Date: December 12, 2010

Recent Posts

- Hi Everybody!
- I'm a student come from VietNam!
- I'm studying about Richface framework!
- I had got a problem in JSF(Richface) Portlet when I used JavaScript!
That problem is : I could not get a value into a <h:inputText /> with JavaScript!
Can you help me?
This is my code:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<f:view>
<script type="text/javascript">
function check() {
var result = document.getElementById("myform:form").value;
alert(result);
}
</script>
<h:form id="myform">
<h3>Hello :</h3>
<h:inputText value="" id="form" />
<h:commandButton value="OK" onclick="check();"/>
</h:form>
</f:view>
</ui:composition>
Attachments: errorJS.bmp (262.4k)
Apurva Mehta
RE: JSF (RichFaces) and Liferay
March 11, 2011 12:54 PM
Answer

Apurva Mehta

Rank: New Member

Posts: 1

Join Date: March 9, 2011

Recent Posts

Mika,

Currently we are building MVC Framework with ICEFACES or ALLOUI. Now we are debating that if we convert existing code from MVC protlet to JSF Framework then what changes we have to make and IS that advisable to use JSF Framework?

As Portlet repaint the whole portlet, even if we need to refresh data component in ICEFACES. Are you suggesting any other guideline?

Awaiting for your response.

Thanks,
Mehta
David H Nebinger
RE: JSF (RichFaces) and Liferay
March 11, 2011 1:32 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5765

Join Date: September 1, 2006

Recent Posts

Madhura Raut:
I want to use liferay tags in my portlet.

But these tags are not working in .xhtml files.


That's because they're JSP tags and not JSF tags. Check out LiferayFaces for a JSF-based implementation of the liferay tags.
David H Nebinger
RE: JSF (RichFaces) and Liferay
March 11, 2011 2:06 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5765

Join Date: September 1, 2006

Recent Posts

Chicon Samu:
I would like to know, how many people are using JSF (especially RichFaces) and Liferay in a production environment? What are your experiences?


We're using (in production) Liferay 5.2.3 CE with portlets built using JSF 1.1 & 1.2, MyFaces and Tomahawk, Facelets, Spring, and Hibernate (plus web services, Drools, file uploads, jasper reports, plus a bunch of other integrated stuff that I've forgotten).

They work quite well and have proven to be rock-solid (once we fixed our own bugs :grinemoticon.

We did learn a lot during this implementation. Mainly getting the initial portlet working (with the portlet class, spring context listeners, facelets setup, tomahawk integration, spring bean variable resolver integration for faces, etc.) that it was quite a challenge, but once we got the first one right the others were basically cut-n-paste.

Our biggest problem, one that still exists to this day, but is not just JSF related is the multiple pages...

Our major portlet is used to enter shipment information to calculate shipping rates. Our customer support people use this when customers call in. Some of them had created multiple pages and dropped one instance on each tab. The problem is they'll be in the middle of entering data on one tab, a call comes in so they switch to another tab to enter data from that call. When they go back to the first tab, what they were entering there has disappeared. Since clicking on a page tab is outside of our portlet, the info they were entering does not get posted back to our portlet. I'm sure if we used a newer framework like RichFaces or IceFaces we could use AJAX to push the data back, but we just trained our users to submit things before navigating to a different page.
Madhura Raut
RE: JSF (RichFaces) and Liferay
June 10, 2011 5:14 AM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

David H Nebinger:
Madhura Raut:
I want to use liferay tags in my portlet.

But these tags are not working in .xhtml files.


That's because they're JSP tags and not JSF tags. Check out LiferayFaces for a JSF-based implementation of the liferay tags.


Hi,

Do you know how to implement liferay search container using LiferayFaces?