Friday, November 27, 2009

Re: Tool to convert HTML in GWT widgets

I confess that I didn't know about the UiBinder. But, now that you
mentioned, after taking a look at it, and discussing with the team we
are keeping with our own tool.

The main difference between the two approaches is that our language to
define the widget tree (which we call MHTML) does a best effort
approach to be as similar as possible to HTML. The purpose here is to
easen the conversion of the pure HTML code into something "parseable"
and easily and directly convertible to GWT widgets.

For example, while you need a <g:ListBox> tag to instantiate a ListBox
widget, in our case you would write directly the <select> tag. A <div>
tag is converted into a FlowPanel, <span>s in InlineLabels, and so on.

One thing that the UIBinder does that we don't do is the automatic
binding of the widgets into the parent class fields. In our tool, we
have to write a few lines that fetch the subwidgets by id, and store
them in the class fields. (Although, we are now thinking of
implementing the automatic binding on our tool too).

While discussing it in our team, everyone (specially the designer)
felt much more inclined to continue using our tool.

We will do some more work on improving the code, and open up its code soon.
Thanks for the feedback.

Cheers,
Davi Pires

On Wed, Nov 25, 2009 at 1:24 AM, Sripathi Krishnan
<sripathi.krishnan@gmail.com> wrote:
>> How does it compare to the UIBinder in GWT 2?
>
> From the description, it is exactly what UiBinder does.
>
> --Sri
>
>
> 2009/11/25 Yozons Support on Gmail <yozons@gmail.com>
>>
>> How does it compare to the UIBinder in GWT 2?  I've not used it yet, but
>> understand it's an XML file format for building UIs.  If they overlap,
>> people will more likely prefer UIBinder, but if they do not, I'm sure others
>> would be interested.
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> 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.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> 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.
>

--


eco-blog: http://tarjaverde.wordpress.com

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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