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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:43:10+00:00 2026-06-14T04:43:10+00:00

I need a solution for my problem that i was trying to solve. I

  • 0

I need a solution for my problem that i was trying to solve. I had a few cheap workarounds to achive my needs, but I hope there are better solutions.

So whats the problem?

I have an event that handles a TreeNode to a java method. The handling of this treenode depends on if it has children or not.

What I need is to get the count of those childnodes.
(or maybe someone knows how to iterate trough childnodes)

basicly with the count i could make a for loop to each child (cause TreeNode got method .getChild(param))

Treenode is in org.richfaces.model; package

  • 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-14T04:43:12+00:00Added an answer on June 14, 2026 at 4:43 am

    You can iterate through the childnodes, TreeNode has method getChildrenKeysIterator() for that.

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

Sidebar

Related Questions

I need a solution for the really common but important issue that i am
I've been trying to solve these problem for last two hours but seems like
I have this problem that I need to solve for one of my projects.
i have a little problem and see no solution for it. I need flexible
Simple question: I need a solution so that I can find, lets say names,
I've searched for two days trying to find a solution to this. My problem
I have a coding/maths problem that I need help translating into C#. It's a
I am looking for an algorithm that will solve my problem in the most
I am writing a program to try to solve a math problem. I need
I have been trying to solve this problem for hours (searched here as well

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.