I have a tree table and it renders fine. I added a column at the end of the table to place an Edit Icon on each row. The commandLink the surrounds the image has an actionListener and it fires, however, it returns the an index that is from the last row in the treetable that is expanded instead of what row i was really on. If I have a root node and do not expand the tree, it works. If I expand the tree and click on the same row, different results. Upon inspection of the HTML source, I noticed that the edit Icon has the same id rendered for every row. I took off the id to let JSF render me one and it is also the same for every edit icon. Oh, I forgot to mention that I placed an f aram tag inside the commandLink and the source has the right information that I would have expected. Does the <t:tree2> tag support treeColumn's?
Any clue? Brent
posted 9 years ago
I ended up finally getting this to work, with a big work around. I attempted to use the forceIdIndex and forceId to let JSF one up my id with no luck. I had to place two hidden fields on my page, one for the row type and one for the unique id. Then, in the onmousedown event I set these two fields and was able to retrieve them successfully in my backing bean. I totally removed the actionListener and param fields.