Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin August 19, 2008 10:36 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Jorge Ferrer March 15, 2008 2:51 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Ky Pham March 16, 2008 8:46 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin March 19, 2008 7:57 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation fusel janner April 25, 2008 5:25 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin April 28, 2008 8:49 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Lari Tuominen June 25, 2008 12:29 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation amisha shah October 23, 2010 10:16 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin March 19, 2008 7:47 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation petar banicevic March 21, 2009 10:16 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation petar banicevic March 21, 2009 10:24 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin March 23, 2009 10:52 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin April 23, 2009 9:57 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Peter Mesotten September 25, 2009 2:01 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin October 30, 2009 5:30 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation John Joseph Ryan October 19, 2010 11:49 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Corné Aussems October 19, 2010 1:00 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation John Joseph Ryan October 23, 2010 8:41 AM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation ilke Muhtaroglu December 28, 2010 12:33 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Neil Griffin December 28, 2010 12:59 PM
RE: PortletFaces project now at SourceForge SVN under Liferay incubation Shravan A July 19, 2011 3:40 AM
Neil Griffin
PortletFaces project now at SourceForge SVN under Liferay incubation
August 19, 2008 10:36 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

I'm pleased to announce a new project sponsored by Liferay named PortletFaces, which will serve the following purposes:

1. General purpose SDK for developing Facelets-based JSF Portlets within Liferay
2. Component library for Liferay-specific JSF components that match the rest of the Liferay common UI
3. Facelets view and backing-bean code generator for creating master+detail views of database entities generated by Liferay ServiceBuilder

The project will feature compatibility with both the Sun RI and MyFaces RI, and will have integration with ICEfaces.

The project source can be found at SourceForge SVN under Liferay incubation:
http://lportal.svn.sourceforge.net/viewvc/lportal/incubation/portletfaces/

Many thanks go to Joel Kozikowski because he graciously donated most of this initial checkin of code and spent countless hours mentoring me via phone, email, and IM.

Also thanks to Ed Shin, who developed a JSF component for PortletFaces that generates a permissions link to Liferay's permissioning system.
Jorge Ferrer
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 15, 2008 2:51 AM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2756

Join Date: August 31, 2006

Recent Posts

Very nice Neil!

What would you say is the current state of this? Is it ready to use in real projects?
Ky Pham
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 16, 2008 8:46 PM
Answer

Ky Pham

Rank: New Member

Posts: 3

Join Date: March 14, 2008

Recent Posts

Great to hear that,

Could you please provide the roadmap for the project, especially phase integration with Icefaces, so that we can decide to wait for it or not?

Thanks
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 19, 2008 7:47 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

Thanks Jorge -- As of today, the state of PortletFaces is: all the code compiles emoticon

The classes that are in there now were mostly donated by Joel. Ed contributed a JSF custom component, and I migrated a few classes from util-bridges.jar into there.

I've got a few more files to add from Joel before he can drop his old library and start using PortletFaces. At that time -- yes, it will be ready for use within real projects.

Having said that, the ICEfaces integration isn't there yet, and the JSF View Generator hasn't been built yet. More details on that to come. We plan on using the forums here to validate the requirements.
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 19, 2008 7:57 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

We're about to start validating requirements for PortletFaces, so its hard to provide a roadmap at this time.

Regarding ICEfaces integration, one of the main requirements for the JSF view generator is to be able to generate CRUD master/detail Facelet .xhtml files that work either with standard JSF components, or with ICEfaces.

I serve as Liferay's point of contact with ICEsoft for integration between our products, and I look forward to creating this tool for helping to foster development of ICEfaces portlets by Liferay and our respective communities.
fusel janner
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
April 25, 2008 5:25 PM
Answer

fusel janner

Rank: New Member

Posts: 14

Join Date: January 7, 2008

Recent Posts

hi neil,

this is really great! i cant wait for the first release of this!!

btw, do you know why even the official "sample-jsf-1.2-sun-facelets/jsp-portlet-5.0.0.1.war" portlets do not work in liferay 5.0.1 any more (seems that the did work in 5.0)?
looks like jsf does not get the request right - the start page always renders, but no button/link (as its a submit) works, you always get the start page redisplayed. the same thing happens with our own portlets that worked well in liferay 4.4.

(see http://www.liferay.com/web/guest/community/forums/message_boards/message/683135, http://www.liferay.com/web/guest/community/forums/message_boards/message/718887)

best regards, fusel!
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
April 28, 2008 8:49 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

Fusel, Thanks for the encouraging words about the PortletFaces project. Regarding the problem you're seeing with the sample JSF portlets in Liferay 5.x, see: http://support.liferay.com/browse/LEP-5766
Lari Tuominen
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
June 25, 2008 12:29 AM
Answer

Lari Tuominen

Rank: Expert

Posts: 283

Join Date: November 7, 2007

Recent Posts

Hi Neil, PortletFaces project sounds really interesting. Related to Jorge's previous post: What's the current situation - Is it ready to use in real projects?


BR - Lari
petar banicevic
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 21, 2009 10:16 PM
Answer

petar banicevic

Rank: Junior Member

Posts: 69

Join Date: May 27, 2008

Recent Posts

Hello Neil,

What's the most recent status of PortletFaces. We're using them heavily as it's amazing library.

I am getting an interesting exception: "Could not retrieve Portlet object by any known means".

Exception happens when using e.g. #{hasPortletPermission['VIEW]} from xhtml file (JSF, IceFaces).

I debugged a code, both values are null in public Portlet getPortlet() function.
Portlet portlet = (Portlet)req.getAttribute("RENDER_PORTLET"); // is null
and
Method method = req.getClass().getMethod("getPortlet", (Class[])null); // is null

Our version is: portletfaces-sun-0.9.2-SNAPSHOT.jar

Any Idea???
Petar
petar banicevic
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 21, 2009 10:24 PM
Answer

petar banicevic

Rank: Junior Member

Posts: 69

Join Date: May 27, 2008

Recent Posts

Oh, I fixed the problem in the mean time. It seems that this nice library is bit neglected regarding testing with newer liferay versions.

There was problem in public Portlet getPortlet(), this one works better.
 1
 2    public Portlet getPortlet() {
 3        PortletRequest req = getPortletRequest();
 4
 5        if (req.getAttribute("RENDER_PORTLET")!=null) {
 6            Portlet portlet = (Portlet)req.getAttribute("RENDER_PORTLET");
 7            return portlet;
 8        }
 9        if (req.getAttribute("javax.portlet.request")!=null) {
10            RenderRequest rr = (RenderRequest)req.getAttribute("javax.portlet.request");
11            try {
12                Method method = rr.getClass().getMethod("getPortlet", (Class[])null);
13                if (method != null) {
14                    Object value = method.invoke(rr, (Object[])null);
15                    if ((value != null) && (value instanceof Portlet))
16                        return (Portlet)value;
17                }
18            } catch (Exception ex) {
19            }
20        }
21        // Can't find it in the request. We'll have to try to get it using Java Reflection.
22        // This is a SERIOUS Liferay hack. Hope it stands the test of time...
23        try {
24            Method method = req.getClass().getMethod("getPortlet", (Class[])null);
25            if (method != null) {
26                Object value = method.invoke(req, (Object[])null);
27                if ((value != null) && (value instanceof Portlet))
28                    return (Portlet)value;
29            }
30        } catch (Exception e) {
31        }
32        // If we are here that means that we were not able to find portlet. Throw Exception.
33        throw new RuntimeException("Could not retrieve Portlet object by any known means.");
34    }


1
2    public Layout getLayout() {
3        //Layout layout = (Layout)getPortletRequest().getAttribute("LAYOUT");
4        //return layout;
5        return getThemeDisplay().getLayout();
6    }
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
March 23, 2009 10:52 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

For the latest news on PortletFaces, please refer to this blog entry:
http://www.liferay.com/web/ngriffin/blog/-/blogs/portletfaces-becoming-part-of-the-edoras-framework

Thanks for letting me know about the bug. I'll fix it before the initial checkin to the Edoras Framework.
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
April 23, 2009 9:57 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

Petar,

Do you have the following in your web.xml file?

<context-param>
<param-name>com.icesoft.faces.hiddenPortletAttributes</param-name>
<param-value>COMPANY_ID LAYOUT RENDER_PORTLET THEME_DISPLAY</param-value>
</context-param>

See the following tickets regarding the necessity of this workaround:
http://jira.edorasframework.org/browse/EDORAS-263
http://issues.liferay.com/browse/LEP-3845
http://jira.icefaces.org/browse/ICE-2381

Neil
Peter Mesotten
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
September 25, 2009 2:01 AM
Answer

Peter Mesotten

Rank: Junior Member

Posts: 37

Join Date: February 4, 2009

Recent Posts

Neil,

Any updates on PortletFaces lately?
Will it be part of Liferay core in 5.3 release?

Thanks!
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
October 30, 2009 5:30 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

Yes, lots of new developments with PortletFaces.

See: http://www.portletfaces.org

And: http://www.liferay.com/web/neil.griffin/blog/-/blogs/portletfaces-webinar
John Joseph Ryan
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
October 19, 2010 11:49 AM
Answer

John Joseph Ryan

Rank: New Member

Posts: 15

Join Date: September 21, 2008

Recent Posts

Has anyone used OpenFaces with this?
Corné Aussems
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
October 19, 2010 1:00 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1258

Join Date: October 3, 2006

Recent Posts

AFAIK PortletFaces is only for IceFaces
http://www.portletfaces.org/projects/portletfaces-tools/faq
John Joseph Ryan
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
October 23, 2010 8:41 AM
Answer

John Joseph Ryan

Rank: New Member

Posts: 15

Join Date: September 21, 2008

Recent Posts

But it works with jsf2.0 reference implementation alone, correct? I got the ipc sample that is just jsf ri to work.

Is there something other than "not officially supported" that would prevent using a separate third party jsf library like OpenFaces with the bridge?
amisha shah
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
October 23, 2010 10:16 AM
Answer

amisha shah

Rank: New Member

Posts: 1

Join Date: October 22, 2010

Recent Posts

aa
ilke Muhtaroglu
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
December 28, 2010 12:33 PM
Answer

ilke Muhtaroglu

Rank: Regular Member

Posts: 223

Join Date: May 12, 2009

Recent Posts

Hi,

does portletfaces work at the moment with richfaces ?



What I have seen at http://www.portletfaces.org/projects/portletfaces-bridge it is for Icefaces ? Icefaces does not have enough components, therefore I want to use Richfaces in liferay but it does not work as far as I know...

ilke
Neil Griffin
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
December 28, 2010 12:59 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1981

Join Date: July 26, 2005

Recent Posts

The bridge is for JSF 2.0 and Portlet 2.0, so in theory any JSF 2.0 compliant component suite should work. Having said that, the bridge has optimizations for use within Liferay Portal and has been heavily tested by portletfaces.org and icesoft.com for compatibility with ICEfaces 2.0 and Liferay 5.2/6.0.
Shravan A
RE: PortletFaces project now at SourceForge SVN under Liferay incubation
July 19, 2011 3:40 AM
Answer

Shravan A

Rank: New Member

Posts: 2

Join Date: November 19, 2008

Recent Posts

Hi Neil,

I worked on liferay in 2008 using liferay 5.1.x, portletfaces-sun-0.9.2-SNAPSHOT.jar , facelets, service builder.
In this EvilDelegator was used and defined in applicaiton-context.
resolvers used are
<variable-resolver>com.liferay.portletfaces.resolver.PortletVariableResolver</variable-resolver>
<property-resolver>com.liferay.portletfaces.resolver.PortletPropertyResolver</property-resolver>


Now i am working on new project using 6.0.x, JSF2.0, facelets, icefaces, servicebuilder.
I noticed that EvilDelegator is not used in either of liferay-faces or portlet-faces bridge in portletfaces.org

Problem1. What is the alternative for portletfaces-sun-0.9.2-SNAPSHOT.jar?

Problem2.variable-resolver and property-resolver are not supported in JSF2.0
and <el-resolver>org.edorasframework.portletfaces.el.PortletELResolver</el-resolver> is giving error
Class org.edorasframework.portletfaces.el.PortletELResolver must extend the type javax.el.ELResolver
how to inject spring beans of application-context to faces-config