Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 PortletFaces Community Member March 21, 2012 12:24 PM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin March 22, 2012 3:21 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 PortletFaces Community Member March 22, 2012 4:13 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin March 23, 2012 3:00 PM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin March 26, 2012 5:20 PM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin March 26, 2012 5:42 PM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 PortletFaces Community Member March 27, 2012 4:10 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin March 27, 2012 6:02 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 PortletFaces Community Member March 27, 2012 8:21 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin March 27, 2012 8:52 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Ingo Schildmann April 3, 2012 9:17 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin April 3, 2012 11:17 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin April 6, 2012 8:19 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin September 4, 2012 12:13 PM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Vijayan M May 10, 2012 2:34 AM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin September 4, 2012 12:14 PM
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1 Neil Griffin April 6, 2012 6:21 AM
PortletFaces Community Member
PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 21, 2012 12:24 PM
Answer

PortletFaces Community Member

Rank: Regular Member

Posts: 201

Join Date: April 2, 2012

Recent Posts

Hi,

I try to use RichFaces 4.2 in Liferay 6.1 with PortletFaces Bridge 2.0.1, but have problems.

Liferay uses Tomcat 7, so I use javax.servlet 3.0 and don't declare the Resource Servlet

I've added a simple portlet with a rich:calendar as attachment which builds with maven.

If you deploy it, you can see:

1. There should be a calendar-icon.png next to input field, but the ResourceServlet can't find it.

2. The calendar popup works, but curiously only when manual input is disabled.

3. The log shows NullPointerExceptions
java.lang.NullPointerException
at org.portletfaces.bridge.container.PortletContainerFactoryImpl.getPort
letContainer(PortletContainerFactoryImpl.java:58)
at org.portletfaces.bridge.application.ResourceHandlerImpl.createResourc
e(ResourceHandlerImpl.java:148)
at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHan
dlerImpl.java:265)
at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHan
dlerImpl.java:273)
at com.sun.faces.application.resource.ResourceHandlerImpl.handleResource
Request(ResourceHandlerImpl.java:251)
at org.portletfaces.bridge.application.ResourceHandlerImpl.handleResourc
eRequest(ResourceHandlerImpl.java:367)
at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(Reso
urceHandlerImpl.java:257)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407)
at org.richfaces.webapp.ResourceServlet.httpService(ResourceServlet.java
:110)

Has anyone experience if there's a comibination of richfaces und portletfaces bridge, that works?
Are there known bugs that might be fixed in the next versions of richfaces or portletfaces bridge?

Regards, Ingo
Attachments: rich-calendar-test.zip (5.2k)
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 22, 2012 3:21 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

Please give it a try with Liferay 6.0 and see if the error goes away. I'd be interested to know if that works. We're adding compatibility for Liferay 6.1 in the Bridge at this time but a release won't be ready for about 2 more weeks.
PortletFaces Community Member
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 22, 2012 4:13 AM
Answer

PortletFaces Community Member

Rank: Regular Member

Posts: 201

Join Date: April 2, 2012

Recent Posts

I've installed Liferay 6.0.6. Because it uses Tomcat 6, I've changed the web.xml to version 2.5 and declared the org.richfaces.webapp.ResourceServlet.

calendarIcon.png can't still be found with this path
/rich-calendar-portlet-test-1.0.0/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.Final/Static/DEFAULT/org.richfaces.images/calendarIcon.png

The popup still works only when manual input is disabled.

The NullPointerException doesn't appear anymore in the log, but after reloading the paget now this Exception occurs:

10:56:12,801 ERROR [ETagFilter:136] java.lang.IllegalStateException: Die Anwendung wurde bei Systemstart nicht einwandfrei initialisiert, Factory konnte nicht gefunden werden: javax.faces.render.RenderKitFactory
java.lang.IllegalStateException: Die Anwendung wurde bei Systemstart nicht einwandfrei initialisiert, Factory konnte nicht gefunden werden: javax.faces.render.RenderKitFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:815)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:317)
at com.sun.faces.context.FacesContextImpl.<init>(FacesContextImpl.java:128)
at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
at org.richfaces.context.FileUploadFacesContextFactory.getFacesContext(FileUploadFacesContextFactory.java:143)
at com.sun.faces.context.InjectionFacesContextFactory.getFacesContext(InjectionFacesContextFactory.java:121)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:399)
at org.richfaces.webapp.ResourceServlet.httpService(ResourceServlet.java:110)
at org.richfaces.webapp.ResourceServlet.service(ResourceServlet.java:105)
...

The translation of the German message is:
Application was not properly initialized at startup, could not find Factory: javax.faces.render.RenderKitFactory

I've added the changed project.
Attachments: rich-calendar-test-liferay6.0.zip (5.4k)
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 23, 2012 3:00 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

I just developed a demo RichFaces portlet using a SNAPSHOT of version 3.0 of the bridge (scheduled to be released around April 6th).

With this demo I was able to reproduce the resource handling problems with RichFaces. I was debugging the RichFaces code trying to figure out what's going on, but I'm out of time for today. I'll pick this up again on Monday if I can.
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 26, 2012 5:20 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

I was able to make rich:calendar work with the following in WEB-INF/web.xml:

 1    <context-param>
 2        <param-name>org.richfaces.resourceMapping.enabled</param-name>
 3        <param-value>true</param-value>
 4    </context-param>
 5    <servlet>
 6        <servlet-name>Resource Servlet</servlet-name>
 7        <servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>
 8        <load-on-startup>1</load-on-startup>
 9    </servlet>
10    <servlet-mapping>
11        <servlet-name>Resource Servlet</servlet-name>
12        <url-pattern>/org.richfaces.resources/*</url-pattern>
13    </servlet-mapping>


And then I had to add the following to WEB-INF/liferay-plugin-package.xml:

1speed-filters-enabled=false


The exception you mentioned is causes by the Liferay speed filters. When enabled, the Liferay header-filter and etag-filter will be invoked for *.png which is why the calendar icon was not rendering.
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 26, 2012 5:42 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

Note that I tried it with the 3.0.0 version of the bridge, which is scheduled for release on or about April 5th (next week). I didn't try it with a 2.x version of the bridge.
PortletFaces Community Member
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 27, 2012 4:10 AM
Answer

PortletFaces Community Member

Rank: Regular Member

Posts: 201

Join Date: April 2, 2012

Recent Posts

Thank you for your help, Neil.
The IllegalStateException isn't thrown anymore, but the calendar icon still can't be loaded, although I added "speed-filters-enabled=false" to liferay-plucking-package.properties.

<img id="A9652:form:calendarPopupButton" class="rf-cal-btn " style="vertical-align: middle" src="/rich-calendar-portlet-test-1.0.0/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.Final/Packed/DEFAULT/org.richfaces.images/calendarIcon.png"

I'll try again with the new bridge as soon as it's available.
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 27, 2012 6:02 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

Do you see any exceptions reported?
PortletFaces Community Member
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 27, 2012 8:21 AM
Answer

PortletFaces Community Member

Rank: Regular Member

Posts: 201

Join Date: April 2, 2012

Recent Posts

No, there aren't any exceptions reported.
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
March 27, 2012 8:52 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

OK bridge version 3.0.0-BETA1 is on schedule for release next week, around Wed April 4th or Thursday April 5th.
Ingo Schildmann
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
April 3, 2012 9:17 AM
Answer

Ingo Schildmann

Rank: New Member

Posts: 10

Join Date: December 21, 2011

Recent Posts

If your account at www.portletfaces.org had the same email address as your account at liferay.com then the posts you made at portletfaces.org should still be authored with your name.


Unfortunately that is not the case.
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
April 3, 2012 11:17 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

Hi Ingo,

My apologies -- very sorry about that. I just updated my blog post, letting people know that portletfaces.org accounts created after January 19, 2012 would appear as "PortletFaces Community User".

Trying to get the release done by Friday so it might be next week before I can comment further on this forum post with more technical information.

Kind Regards,

Neil
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
April 6, 2012 6:21 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

Just wanted to mention that in my testing of 3.0.0-BETA1, that liferay-faces-bridge is working equally well in Liferay 6.0 and Liferay 6.1, and that I am not encountering the NullPointerException in PortletContainerFactoryImpl.getPortletContainer(...) mentioned at the top of this thread. So that's good news. emoticon
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
April 6, 2012 8:19 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

For an issue related to this see FACES-263.
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
September 4, 2012 12:13 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

The 3.0.0-BETA1 release is out. The liferay.com website should be updated later today or tomorrow with the download links.

For now, you can read the description of the RichFaces4 demo portlet here:
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#richfaces4-portlet

And you can download it from here:
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#richfaces4-portlet
Vijayan M
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
May 10, 2012 2:34 AM
Answer

Vijayan M

Rank: New Member

Posts: 11

Join Date: May 9, 2012

Recent Posts

Hello,
I have dowloaded richfaces4-portlet-3.1.0-BETA2.war and added below rich:extendedDataTable inside applicant.xhtml to test rich:extendedDataTable. I do not see the colors / image rendered.

 1<aui:layout id="extTabls">
 2        <rich:extendedDataTable value="#{applicantBackingBean.modelBeans}"
 3            var="modelBean" id="table" frozenColumns="1" clientRows="25"
 4            style="height:300px; width:500px;" selectionMode="none">
 5                <f:facet name="header">
 6                    <h:outputText value="Candidate List" />
 7                </f:facet>
 8                <rich:column>
 9                    <f:facet name="header">
10                        <h:outputText value="City" />
11                    </f:facet>
12                    <h:outputText value="#{modelBean.city}" />
13                </rich:column>
14                <rich:column>
15                    <f:facet name="header">
16                        <h:outputText value="Comments" />
17                    </f:facet>
18                    <h:outputText value="#{modelBean.comments}" />
19                </rich:column>   
20                <rich:column>
21                    <f:facet name="header">
22                        <h:outputText value="Email" />
23                    </f:facet>
24                    <h:outputText value="#{modelBean.emailAddress}" />
25                </rich:column>                   
26            </rich:extendedDataTable>
27    </aui:layout>

 1    public List<ApplicantModelBean> getModelBeans() {
 2        List<ApplicantModelBean> modelBeans = new ArrayList<ApplicantModelBean>();
 3        ApplicantModelBean modelBean = new ApplicantModelBean();
 4        modelBean.setCity("City");
 5        modelBean.setComments("Comments");
 6        modelBean.setEmailAddress("sdsdf@hfhf.com");
 7       
 8        ApplicantModelBean modelBean1 = new ApplicantModelBean();
 9        modelBean1.setCity("City 111");
10        modelBean1.setComments("Comments 111");
11        modelBean1.setEmailAddress("sdsdf1111@hfhf.com");
12       
13        ApplicantModelBean modelBean2 = new ApplicantModelBean();
14        modelBean2.setCity("City 2222");
15        modelBean2.setComments("Comments 2222");
16        modelBean2.setEmailAddress("sdsdf222@hfhf.com");
17       
18        modelBeans.add(modelBean);
19        return modelBeans;
20    }
Attachments: rich extendedDataTable.bmp (911.1k)
Neil Griffin
RE: PortletFaces Bridge 2.0.1, Richfaces 4.2 and Liferay 6.1.0-ce-ga1
September 4, 2012 12:14 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2039

Join Date: July 26, 2005

Recent Posts

Vijayan,

Very sorry, somehow I missed your message -- Perhaps the notification system didn't send me an email. Are you still having trouble seeing the colors/image being rendered?

Neil