Foren

upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

mohit meshram, geändert vor 6 Jahren.

upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

New Member Beiträge: 2 Beitrittsdatum: 24.08.16 Neueste Beiträge
Hi Neil Griffin,
i am planning to upgrade to Liferay Faces Bridge to 3.1.5-ga6 from 3.1.0-ga1. but there are certains dependencies in project on 3.1.0-ga1. as we used below interfaces from container folder.
com.liferay.faces.bridge.container.PortletContainer
com.liferay.faces.bridge.container.PortletContainerFactory
com.liferay.faces.bridge.container.PortletContainerFactoryImpl

This interfaces are removed in Liferay Faces Bridge 3.1.5-ga6. for reference as per release note [FACES-2166].
Can you please suggest how to upgrade to 3.1.5-ga6. does we have backword compatibility 3.1.5-ga6.
thumbnail
Neil Griffin, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Mohit,

The upgrade that you are planning is within the old Liferay Faces version scheme which is no longer supported.

In order to determine the new dependency artifactIds and versions, please visit liferayfaces.org and make selections from the dropdown lists for Liferay Portal, JSF, Component Suite, and Build Framework.

Having said that, do you have a custom PortletContainerFactory that you introduce into the PortletContainer chain-of-responsibility? You can check this by seeing if you have something like this in a faces-config.xml descriptor:
<factory-extension>
	<bridge:portlet-container-factory>com.mycompany.MyPortletContainerFactoryImpl</bridge:portlet-container-factory>
</factory-extension>


If that's the case, then I'd be interested to know what problem your custom PortletContainerFactory solves. Perhaps we can come up with a different solution to solving the problem.

Kind Regards,

Neil
mayur Oswal, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

New Member Beiträge: 8 Beitrittsdatum: 10.05.17 Neueste Beiträge
Hi Neil,

Thanks for redirecting me on this page.

Actually we are overriding the createResourceURL method from PortletContainerLiferayImpl class, we had some logic to look the URL from cache,and if not found, we would hit the default createResourceURL method provided by liferay.

We are overiding the PortletContainerFactoryImpl , where we would override the getPortletContainer() method, which would return our own created container always , which is of type PortletContainerLiferayImpl,
In this newly created MyPortletContainerLiferayImpl we are overiding createResourceURL methods.

Please let us know how can we perform this functionality in 3.1.5-ga6 version.

Please let me know if you want the exact code snippets.

Thanks in Advance.
thumbnail
Neil Griffin, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Mayur,

I recommend that you refactor your PortletContainer code to use the new API, which would be the getBridgeResourceURL(FacesContext facesContext, String uri) method of com.liferay.faces.bridge.BridgeURLFactory.

For an example of how to do this, see the com.liferay.faces.bridge.ext module, which has the following in the src/main/resources/META-INF/faces-config.xml descriptor:
<factory>
<factory-extension>
<bridge:bridge-url-factory>com.liferay.faces.bridge.ext.internal.BridgeURLFactoryLiferayImpl</bridge:bridge-url-factory>
</factory-extension>
</factory>


The source for BridgeURLFactoryLiferayImpl.java shows how to override the getBridgeRedirectURL method. In your case, you would want to override the getResourceURL method.

Bear in mind that the com.liferay.faces.bridge.BridgeURLFactory API has been standardized in JSR 378, so when it comes time to upgrade to Liferay 7.1 (Portlet 3.0 + JSF 2.2) the API will be the getBridgeResourceURL(FacesContext facesContext, String uri) method in javax.portelt.faces.BridgeURLFactory.

Kind Regards,

Neil
mohit meshram, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

New Member Beiträge: 4 Beitrittsdatum: 28.03.18 Neueste Beiträge
Hi Neil ,
After updating to liferay faces bridge to 3.1.5 ga6 from 3.1.0 ga1, i get following Warning:

WARN com.liferay.faces.bridge.servlet.BridgeSessionListener - Unable to cleanup ViewScoped managed-beans upon session expiration. Please upgrade to Mojarra 2.1.18 or newer. For more info, see: http://issues.liferay.com/browse/FACES-1470

How do i get rid of it. I looked up the problem but how do i update mojarra and which Version is supported? i dont know exactly which jars i should change.
Im not using JBoss. Everything is running on Tomcat standard installation on Liferay Version 6.1.3 ga3. In the Lib directory i dont see any jsf-api jar.

please see below pom file
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>liferay-faces-bridge-impl</artifactId>
<version>3.1.5-ga6</version>
<exclusions>
<exclusion>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>liferay-faces-portal</artifactId>
<version>3.1.5-ga6</version>
<exclusions>
<exclusion>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>liferay-faces-alloy</artifactId>
<version>${liferay.bridge.version}</version>
<exclusions>
<exclusion>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
mohit meshram, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

New Member Beiträge: 4 Beitrittsdatum: 28.03.18 Neueste Beiträge
Also attaching below for anaysis
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.1.9</version>
</dependency>
<dependency>
thumbnail
Neil Griffin, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Mohit,

You wrote:
After updating to liferay faces bridge to 3.1.5 ga6 from 3.1.0 ga1


But the pom.xml entries indicate that you are still using the old version scheme:
<dependency>
    <groupid>com.liferay.faces</groupid>
    <artifactid>liferay-faces-bridge-impl</artifactid>
    <version>3.1.5-ga6</version>
    ...
</dependency>
<dependency>
    <groupid>com.liferay.faces</groupid>
    <artifactid>liferay-faces-portal</artifactid>
    <version>3.1.5-ga6</version>
    ...
</dependency>


Kind Regards,

Neil
mohit meshram, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

New Member Beiträge: 4 Beitrittsdatum: 28.03.18 Neueste Beiträge
Hi Neil,
As per the pom we have upgraded liferay faces to 3.1.5ga6.
After looking to pom changes ,Can you please highlight , about particular which old versions I am using.
Previously we were using 3.1.0ga1
Thanks
Mohit
thumbnail
Neil Griffin, geändert vor 6 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Anything with "ga" in the version number indicates the old version scheme.

As I mentioned earlier in this thread, in order to determine the new dependency artifactIds and versions, please visit liferayfaces.org and make selections from the dropdown lists for Liferay Portal, JSF, Component Suite, and Build Framework.
mayur Oswal, geändert vor 5 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

New Member Beiträge: 8 Beitrittsdatum: 10.05.17 Neueste Beiträge

Hi Neil,

 

I upgraded the liferay-faces-bridges to 3.1.5-ga6. It worked well. Thanks for the help.

 

But after this upgrade I am facing and issue with the captcha on forgot password page.

 

THe response type of captcha should be image/png but its coming as text/html.

 

Do we need to do anything else to set the response type.

 

Thanks,

Mayur Owal

thumbnail
Kyle Joseph Stiemann, geändert vor 5 Jahren.

RE: upgrading to Liferay Faces Bridge 3.1.5-ga6 from 3.1.0-ga1

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
Hi Mayur,
If you can, you should upgrade to the latest version(s) of Liferay Faces. You can find the appropriate versions on liferayfaces.org . Please also post your view .xhtml and any relevant backing bean code so we can try to determine what is wrong (sscce.org ).

- Kyle