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 5848349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:50:47+00:00 2026-05-22T12:50:47+00:00

How can i create a directory structure with an unknown depth? I want to

  • 0

How can i create a directory structure with an unknown depth?

I want to show all files and folders as they are.I try to use rich:tree but i could not achive.This is a example code .But it shows only one parent folder and files.

                 <rich:tree id="logs-tree" toggleOnClick="true"
                        switchType="client" value="#{externalSourceBrowser.root}"
                        nodeFace="#{log.type}" var="log">

                        <rich:treeNode type="directory" id="directory-log">
                            <f:facet name="icon">
                                <h:graphicImage value="/misc/iconFolder.gif" />
                            </f:facet>
                            <h:outputText value="#{log.filename}" />
                        </rich:treeNode>

                        <rich:treeNode type="file" id="file-log">
                            <f:facet name="icon">
                                <h:graphicImage value="/misc/iconLeaf.gif" />
                            </f:facet>
                            <a4j:commandLink
                                value="#{log.filename}"
                                reRender="upload-panel-form">
                                <rich:componentControl for="upload-panel"
                                    operation="show" event="onclick" />
                                <f:setPropertyActionListener value="#{log}"
                                                             target="#{externalSourceBrowser.log}" />

                            </a4j:commandLink>
                        </rich:treeNode>

                    </rich:tree>
  • 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-22T12:50:48+00:00Added an answer on May 22, 2026 at 12:50 pm

    Recursive tree Adaptor for this purpose by the way rich faces has a lot dizayn problem i suggest every one to use primefaces it is not mature but well dizayned.

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

Sidebar

Related Questions

I want to create a directory structure like the following. How can I get
What install tool can I use to create Virtual Directory on IIS? OpenSource, free
I've got a directory location, how can I create all the directories? e.g. C:\Match\Upload
How can I create a zip archive of a directory structure in Python?
I want to create an empty directory structure bar2 from a nonempty directory tree
I want to create a tar archive with a hierarchical directory structure from Python,
How exactly can I create a new directory using Emacs? What commands do I
How can I create this file in a directory in windows 2003 SP2: .hgignore
Why can't I create a class in VB.NET that inherits System.IO.Directory ? According to
I have a directory of ZIP files (created on a Windows machine). I can

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.