Saturday, June 4, 2011

Re: Why isn't Anchor a container?



On Saturday, June 4, 2011 4:05:04 AM UTC+2, Jeff Schnitzer wrote:
On Fri, Jun 3, 2011 at 5:48 PM, Thomas Broyer <t.br...@gmail.com> wrote:

> It's not impossible today to do it so it's OK as a limitation: GWT let's you
> do it, not as easily as you'd have wished, but still (even though in most
> case you really don't need it, I mean, I couldn't find a single use case for
> a widget within an anchor that wouldn't have a better alternative)

I guess this is what I find most confusing.  I have wanted this on
multiple occasions - I often have an anchor whose content is
programmatically determined.  It may contain image resources.  I just
want to stuff the anchor with any of several widgets rather than
mucking about with HTML text.

This seems like a common case.  What design patterns should I use instead?


Widgets have a (performance) cost; I try to avoid them unless I do need them. For everything else, I use HTMLPanel (with UiBinder), Messages, SafeHtmlTemplates and/or ClientBundle/ImageResource/CssResource.

--
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/-/aHJyNkY0aEpFeFlK.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate