I'm facing a challenge with implementing a specific functionality.
My goal is to display the contents of a svn repository in a TreeView. I have a Java Class that connects to the repository and stores the contents in my Java DataModel. In my .jsp file, I create a TreeView using HTML and Javascript to dynamically update the TreeView's contents. The issue arises when I need to listen for an event when another node is selected, so I can display the corresponding revision number on the site. This event needs to be handled in Javascript, as the TreeView is also implemented in Javascript. I need to call my Java Class with the selected node from the Javascript Event and display the results in the .jsp file.
I'm unsure about how to achieve this behavior. Is it even possible?
To summarize the task:
- Retrieve repository file and folder names from a Java library
- Display information in the TreeView
- When another node in the TreeView is selected, retrieve the selected file's revision number from the Java library
- Display the information on the site
I would greatly appreciate any guidance or suggestions.
Thank you in advance.