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.

ELException: Cannot convert [[Lorg.primefaces.model.TreeNode;@7d8d3a6a] of type [class [Lorg.primefaces.model.TreeNode;] to [class org.primefaces.model.CheckboxTreeNode]
    ContextAwareELException: javax.el.ELException: Cannot convert [[Lorg.primefaces.model.TreeNode;@7d8d3a6a] of type [class [Lorg.primefaces.model.TreeNode;] to [class org.primefaces.model.CheckboxTreeNode]
    Error during rendering of html dialog 'trial.TreeDataTryOut'

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's gravatar image

accept rate: 0%

edited 30.07.2018 at 09:32

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦

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.

(30.07.2018 at 04:44) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

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?

(30.07.2018 at 05:42) wesing wesing's gravatar image

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.

(30.07.2018 at 07:55) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Unfortunately, I am already using 'Data' class of HTML Dialog.

(30.07.2018 at 09:12) wesing wesing's gravatar image

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's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 27.07.2018 at 03:19

Seen: 1,076 times

Last updated: 31.07.2018 at 22:01