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

  • Home
  • SEARCH
  • 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 6719767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:07:54+00:00 2026-05-26T09:07:54+00:00

I am developing simple application using JSF with richfaces. I want to upload folder(select

  • 0

I am developing simple application using JSF with richfaces. I want to upload folder(select folder only).

I tried, t:inputFileUpload and rich:fileUpload.
but both components are support file only. Not support select folder.

Is possible to select folder.

Help Me.
thanks in advance

  • 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-05-26T09:07:55+00:00Added an answer on May 26, 2026 at 9:07 am

    The standard HTML <input type="file"> already can’t do it. So the <t:inputFileUpload> which just renders exactly that HTML element is out of question. Also, Flash also doesn’t allow folder selection due to security restrictions. So, the <rich:fileUpload> is also out of question.

    Your best bet is using a Java applet which uses the Swing JFileChooser which allows you to select a directory. You could then write some Java code which collects all files in that folder and uploads it to the server side by URLConnection or HttpClient. Then you just embed that applet in your JSF page the usual plain HTML/JS way. Instead of reinventing the applet wheel, you could also go for an existing 3rd party applet like JumpLoader or JUpload. Both support uploading whole directories.

    Finally, you’ve to integrate it in combination with a plain vanilla servlet utilizing Apache Commons FileUpload to parse the file upload requests from the applet. To let it interact with JSF, you could store some unique attribute in the session or use a session scoped JSF managed bean which is also available in the servlet. I’m not sure if JumpLoader or JUpload supports it, but it’s technically possible to let the applet update the page by JavaScript (which allows for applet-JSF communication by JS/Ajax).

    No, there comes no existing 3rd party JSF component to mind which does the same job.

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

Sidebar

Related Questions

Im developing a simple console application using java. I want to display currently running
I'm currently developing a simple iPhone application using a UITabBar and table views for
I have a simple application using netbeans for developing and maven for building et
I'm developing a simple application to manage the operational part of a business using
I am developing a simple ASP.Net application on a Windows 7 x64 machine using
Im developing a simple console Application using java. The code is given below `
I am developing a simple android application using eclipse. I wrote a JUnit TestCase
I started developing simple application in WPF and XAML. I want to try accessign
im developing a simple Mxml application using flex 3. I have used simple text
i am developing simple game application just using pan gesture and cgaffinetransform rotate application

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.