Hybrid View
-
16 Oct 2012 1:41 PM #1
uibinder-bridge for GWT 2.5.0
uibinder-bridge for GWT 2.5.0
Is there any plans to support GWT 2.5.0 in uibinder-bridge? Because right now only uibinder-bridge-2.4.0.jar is available, and it requires GWT 2.4.0. May be there is a way how I can use it with 2.5.0 rc2 ?
-
16 Oct 2012 1:44 PM #2
Fortunately, there is no need! The GWT team accepted the changes we made to create the uibinder-bridge jar into GWT itself, so all you need to do is just use GXT 2.5.
This change is in both rc1 and 2, and should be available in all later releases.
-
26 Oct 2012 3:27 PM #3
GWT 2.5 that is.
Use
<inherits name="com.google.gwt.uibinder.UiBinder"/>
instead.
Sebastiaan
-
26 Oct 2012 3:38 PM #4
That's true, you need to reference the GWT UiBinder module, but there still is and will be no uibinder-bridge needed in 2.5.0 and beyond.
-
21 Mar 2013 1:04 PM #5
gxt button default style not rendering in uibridge
gxt button default style not rendering in uibridge
I am using gwt 2.5 and have the following:
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:gwt='urn:import:com.google.gwt.user.client.ui'
xmlns:btn='urn:import:com.extjs.gxt.ui.client.widget.button'
xmlns:gxt="urn:import:com.extjs.gxt.ui.client.widget" xmlns:toolbar="urn:import:com.extjs.gxt.ui.client.widget.toolbar" xmlns:form="urn:import:com.extjs.gxt.ui.client.widget.form" xmlns:grid="urn:import:com.extjs.gxt.ui.client.widget.grid">
<ui:with type="com.google.gwt.sample.stockwatcher.client.Resources" field="res" />
<gwt:HTMLPanel>
<div align="center">
<gwt:Label text="Login Demo Using uiBinder" addStyleNames="{res.mainStyle.boldLargeText}" />
<gwt:Button text="Im a native gwt btn, Click Me" />
<btn:Button ui:field="exampleButton" text="GXT button, Click Me" />
</div>
</gwt:HTMLPanel>
</ui:UiBinder>
The native gwt button renders correctly, the label with the injected style renders correctly but the gxt button just shows as text. We are attempting to apply themes to our site and uibinder seemed the way to go. However, we wanted to take advantage of the gxt widgets using the default style without converting and injecting the entire gxt.css. Is this possible?
-
21 Mar 2013 2:11 PM #6
I'm assuming that you are using GXT 2, while posting in a GXT 3 forum:
Because GXT 2 supports earlier versions of GWT where UiBinder doesn't exist, it cannot properly support UiBinder. As a result, other tools must be used to make GXT 2 work with UiBinder. This thread is about GXT 3 and uibinder support that was contributed back to GWT itself.Code:xmlns:btn='urn:import:com.extjs.gxt.ui.client.widget.button' xmlns:gxt="urn:import:com.extjs.gxt.ui.client.widget" xmlns:toolbar="urn:import:com.extjs.gxt.ui.client.widget.toolbar" xmlns:form="urn:import:com.extjs.gxt.ui.client.widget.form" xmlns:grid="urn:import:com.extjs.gxt.ui.client.widget.grid">
From the lack of style, I would guess that you do not have a link tag in your html page to gxt-all.css. Are you putting all of that CSS in the .ui.xml file then? Remember too that UiBinder css gets rewritten, so you will need an @external reference for every single GXT classname. Again, GXT 2 works with GWT 1.7 which has no CssResource support, so GXT 2 cannot use CssResource, and instead must by default use regular css files.


Reply With Quote