I have a fairly complex question about using cells with UiRenderer. I'm 
finding that for the same object type, I have several variations of the 
cell that I render based on the view and context it's rendered in. For 
example, sometimes the cell has a button to remove/delete, other times it 
doesn't. Sometimes, I want to wrap text in anchor tags, other times I want 
them to just be spans. 95% of the cell rendering template is the same in 
these cases.

This creates (mostly) duplicative renderer code and xml, so I am looking 
for a better solution. My thought was to have a master renderer with some 
elements that would contain the rendered SafeHtml of smaller partial 
renderers.

I have seen that I can use a SafeHtml template to render a portion of the 
html for the cell renderer, but I would lose the ability to have UiHandlers 
on those elements created as just SafeHtml from the Template (which is 
really handy).

Is there a way to make this work? Can I delegate browser events to "sub" 
renderers? Is this better approach here?

I suppose what I'm asking for might be UiRenderer-based composite cells, 
but I've seen no examples of how to do this.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to