upon fileUpload, no "Faces-Request" header!

UI Components for JSF
Post Reply
nicolasr
Posts: 32
Joined: 08 Dec 2010, 00:26
Location: France
Contact:

13 Mar 2012, 01:09

Hello,

Upon ajax request with fileUpload (advanced mode), I noticed that there is no "Faces-Request" header whereas for regular ajax request the "Faces-Request" header is set to "partial/ajax".
Is it a bug or feature ?

This has some consequence with webflow integration which relies on this header to determine whether or not it is an ajax request.
As a result, currently, partial re-rendering (usage of fileUpload's update attribute) does not work. But upload itself works fine.

Sincerely,
Nicolas.
PF 3.1.1, WebFlow 2.3.0, Mojarra 2.1.7

nicolasr
Posts: 32
Joined: 08 Dec 2010, 00:26
Location: France
Contact:

13 Mar 2012, 10:21

I have created an issue on SWF side:
https://jira.springsource.org/browse/SWF-1526

May be both side should fix it ?

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

13 Mar 2012, 10:29

PF both looks at header and request param, if SWF decorates this by asking the wrapped partialviewcontext, then it should be fine.

rstoya05
Posts: 3
Joined: 24 Jun 2010, 21:06

14 Mar 2012, 18:39

A fix was added to delegate the decision to the PartialViewContext.

johnson33445
Posts: 2
Joined: 21 Jun 2013, 07:21

21 Jun 2013, 07:50

Sorry, I forgot to mention it is not a stable release.

I am using the Mojarra 2.2, the link is here if you wanna try it.

And yes the implementation is working fine. But I wasn't able to make it work with AJAX yet.thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests