tag:blogger.com,1999:blog-5760168315986122884.post1988355793776204639..comments2023-10-17T15:00:23.135+05:30Comments on Ashish Awasthi's Blog: Populate af:treeTable programatically using POJO in Oracle ADF (11g & 12c)Ashish Awasthihttp://www.blogger.com/profile/12262246262095913627noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-5760168315986122884.post-63540808009650992642016-10-18T11:19:34.934+05:302016-10-18T11:19:34.934+05:30Girdhar
I don't have any examples on ADF Swin...Girdhar<br /><br />I don't have any examples on ADF Swing , You can learn same using ADF Faces <br /><br />AshishAshish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-51705698689115112342016-10-17T16:02:53.449+05:302016-10-17T16:02:53.449+05:30Hi Ashish,Could you please help me,
i am beginner...Hi Ashish,Could you please help me, <br />i am beginner to Oracle ADF, Could you tell me how to bind View Objects to ADF Swing Tree Component Programmatically with any simple Single table based View Object as example.<br /><br />Thank you in Advance <br />Giridhar Anonymoushttps://www.blogger.com/profile/17596488883548448733noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-77481738730308680572016-07-10T15:53:39.323+05:302016-07-10T15:53:39.323+05:30Great tutorial.Great tutorial.vcoskhttps://www.blogger.com/profile/01207129464046537930noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-21745919670778165252016-07-08T11:05:55.857+05:302016-07-08T11:05:55.857+05:30Try setting contentDelivery property to immediate
...Try setting <b>contentDelivery</b> property to <b>immediate</b><br /><br />AshishAshish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-3501258635247528282016-07-05T20:53:14.560+05:302016-07-05T20:53:14.560+05:30Hi Ashish
As of our previous discussion we Implem...Hi Ashish<br /><br />As of our previous discussion we Implemented (n) nodes & child tree with POJO <br /><br />Now i have a one question i searched and tried so many ways but not success any way<br /><br />can we Implement Bread Crumbs Navigation with that tree. is that's possible with our implementation.<br /><br />Thanks <br />RajAnonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-59022077338129587962016-06-29T14:52:14.136+05:302016-06-29T14:52:14.136+05:30Perfect Solution Ashish. Thanks for awesome suppor...Perfect Solution Ashish. Thanks for awesome support<br /><br />now i have doubt why selection listener not supporting in this event Now if we choose one node(Link) its Refreshing means just flipping whole tree i dont want this again and again.<br /><br />any have Ur support is awesome <br />Regards<br />RajTechRajahttps://www.blogger.com/profile/13459997730820385315noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-4028156252000806042016-06-29T11:38:21.396+05:302016-06-29T11:38:21.396+05:30Don't use f:attribute on selectionListener , d...Don't use f:attribute on selectionListener , drop a button or link in a column of treeTable and then drop f:attribute under it , Like this<br /><b><br />< af:column id="c2" width="30" align="center" ><br /> < af:link id="l1" text="Get Selected Record"<br /> actionListener="#{viewScope.ProgrammaticTreeTabBean.SelectedRecordAction}" ><br /> < f:attribute name="nodeName" value="#{node.name}"/ ><br /> < / af:link ><br /> < / af:column > </b><br /><br />AshishAshish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-49853120180566059932016-06-28T15:07:37.029+05:302016-06-28T15:07:37.029+05:30sorry Ashish to disturbing U again and again i tri...sorry Ashish to disturbing U again and again i tried it, it was throwing null pointer Exception <br /><br />Object obj = selectionEvent.getComponent().getAttributes().get("nodeName");<br />System.out.println("Selected Obj " + obj.toString());Anonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-18462355684718717642016-06-28T12:21:46.751+05:302016-06-28T12:21:46.751+05:30Raja Sekhar
You can traverse treeTable to get all...Raja Sekhar<br /><br />You can traverse treeTable to get all nodes and to get specific node value in multi level tree you can use f:attribute tag in treeTable and on button click get that attribute value<br /><br /><b> < f:attribute name="nodeName" value="#{node.name}" / > </b><br /><br />and to get it's value in bean <b> actionEvent.getComponent().getAttributes().get("nodeName") </b><br /><br />AshishAshish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-10847767430705149492016-06-27T18:43:35.307+05:302016-06-27T18:43:35.307+05:30Hi Ashish Thanks for this
Now i got Tree accordi...Hi Ashish Thanks for this <br /><br />Now i got Tree according to my directory but now i have a problem on selection of those i Completely used your code for selection event <br /><br />Now the problem is <br /><br />Root<br />\- chaild (Selection working)<br />\-\-sub chaild(Selection not working) :-(<br />Anonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-45636442461063239592016-06-25T12:45:27.707+05:302016-06-25T12:45:27.707+05:30You have to call addCharacter method for every chi...You have to call <b>addCharacter</b> method for every child level , Now you have to check if a directory has child directory then you have to call this method to add sub child<br />I can't make a sample this time , you have to try it yourself<br /><br />AshishAshish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-84531336209355257042016-06-25T09:33:16.623+05:302016-06-25T09:33:16.623+05:30Sorry ashish my code example am posting here but i...Sorry ashish my code example am posting here but it was not visible here what can i doAnonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-58243358996053453232016-06-25T09:02:56.472+05:302016-06-25T09:02:56.472+05:30This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-21737934054274862112016-06-25T08:59:31.128+05:302016-06-25T08:59:31.128+05:30Ashish, I need pragmatical Logic Help me here its ...Ashish, I need pragmatical Logic Help me here its grate help if U did something and as per your example we cant Imzine root and chaild but your example giving one path to every one without your example there is no other ideas. Please help me <br /><br />Thanks AShish for your valuable exampleAnonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-17027836274894462262016-06-24T16:13:12.612+05:302016-06-24T16:13:12.612+05:30As per above example if you want to add sub child ...As per above example if you want to add sub child then <br />write like this - <br /><i><br /> // Adding Master Values (seasons)<br><br /> Seasons season4 = new Seasons("Test Data");<br><br /> // Adding Detail Values (Child Node-Characters)<br><br /> character = new Seasons("Test Child");<br><br /> season4.addCharaters(character);<br><br /> //Add this as child of first Record<br><br /> season1.addCharaters(season4);<br></i><br /><br /><br />Ashish<br />Ashish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-61124449057183277882016-06-23T15:22:41.210+05:302016-06-23T15:22:41.210+05:30Hi Ashish Thanks for your reply,
your suggestion ...Hi Ashish Thanks for your reply,<br /><br />your suggestion is Good but i don't want that type. as My view now we have some chailds(cherecters)we need to add sub chaild<br /><br />Root<br />|-chaild<br /> |-sub chaild<br /><br />I did same like Ur code and am adding values from Lists <br /><br />in MyCode am using folders and subfolders and so on..... according to directory. I loaded all values to map key as root and Chaild as value now we need to add sub chailds <br /><br />Please Help me to do that <br /><br />for more Clarity see here<br />https://community.oracle.com/thread/3943210?sr=inbox&ru=961050<br /><br />Thanks in Advance Your help is really precious to me<br />Anonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-77348128639259258152016-06-23T10:56:55.620+05:302016-06-23T10:56:55.620+05:30Raja
Check Add and delete records (Parent/Child) ...Raja<br /><br />Check <a href="http://www.awasthiashish.com/2016/06/add-and-delete-records-parentchild-in.html" rel="nofollow">Add and delete records (Parent/Child) in POJO Based ADF TreeTable</a><br />This post is about adding child and parent nodes in POJO based tree<br />I hope it'll help you<br /><br />AshishAshish Awasthihttps://www.blogger.com/profile/12262246262095913627noreply@blogger.comtag:blogger.com,1999:blog-5760168315986122884.post-39230158579505384662016-06-21T19:52:50.808+05:302016-06-21T19:52:50.808+05:30Hi Ashish,
Thanks for Your grate Posts from ur bl...Hi Ashish,<br /><br />Thanks for Your grate Posts from ur blog its not blog its a place i learn alot<br /><br />based on this blog I populated TreeTable<br /><br />in my case am populated using Files Class in Java with Folders <br />how to add child to chaild Items <br /><br />and can U please tell me when am adding chailds the same chailds adding to every node<br /><br />Thanks and regards<br /><br />Anonymoushttps://www.blogger.com/profile/07596724858587962543noreply@blogger.com