I never got a response and just gave up. I realized that I don't actually
understand cells all that well, and they seem to have fallen out of favor
anyway.


On Mon, Oct 12, 2015 at 6:05 AM Drew Spencer <[email protected]> wrote:

> Argh, I hate finding a (1 year old) post that asks exactly my question but
> has no answers!
>
> Did you find a nice solution to this in the end? I'd be interested to hear
> what you came up with or any advice anyone might have.
>
> On Thursday, 16 October 2014 13:50:12 UTC+1, Shaun Tarves wrote:
>>
>> 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 a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/n3c9rD-m0Ak/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
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