On Monday, June 16, 2014 5:28:44 PM UTC+2, Zied Hamdi OneView wrote:
>
> Ok many thanks Thomas for the help,
>
> So I'll try to put a variable of type SafeUri to <img src={safeUri}"> I 
> thought that since the method accepts a String in src, it would need 
> another attribute for the SafeUri
>
> May I suggest to put it all together in a different documentation than the 
> one for uiBinder (example in UiRenderer): Indeed I've read that page, and 
> since it is somewhere in the resources, I skipped it. I know that in the 
> code it's related (UiBinder, UiRenderer, eventually ClientBundle), but 
> conceptually as a user I perceive those things as separate enough to be 
> in different sections (naturally it's only my point of view as an old GWT 
> user, that saw the things being added gradually. I think, it could be 
> confusing for a newbie to see UiBinder in the same section as UiRenderer)
>

AFAICT, the differences between UiRenderer and UiBinder are that:

   - widgets are not supported
   - there's no "owner class", which changes a few things:
   - <ui:with> fields are provided by method arguments rather than 
   @UiField(provided=true)
   - ui:field's are returned using getters rather than @UiField fields in 
   the owner class
   - UiRenderer handles event dispatching to "elements" (event delegation, 
   then matching the actual target). Event dispatching is done by passing a 
   "handler class" (similar to the owner class of UiBinder here), the 
   NativeEvent and the root element where you rendered the UiRenderer; 
   @UiHandler methods are matched on the "handler class" rather than the 
   "owner class" for UiBinder. In addition, you can pass additional parameters 
   that will be passed back to the @UiHandler methods.

But UiRenderer and UiBinder are built on the same grounds.

-- 
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 [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