27 Apr 2010 2:59 PM #1
Does GXT support UiBinder?
Does GXT support UiBinder?
27 Apr 2010 3:04 PM #2
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
25 May 2010 12:13 AM #3
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/showthrea...T-and-UIBinder
14 Dec 2010 7:10 PM #4
14 Dec 2010 7:13 PM #5
I's become actual cos I just updated GWT Designer Beta, and it's working only with UIBinder Templaytes now!!
15 Dec 2010 3:30 AM #6
19 Dec 2010 10:08 AM #7
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?
19 Dec 2010 10:25 AM #8Is there a way around custom parsers
Is there a talk about GWT planing to add them?
22 Feb 2011 6:59 PM #9
GXT UiBinder Support
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.
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:
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" /> ...
23 Feb 2011 1:19 AM #10
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.