On Friday, February 25, 2011 7:30:42 PM UTC+1, John LaBanca wrote: > > On Fri, Feb 25, 2011 at 12:34 PM, Stephen Haberman < > [email protected]> wrote: > >> >> > Please take a look at the design doc and let me know what you think: >> >> Out of curiosity, would this allow Panels (all the way up to RootPanel) >> to render their initial contents/major changes as one giant SafeHtml + >> set innerHTML operation, CellTable-style? >> > We're working toward that. We could add support for Cells in HtmlPanel, > such that a UiBinder backed HtmlPanel containing only HTML and Cells would > render as a sstring. >
That would basically make it an enhanced CompositeCell ;-) The issue is how to handle events (detect which cell has been targeted): - either a Cell must generate a SafeHtml string with a single root element (could it be somehow checked and enforced? at least in DevMode?) - or every Cell is automatically wrapped in an element (but then which one? a div? a span? chosen by the Cell, similar to HTMLPanel's constructors? but then how about attributes?) (i.e. what is the 'parent' element in your ButtonCell example?) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
