File upload not working after Glassfish upgrade - jsf

My application was working on JSF 2.2 and Primefaces 6. Application server Glassfish 4.1. I have been succesfully using Primefaces file upload initially. I have upgraded my Glassfish 4.2 and Netbeans 8.2. Now fileupload xhtml is not calling managedbean. The fileupload mechanism has stopped working and no error is thrown, The upload scroll bar moves and completes but the managedbean is not called. I am not clear what could be the issue. Is there a way to debug such issue. To me it seems that http response is not working properly but not able to
capture it. Please suggest some test which i can try to debug.

Fileupload does not work with Primefaces 6.0 and JSF 2.3.
You have 2 options:
Replace the javax.faces.jar file in glassfish\modules\ with mojarra 2.2.8-21 http://central.maven.org/maven2/com/sun/faces/jsf-api/2.2.8-21/jsf-api-2.2.8-21.jar
Update primefaces to version 6.1
The bug was fixed already:
https://github.com/primefaces/primefaces/issues/2121

Related

a4j reRender not working(requires refresh (Ie11))

I'm using JSF 1.2 on IE11. Recently I added Richfaces api - 3.3.3, Richfaces impl- 3.3.3, Richfaces ui - 3.3.3 , in order to solve the issues I've been getting while migrating from IE 8 to IE 11. After these jars were added, I've been getting issues with the reRender.
Scenario is, a selectonemenu change event triggers is supposed to render another a4j outputPanel panel. But this only happens after a refresh(pressing F5).
Without these jars, my project seems to be working fine, except the IE 11 compatibility issues.
RichFaces 3 does not support IE9 (refer here for more details). And likely does not support IE10+.
You can test it out on demo environment. If it does not work your options are to upgrade JSF/RF or add IE compatibility headers.

Primefaces Mobile 0.9.4 does not work with Primefaces 4

I have a web mobile application running on JBoss 7.1.1 AS, Mojarra JSF 2.1, Primefaces 3.5 and Primefaces Mobile 0.9.4.
Primefaces 4 was released for community. I updated it and the application crashed when using p:dataList.
Anyone knows if primefaces 4 supports primefaces mobile 0.9.4?
Thanks.
It's not supported. Have a look at this blog (http://blog.primefaces.org/?p=2894) and scroll to the comment by srbala. Not sure when mobile 1 is coming out. I'm waiting for it.

PrimeFaces 3.5 with WebSphere 6.1

I have a problem with WebSphere 6.1 and Primefaces. I have created an application, but used a local Tomcat appserver for testing. Everything was working fine, until I tried to deploy it on WAS 6.1.
After investigating the internal server problem, I saw, that WAS 6.1 only supports JSF 1.1, so I can throw out the whole interface :S
My question is, what is the best and most importantly, the fastest solution for this:
my interface is very simple, only panels, commandbuttons, a menu and a printer component. Is it possible to go back to a previous version of primefaces that supports jsf 1.1 keeping most of the code? (as I read, primefaces 1.1 is the last, which is far away from 3.5 )
use another faces implementation, if yes which one is the easiest to switch to from primefaces
can WAS 6.1 be made somehow compatible with JSF 2?
any other way
It's possible if you drop the necessary JSF 2.0/2.1 + PrimeFaces 3.5 JARs in webapp's /WEB-INF/lib and set in WebSphere admin the classloader policy to PARENT_LAST on both the EAR and WAR. This will force WebSphere to load webapp-bundled JSF instead of its own bundled JSF.

t:saveState does not work anymore after migrating JSF 1.x to JSF 2.x in WebSphere 8

I have used JSF 1.x with Tomahawk 1.1.9 in my project and I'm now migrating this project to Websphere 8. I have changed the Faces config and web.xml configuration.
All components are working fine except of t:savestate. I am still using Tomahawk 1.1.9.
Is there any issue in using Tomahawk 1.1.9 version in JSF 2.x application?
You need to upgrade Tomahawk to a JSF 2.x compatible one.
In their download page, pick the one saying "for JSF 2.0" and not the one saying "for JSF 1.2".

jsf facelets cannot find property in tomcat 7 but works in glassfish 3.1

I am trying to figure out which jar I need to download for tomcat 7. I am making a call and passing an argument to a method such "availableEmployees(DepartmentName)" in my faces web page. This does not work in tomcat 7 but works in glassfish 3.1. I have added the javax.faces.2.1.20.jar "Mojarra" to my web app for jsf dependency. I have also javax.servlet.jsp.jstl.1.2.1 in my tomcat library folder.
Did anyone run into such problem ? Do I need to add more than the above jars for jsf support ? Thanks. Not using maven since it is somebody else' project.
I am using netbeans and I linked to an eclipse project. I added my own primefaces library. When I looked at the build output from netbeans, I have noticed that there were two copies of primefaces library. One with 3.4.2 and another with 3.3.1.
Removed one of them and everything worked.

Resources