Does GXT support UiBinder?
Does GXT support UiBinder?
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
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
Any changes with GWT 2.1 ??
I's become actual cos I just updated GWT Designer Beta, and it's working only with UIBinder Templaytes now!!
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
Not really.Is there a way around custom parsers
There are multiply talks on the official gwt mailinglists.Is there a talk about GWT planing to add them?
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:
Code:<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" /> ...
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