gwt-uibinder

GWT UiHandler on HTMLPanel

I'm writing a widget with the following markup: <g:HTMLPanel ui:field="shortcutPanel" styleName="{style.shortcut}"> <g:Image ui:field="shortcutImage"></g:Image> <span ui:field="shortcutLabel"></span> </g:HTMLPanel> So essentially a div that wraps and image and a label. Now, instead of adding the event handlers on the image/sp...

GWT: use the same UI template for multiple pages?

Hello, how can I use the same UI template (*.ui.xml file) with multiple Java objects extending from Composite? I need to build several pages that should display basically the same information with the same layout, but on one page some fields will be editable, and on a different page other fields will be editable. I would like to sp...

Which is better in GWT?

which is better in GWT interface, using the normal MVP with javacode, or UiBinder?? from performance, editing, simplicity aspects. ...

GWT: uiBinder-based widget cant be instanced second time

Hi. I created a widget using GWT uiBinder. It works fine, till the moment when I want to instance it second time. After i call constructor second time it returns only raw description from XML and statements in constructor (rootElement.add( new HTML( "panel1" ), leftId );) are just don't work. It throws no error or warning. Please help...

uiBinder on Button Clickevent

Hello all, I'm trying to use uiBinder. I followed the tutorial provided by google, but I don't know why clickevent doesn't work? I want to count number of clicks and show it in the span, it doesn't work, I also put window.alert but it seems that the event handler is not called at all! Can anyone help me? It's couple of hours I'm working...

Generated java file by Generators in GWT?

Hi, How can I find the java file which is generated during compile time when Generator is being used, for example when we have uiBinder it seems that GWT.create calls some generators and generates a java file, how can I get access to this file? Any idea? ...

problem in using Google Accounts authentication with ui binder

how do i integrate appengine authentication for google accounts in ui binder? ...

Compile Error: Found widget in an HTML context Element

I've seen this answer but my I can't see what could possibly be the problem in my own code. Here is the my uibinding xml: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"&gt; <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:a='urn:import:com.google.gwt....

Using uibinder with SmartGWT?

Is it possible to use UiBinder with SmartGWT at all? I've heard that at the moment it's impossible, though there are efforts to bridge the gap. How are those efforts? Have they yielded any successes yet? Furthermore, if SmartGWT is still not UiBinder-friendly yet, are there any other GWT libraries that might be? ext-GWT, perhaps? ...

GWT UI Binder using pure HTML

Is there a way to work with pure HTML in GWT UIBinder. The problem I am seeing is more of where we have to wrap the style in curly braces. Any link /article/book handling UIBinder in detail would be helpful. I have already seen the articles in GST website ...

GWT: UiBinder or GWT Designer?

Hello I have my first GWT project that I created using UiBinder (GWT 2.0 way) which I found to be easier than write my UI creation Java source code (GWT 1.0 way). But I saw this thing called GWT Designer that Google are realeasing for free. It have a nice features and wizards, which was missing with standart Google Eclipse Plugin. I li...

GWT TabLayoutPanel do not renders the graph content

I have a structure similar to following <g:TabLayoutPanel ui:field="rightTabPanel" width="100%" height="100%" barUnit="EM" barHeight="3"> <g:tab> <g:header>Graph</g:header> <g:FlowPanel ui:field="graphContent"/> </g:tab> <g:tab> <g:header>...

any good tutorial on gwt ImageResource

hi, all I need to create a image resource that i can use for the push button, but where can i find some good tutorial on UiBinder and ImageResource? the gwt online tutorial is not enough for me to understand it. Thanks. ...

Programmatic access to inline Styles where name is separated with dashes

Here is shown how to use styles in CamelCase, but how to use styles with a dash in its name? Valid Java method name can't have dashes in it (at least eclipse shows syntax error). Style defined in template: .menu-inactive{ background-color: grey; } ...

one GWT CssResource, two implementations (css files)

public interface ReviewPanelStyle extends CssResource {...} @Source("BlueReviewPanelStyle.css") ReviewPanelStyle BlueReviewPanelStyle(); @Source("YellowReviewPanelStyle.css") ReviewPanelStyle YellowReviewPanelStyle(); We would think that this should work, however it does not. The color of elements styled (regardless of weather assoc...

GWT UiBinder: Add Mouse Handler to Panel or Grid

I can't find a way to add a Mouse Handler to a GWT Panel or a Grid while using UiBinder. I basically need a way that I can detect the following over a Grid: Detect what cell the event is happening in. Detect Mouse Up Event Detect Mouse Down Event Detect Mouse Out Event Detect Mouse Over Event I had planned to try and do this with th...

Unable to compile GWT Cell Showcase examples

I have been trying to understand gwt Widgets showcase at the below link: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList I am not able to compile the code, this code is using UiBinder but they are not binding it to template which gives me error "Template file ContactInfoForm.ui.xml is missing (expected at com/tracker/...

Custom attributes in UiBinder widgets

I'm using GWT and UiBinder for my app, and I'm trying to do this <g:TextBox ui:field="searchBox" styleName="{style.searchBox}" placeholder="search" /> But the custom placeholder attribute won't work because there isn't a setPlaceholder method on TextBox - I need to this: searchBox.getElement().setAttribute("placeholder", "search"); ...

passing an object to the constructor of a widget defined in uibinder

I'm trying to pass my app's EventBus to a widget declared in a UiBinder via its constructor. I'm using the @UiConstructor annotation to mark a constructor that accepts the EventBus, but I don't know how to actually reference the object from my ui.xml code. That is, I need something like WidgetThatNeedsAnEventBus.java public class Wid...

Laying out a table in a GWT UiBinder (with Grid?)

I want to make a table of data in a UiBinder. I need programmatic access so I can add data at runtime, but I'd like my designer to have access to header names, column styles, etc, in the ui.xml file. Is there a solution that meets these needs? A Grid perfectly satisfies my programmatic access, but I don't see a way to specify rows or ...