File Upload Growl & Messages are not working for me

UI Components for JSF
Post Reply
JMilnes
Posts: 110
Joined: 12 Feb 2010, 20:03

12 Feb 2010, 20:44

I'm using:
JSF 2.0 morjarra
Tomcat 6.0
IE6
Primefaces 2.0

My growl isn't working with fileupload.

when using p:growl, the upload widget doesn't leave the screen after the upload is complete. It goes to 100% and stops, but leaves the widget on the screen.

If I use h:message (with id="message" on the file upload) instead of update="message" the upload widget goes away but I don't get any messages back.

What am I doing wrong?

My xhtml:

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
<p:resources />
</h:head>

<h:body>

<h:form prependId="false">

Messages:
<br/>
<p:growl id="message"/>

<p:fileUpload fileUploadListener="#{fileController.handleFileUpload}"
auto="true" allowTypes="*.xls" description="Excel Files" update="message">
</p:fileUpload>

</h:form>
</h:body>

</html>

Part of my listener:

FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Workin!!", "Workin!!");
FacesContext.getCurrentInstance().addMessage("successInfo", facesMsg);
JSF 2.3.0-FCS Mojarra
Prime faces 3.0.M4
Tomcat 7.0.20
IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 Feb 2010, 20:04

Hi,

To figure out if it is an IE6 problem, can you check with a better browser and share the results?

JMilnes
Posts: 110
Joined: 12 Feb 2010, 20:03

14 Feb 2010, 06:53

I will on Tuesday when I'm back in the office. Right now our company runs on IE6 (been asking when they are planning to upgrade.) But I know a few people that have been testing a higher version. Thanks for your response, and I will let your know the results.

PS: I really like prime faces. It's easy to setup and response time is good.

I was playing with richfaces beta version. I didn't like it because:
1. The directions to get it up and running didn't work at all.
2. The demo did, but in order to work there was alot of extra jars that where needed along with a bunch of web.xml entries. Too much overhead.
3. It was only a beta version.

I looked at icefaces briefly, but it was only beta and the file upload wasn't functional.

I saw in your post that you are releasing a updated version of primefaces. I will download that and try that to.

JMilnes
Posts: 110
Joined: 12 Feb 2010, 20:03

17 Feb 2010, 14:58

I updated my browser to IE8. It still is not working
JSF 2.3.0-FCS Mojarra
Prime faces 3.0.M4
Tomcat 7.0.20
IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Feb 2010, 15:58

I specifically remember fixing an ie problem regarding this, on ie7 and ie8 it was working.

Does online growl fileupload demo work for you?

http://www.primefaces.org:8080/prime-sh ... Update.jsf

JMilnes
Posts: 110
Joined: 12 Feb 2010, 20:03

19 Feb 2010, 18:42

No, the online demo didn't display any messages either.
JSF 2.3.0-FCS Mojarra
Prime faces 3.0.M4
Tomcat 7.0.20
IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Feb 2010, 17:06

Allright then, can you create a ticket for this in our issue tracker?

JMilnes
Posts: 110
Joined: 12 Feb 2010, 20:03

24 Feb 2010, 22:44

JSF 2.3.0-FCS Mojarra
Prime faces 3.0.M4
Tomcat 7.0.20
IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Feb 2010, 11:16

Thanks we'll look into this, you will get email notifications when update on the issue occurs.

alexandrepalomo
Posts: 8
Joined: 15 Sep 2010, 21:35

04 Nov 2010, 11:32

Hi!

Is there any solution for this issue?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 51 guests