Re: Re : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Hi Jens, did you solve this issue? I have the same issue now. Thank you very much On Tue, Jun 21, 2011 at 4:32 PM, Jens Teglhus Møller djar...@gmail.comwrote: Hi I have trimmed down my tree to a minimal example root node with one child both strings and here it works (should of course have done this before my initial post :-(), i suspect it to be related to some generics stuff that i'm clueless about. I will have to dig deeper into this. Sorry for the noise. Best regards Jens On Tue, Jun 21, 2011 at 3:18 PM, mkkm...@gmail.com mkkm...@gmail.com wrote: Can you post your getNodeInfo methdo code ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fhH98t5si6wJ. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Hi Thanks for the tip, but my problem is not loading the nodes, its only selection the root node that causes me problems (or did i miss something in the mentioned thread?). Best regards Jens On Jun 19, 3:40 pm, mkkm...@gmail.com mkkm...@gmail.com wrote: Hi, Try here:https://groups.google.com/forum/?starthl=en#!searchin/google-web-too... Michaël -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Yes, it's the end of the code: // defining *private SingleSelectionModelMyType selectionModel =** new SingleSelectionModelMyType();* // inside TreeViewModel ctor (or in a better place) * selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {** public void onSelectionChange(SelectionChangeEvent event) { // fire rpc, a place change or something else ** // event.getSelectedObject() contain**s the selected element } });* // return the DefaultNodeInfo with info about the selection strategy public T NodeInfo? getNodeInfo(T value) { // do something with the value and return the right DefaultNodeInfo if(value instanceof MyType1) { return new DefaultNodeInfoSectionDTO( new SectionDataProvider(), new MyCustomCellOrADefaultOne(), *selectionModel*, null); } else if ... } Michaël -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K5UlSlv5YaoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Can you post your getNodeInfo methdo code ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fhH98t5si6wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Hi I have trimmed down my tree to a minimal example root node with one child both strings and here it works (should of course have done this before my initial post :-(), i suspect it to be related to some generics stuff that i'm clueless about. I will have to dig deeper into this. Sorry for the noise. Best regards Jens On Tue, Jun 21, 2011 at 3:18 PM, mkkm...@gmail.com mkkm...@gmail.com wrote: Can you post your getNodeInfo methdo code ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fhH98t5si6wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Hi, Try here: https://groups.google.com/forum/?starthl=en#!searchin/google-web-toolkit/CellTree$20asyncdataprovider/google-web-toolkit/jdQLj_oZTek/fuKmFMrbghsJ Michaël -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8DJ8Af7sh1sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Anyone? I'm trying to create an 'windows explorer' like interface with a CellTree on the left and a CellTable on the right (so when i click on a node in the tree i get the details in the table). It works nicely except that i can not click the root node. Its a bit of a showstopper. Best regards Jens On Tue, Jun 14, 2011 at 4:01 PM, Jens djar...@gmail.com wrote: Hi I have a CellTree with a SingleSelectionModel, when i click the root node it gets visually selected but does not fire a SelectionChangeEvent, the problem is only for the root element. Has anyone else discovered (is it by design / a bug / me that screwed up). My example is quite simple but i cannot post the code as is, but i can clean it up and post it if required. Best regards Jens -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)
Hi I have a CellTree with a SingleSelectionModel, when i click the root node it gets visually selected but does not fire a SelectionChangeEvent, the problem is only for the root element. Has anyone else discovered (is it by design / a bug / me that screwed up). My example is quite simple but i cannot post the code as is, but i can clean it up and post it if required. Best regards Jens -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.