Hello,
I have a problem using treeTable component with useAjax="true"
I place h:commandButton into q:column of q:treeTable component and add f:setPropertyActionListener for this button.
The scenario is following:
I expand some node of tree then press button of any expanded node (that wasn't rendered before.
Wrong parameter is passed to managed bean. The value passed is next to expanded node.
For example:
Node1 | edit |
--SubNode1 | edit |
--SubNode2 | edit |
--SubNode3 | edit |
Node2 | edit |
Node3 | edit |
Node1 was expanded using ajax, SubNode1's edit button is pressed. SubNode1 is expected to be passed to managed bean, but Node2 is passed
Env:
Tomcat 6.0.16
Quipukit version 1.5
MyFaces 1.2.0
Facelets 1.1.14
Hello Max,
There is a limitation in the current TreeTable implementation that you can't use editable components and command components inside of TreeTable that is set up to expand its nodes using Ajax. As a workaround, you can either set preloadedNodes="all" , or useAjax="false" for your TreeTable.
Feel free to ask if you have any further questions.
Regards,
Dmitry
Thank you for the response.
But the main reason of using useAjax="true" is huge amount of data.
Without ajax support treeTable component is useless