I use UiBinder and like it a lot because it allows me to do my markup using
UiBinder's HTML like XML tags which, if you like to code in HTML, is a real
benefit over coding your interface using Java. I don't but I could pass off
any one of my UiBinder xml files to a designer and they wouldn't feel like
they are looking at something "foreign" as it very HTML like.
In GWT 2.1 there are a few issues that developers must bear in mind when
using UiBinder. The most "in your face" issue is that you cannot dynamically
add widgets directly to an HTMLPanel but instead must have the HTMLPanel
include a native HTML container to which you append widgets to as
demonstrated in the following UiBinder markup:
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:dp="urn:import:com.google.gwt.user.datepicker.client">
.
.
.
<g:HTMLPanel styleName="{style.view}">
.
.
.
<g:HTMLPanel ui:field="salesTaxContainer">
<div id="addEditIPurchaseTaxContainer"/>
</g:HTMLPanel>
.
.
.
</g:HTMLPanel>
</ui:UiBinder>
And in the following code snippet where a widget is added to the HTMLPanel :
salesTaxContainer.add(new
AddEditPurchaseTaxView(purchase),"addEditIPurchaseTaxContainer");
This is a common coding pattern you will have to get used to when using
UiBinder and it is my understanding that this is being addressed in some
future release.
Jeff
On Tue, Dec 21, 2010 at 6:53 AM, Ice13ill <[email protected]> wrote:
> I believe that junaidp was expecting a more detailed answer :)
>
> On Dec 20, 6:37 pm, Thomas Broyer <[email protected]> wrote:
> > UiBinder is a feature of GWT that generates Java code from XML files to
> > describe user interfaces.
> >
> > GWT Designer is a developer tool that allows you to generate Java code *
> > and/or* UiBinder XML using a *designer* (RAD) rather than typing it by
> hand
> > in a text editor.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
*Jeff Schwartz*
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.