Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7836477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:10:41+00:00 2026-06-02T14:10:41+00:00

Actually to overcome the issue of primefaces with fileuploader when STATE_SAVING_METHOD=client. I thought to

  • 0

Actually to overcome the issue of primefaces with fileuploader when STATE_SAVING_METHOD=client. I thought to make use of BalusC code as we use Servlet 3.0 posted here. The problem I am facing is when I click the submit button, I received an ajax partial reponse like this

  <?xml version="1.0" encoding="UTF-8" ?>
  <partial-response>
    <changes>
     <update id="javax.faces.ViewState">
      <![CDATA[somejunk]]> 
     </update>
    </changes>
   <extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension> 

It never calls the decode method in FileRenderer.java. If I remove the enctype, it was calling decode method and obviously failing to cast to MultipartRequest on line:

 File file = ((MultipartRequest) context.getExternalContext().getRequest()).getFile(clientId);

Libraries:
PF 2.2.1
JSF 2.0.9

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:10:42+00:00Added an answer on June 2, 2026 at 2:10 pm

    Though I switched from STATE_SAVING_METHOD=server to client. I forgot to remove the org.primefaces.webapp.filter.FileUploadFilter in my web.xml. So the Primefaces FileUploadFilter was responding with a partial ajax response everytime. I removed it and it is working fine now.

    @BalusC, Thanks for your wonderful code!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Actually We are doing thesis work where we need to make 10 voip phones
I am having a crash issue while playing video in iphone 4.0 OS. Actually,
I've actually been working on this for the past few hours... I've overcome the
actually, I can make a relation between a table field and a variable by
This is my first php script. I actually code in vb.net.. I am making
Actually in the center of current view, above all other objects. Cross-browser and without
Actually I have two questions. (1) Is there any reduction in processing power or
Actually I can save it in swf and in avi formats. Is there any
Actually, I have the task of finding the employees based on the salary rank.
Actually I created a button using the cobogw widget library. But the button does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.