Hi, I have tried to implement Primefaces TreeTable - Selection (CheckboxTreeNode) The sample code are obtained from https://www.primefaces.org/showcase/ui/data/treetable/selection.xhtml . In Axon Ivy 7.0.1 but it keeps getting the following error when I tried to navigate the tree.
I did some googlings and someone suggested that it is due to PrimeFaces JAR files conflict. I have no idea how to resolve that in Axon Ivy. Could you help? Also, it would be great if there are sample Axon Ivy projects with TreeDataTable - Checkbox for reference? asked 27.07.2018 at 03:19 wesing SupportIvyTeam ♦♦ |
Hi Reguel, I found the problem and it was due to declaring selected nodes as TreeNode instead of TreeNode[] in the data class. hence, I created managed bean with TreeNode[] as the selectedNodes. By the way, I also realise we cannot declare Array in the data class. I have tried using List <treenode> but it still cause the same conversion error. Anyway, Thanks for the help. answered 31.07.2018 at 02:13 wesing |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 27.07.2018 at 03:19
Seen: 3,013 times
Last updated: 31.07.2018 at 22:01
There are some related demos available in the
HtmlDialogDemos
project.See File > Import > Axon.ivy > Ivy Sample Projects > Html Dialog Demos
In there: are DataTable and EditableDataTable samples.
Thanks Reguel.
For my project, I need to use the TreeDataTable (checkboxnode) which is not available in the above-mentioned demos.
How can I resolve the exception that I am getting in my earlier post? If it is really due to conflicting JAR files, how can fix the problem with different class loaders loading the same class?
That can happen if you hold static references or singleton like constructs that provide the model. I guess that right now you are holding the model in managed bean as outlined in the sample of Primefaces. Then you could get rid of the problems by storing the data in the 'Data' Class of the Html Dialog.
It would help if you have an easy example project to show your problem.
Unfortunately, I am already using 'Data' class of HTML Dialog.