which combinations of Widget/Template and ClientBundleare allowed, and are there any known limitation / things you should consider when using them.
Afaik something like:
@Template(""{0}\"<p>not allowed</p>")
SafeHtml iconONLY(Widget w);
isn't allowed since it throws an error.
Something like
@Template("{0}<p>not allowed</p>")
SafeHtml iconONLY(Element e);
and use it with something like iconONLY(w.getElement());
is possible, but the Widget loses all functionality, because it's attache method isn't executed correctly.
To summ it up, I assume that Templates are not intended to have Widgets placed inside them!
ClientBundle are intended hold the content Widgets. Using them inside other elements e.g: like
@Template("{0}<p>not allowed</p>")
SafeHtml iconONLY(SafeUrl safeurl);
called with iconONLYimageResource.getSafeUrl);
can cause problems...
Are my assumptions correct? Please tell me if you tryed/ used one of the combination and how it worked?