<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to implement Primefaces TreeTable - Selection (CheckboxTreeNode) in Axon Ivy 7.0.1?</title><link>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried to implement Primefaces TreeTable - Selection (CheckboxTreeNode) The sample code are obtained from &lt;a href="https://www.primefaces.org/showcase/ui/data/treetable/selection.xhtml"&gt;https://www.primefaces.org/showcase/ui/data/treetable/selection.xhtml&lt;/a&gt; . In Axon Ivy 7.0.1 but it keeps getting the following error when I tried to navigate the tree. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;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'
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;Also, it would be great if there are sample Axon Ivy projects with TreeDataTable - Checkbox for reference?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 31 Jul 2018 02:13:36 -0400</lastBuildDate><item><title>Answer by wesing</title><link>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1/3379</link><description>&lt;p&gt;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 &amp;lt;treenode&amp;gt; but it still cause the same conversion error.  Anyway, Thanks for the help.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wesing</dc:creator><pubDate>Tue, 31 Jul 2018 02:13:36 -0400</pubDate><guid>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1/3379</guid></item><item><title>Comment by wesing on wesing's question</title><link>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3376</link><description>&lt;p&gt;Unfortunately, I am already using 'Data' class of HTML Dialog.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wesing</dc:creator><pubDate>Mon, 30 Jul 2018 09:12:09 -0400</pubDate><guid>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3376</guid></item><item><title>Comment by Reguel Wermelinger on wesing's question</title><link>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3374</link><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;It would help if you have an easy example project to show your problem.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 30 Jul 2018 07:55:16 -0400</pubDate><guid>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3374</guid></item><item><title>Comment by wesing on wesing's question</title><link>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3372</link><description>&lt;p&gt;Thanks Reguel. &lt;/p&gt;
&lt;p&gt;For my project, I need to use the TreeDataTable (checkboxnode) which is not available in the above-mentioned demos. &lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wesing</dc:creator><pubDate>Mon, 30 Jul 2018 05:42:43 -0400</pubDate><guid>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3372</guid></item><item><title>Comment by Reguel Wermelinger on wesing's question</title><link>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3371</link><description>&lt;p&gt;There are some related demos available in the &lt;code&gt;HtmlDialogDemos&lt;/code&gt; project.&lt;/p&gt;
&lt;p&gt;See File &amp;gt; Import &amp;gt; Axon.ivy &amp;gt; Ivy Sample Projects &amp;gt; Html Dialog Demos&lt;/p&gt;
&lt;p&gt;In there: are DataTable and EditableDataTable samples.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 30 Jul 2018 04:44:41 -0400</pubDate><guid>https://answers.axonivy.com/questions/3369/how-to-implement-primefaces-treetable-selection-checkboxtreenode-in-axon-ivy-7-0-1#3371</guid></item></channel></rss>