PDA

View Full Version : Does GXT support UiBinder?



jorel2
27 Apr 2010, 2:59 PM
Does GXT support UiBinder?

sven
27 Apr 2010, 3:04 PM
You should use the forum search. I answered this question already 3 times the last few days. It cannot be supported because there is no API to register own parsers

MihaiMese
25 May 2010, 12:13 AM
previous: "Well I did use the forum search and no straight answer was found related to the UIBinder, maybe an indirect answer is given at another topic, I don't know. A link to that reply would be much appreciated if the issue was already discussed, because at the moment it's unclear if UIBinder works not only for GWT widgets but for GXT components as well; or if this feature will be implemented in the next release. Thank you for your time."

- never mind, somehow, the search didn't came up with "GXT an UIBinder" thread.. http://www.extjs.com/forum/showthread.php?97927-GXT-and-UIBinder

support_csd_kz
14 Dec 2010, 7:10 PM
Any changes with GWT 2.1 ??

support_csd_kz
14 Dec 2010, 7:13 PM
I's become actual cos I just updated GWT Designer Beta, and it's working only with UIBinder Templaytes now!!

sven
15 Dec 2010, 3:30 AM
Any changes with GWT 2.1 ??

No and its still not possible because GWT does not allow custom parsers.

andreiastra
19 Dec 2010, 10:08 AM
Hi Sven,

UiBinder looks like a promising feature to me.

What's your general opinion about future implementing of UiBinder functionality in GXT? Is there a way around custom parsers? Is there a talk about GWT planing to add them?

Andrei

sven
19 Dec 2010, 10:25 AM
Is there a way around custom parsers
Not really.


Is there a talk about GWT planing to add them?
There are multiply talks on the official gwt mailinglists.

jhickman
22 Feb 2011, 6:59 PM
Although it's not officially supported by either Sencha or GWT, there's an open source project that allows using GXT widgets in UiBinder XML files. There are some frameworks that attempt to handle this by creating "adapter" classes for all GXT widgets. With this framework, you can use GXT widgets directly with zero dependencies on this library at runtime.
http://code.google.com/p/gxt-uibinder/

This project builds upon another project called gwt-customuibinder (http://code.google.com/p/gwt-customuibinder/), so it must be in the compile-time classpath as well. (again, no runtime dependency).

You can see sample UiBinder code here:
http://gxt-uibinder.appspot.com/

It's still in early stages and will be deprecated once Sencha supports UiBinder natively, but much functionality is supported. For example, here's a small snippet on using a FormPanel:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:gxt="urn:import:com.extjs.gxt.ui.client.widget"
xmlns:form="urn:import:com.extjs.gxt.ui.client.widget.form"
xmlns:button="urn:import:com.extjs.gxt.ui.client.widget.button">

<gxt:LayoutContainer>
<gxt:VerticalPanel spacing="10">
<form:FormPanel heading="Simple Form" frame="true" width="350" buttonAlign="CENTER">
<form:layoutdata type="FormData" anchorSpec="-20">
<form:TextField fieldLabel="Name" allowBlank="false" />
<form:TextField fieldLabel="Email" allowBlank="false" />
...

Exclam
23 Feb 2011, 1:19 AM
Yes, that's working really good, we also use your (edit: just saw your name right now) tools.

A small problem is, that the addition uses self-defined tags as <gxt:north>, <gxt: south> for the border layout, which are not covered by the namespaces in xmlns:gxt='urn:import:com.extjs.gxt.ui.client.widget or xmlns:grid="urn:import:com.extjs.gxt.ui.client.widget.grid

Do you know, if these libraries have their own namespaces defined somewhere? Otherwise the IDE (in our case IntelliJ IDEA does not support code completion for these tags.

cu,
Guido

Exclam
23 Feb 2011, 1:23 AM
one further question, as I am talking to the Pro right now:
Do you know, how it could be possible to separate the UiBinder XML from the sources, so that they are in an own folder?
cu,
Guido

jhickman
23 Feb 2011, 5:07 AM
It's probably not appropriate to have that conversation here. I've created a new discussion group for the gxt-uibinder project: https://groups.google.com/group/gxt-uibinder