I'm working with folders within a database. Each folder is referenced by its parent :
id ref
root 0 0
me 1 0
folder 2 0
inme 3 1
Each folder are displayed when I click on their name. The "commandLink" has got a parameter : the folder ID. It works great but I don't know how to keep tracks of the path :
I would like something like root > me > inme
.
Is there any way to have virtually in the URL ".../root/me/inme" using backing-beans ?
Thanks
Just wrote it myself, check this:
Page:
Backing Bean:(Just two key methods:
track()
andfindParent()
)When I click "ininme" in the dataTable, it looks like: