I have a similar situation with expandable CellTable rows, inspired from 
this showcase:  
http://showcase3.jlabanca-testing.appspot.com/#!CwCustomDataGrid 

Lets say I have a CellTable displaying instances of class Book on each row. 
When I click one row (using SelectionModel), it gets expanded, where the 
Authors of the Book is displayed 
in a custom UiBinder widget.

I would like be able to click on a row for an Author to show some more 
information. 
But the selectionModel's changehandler gets fired. If I remove the 
selectionModel and just use a
ClickableTextCell to expand the row, the events in the Authors custom 
widgets isnt fired (@UiHandler("infoButton"))

Any suggestions how I can acheive this?

Regards


Den onsdagen den 11:e maj 2011 kl. 04:48:35 UTC+2 skrev Tatchan:
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ngWFQG9o-9sJ.
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.

Reply via email to