Hi, I have a similar problem. I my case, a complex widget (which is basically MyCompoSite.InnerHTML) is rendered as the inner HTML of each cell. The cell itself can catch click/mouseout event but not my inner HTML. The weird thing is that: Mouseover event can be caught both in the cell and in my HTML. Could any one give suggessions please?
-Tatchan On May 3, 10:21 pm, johan <[email protected]> wrote: > Well, this works fine as long as the event is managed by the tree item > itself. > But in my case, the tree item contains a CellTable and that CellTable > contains some clickable cells. > In such a case, I can't make it work. > > On May 2, 5:13 pm, lamre <[email protected]> wrote: > > > > > Cell<Cartella> cell = new AbstractCell<Cartella>("click") > > { > > @Override > > public void render(Context > > context, Cartella value, > > SafeHtmlBuilder sb) > > { > > sb.appendEscaped(value.getDescCartella()); > > } > > //gestiamo gli eventi > > @Override > > public void onBrowserEvent(Context > > context, Element parent, > > > > Cartella value,NativeEvent event, ValueUpdater<Cartella> > > valueUpdater) > > { > > if (value == null) { > > return; } > > > > super.onBrowserEvent(context, parent, value, event, > > valueUpdater); > > if > > ("click".equals(event.getType())) > > { > > > ControllerPqm.getInstance().loadCartella(value.getIdCartella()); > > // Window.alert("Click > > sulla cartella "+ > > value.getDescCartella()); > > } > > } > > };- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
