uibinder

Eclipse autocompletion for GWT UiBinder (+ UiBinder documentation)

I am using UiBinder xml files in a GWT project. The problem is that Eclipse doesn't give me any info about what attribute I can use with the widgets For example I know I can set width or style this way : <g:HorizontalPanel width="100%" addStyleNames="{style.mainPanel}"> But they are not mentioned in the list that appears after clicki...

Is it possible to reuse GWT UIBinder panels?

I have a layout in Google Web Toolkit using UIBinder involving a TabLayoutPanel. This layout has the superset of all tabs that will be used by my app (think of it as an admin view). I now need to create a new layout, using a subset of these tabs (eg, for regular users). Is it possible to import panels from my admin layout in my user...

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...

GWT UiBinder any way to have dynamic List of Widgets?

Class Foo has a variable List<Button> bar, how can I render each of the buttons using UiBinder? Is it even possible? ...

How do declarative layout and uibinder work?

Hey all, I have 2 questions, could you please help me... I want to know how does the createAndBindUi() method technically work? If I want to make UIBinder template dynamically, what can I do? I know that UIBinder works at compile time but is there anyway to implement something like that which works at runtime? ...

GWT MVC + UIBinder

What's the easiest and simplest way to implement an MVC-style pattern using UIBinder for the UIs? ...

Events defined in UiBinder not working ?

Sorry if it's a silly question , but I'm just starting learning GWT and got stuck to this problem for a long time ... . Here is my code : public void onModuleLoad() { HelloWorldPanel helloWorldPanel = new HelloWorldPanel(); RootPanel.get().add(helloWorldPanel); //RootPanel.getBodyElement().appendChild(helloWorldPanel.getEle...

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....

Documentation for @UiHandler

I started to look into using GWT in combination with UiBuilder. I'm a bit puzzled about how you can use the @UiHandler(..) directive to make simple event handle code as written down in the GWT documentation: @UiHandler("button") void handleClick(ClickEvent e) { Window.alert("Hello, AJAX"); } In this case the method handleClick is us...

How to set background image to an ClientBundle resource in uibinder (GWT)

Dear members, How to set background image in uibinder/java to an image in ClientBundle without using: obj.getElement().getStyle().setBackgroundImage("url("+Images.INSTANCE.bg().getURL()+")"); Because this doesn't work in IE (FF is OK). I think I should set the background image directly in uibinder with css @url or ... (I am using 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? ...

Need app-wide CSS constants in GWT

Hi. I'd like to define some colours as constants in a GWT CssResource, and use those constants throughout my application; but I don't know how to do that. I'll tell you what what I've tried. I've created a ClientBundle and a CssResource as follows: public interface Resources extends ClientBundle { public interface MyStyle extends Css...

use jquery to call gwt uibinder div element

i looking for a manual way of manipulate div element inside uibinder using jquery without using gwtQuery . is there any example? the jquery will be inside app.html that has the gwt-entry-point.nocache.js file <html> <head> <script type="text/javascript" language="javascript" src="jquery-1.4.2.min.js"></script> <script type="tex...

uibinder element get with jquery selector fail on chrome/safari

i have uibinder html element like below <g:HTMLPanel> <div class='thumbnailWrapper'> <ul> <li> <a href='#'><img src='41546-140.jpg' /></a> <div class='caption'> <p class='captionInside'>testing javascript</p> </div> </li> <div class='clear'>...

GWT TabLayoutPanel is always collapsed

I have a trivial TabLayoutPanel made with a UIBinder. The tabs render but none of the contents do. It's in the HTML, but it's always collapsed (inline styles set on the elements make it collapse). As far as I can tell this is identical to every TabLayoutPanel example I've seen. Other widgets render fine. The project is just the basic exa...

Duplicating the <g:tab> element of GWT's TabLayoutPanel

I've found the GWT tab panels clunky for the styling I need to do, so I'm trying to make my own, simple tab panel. Basically an HTML5 <nav> element for tabs and a DeckPanel to display the content. Let the use figure out the rest with CSS3. The GWT TabLayoutPanel has these "special" tags it uses to define the contents of a tab: <g:TabLa...

ui:msg with Dictionary in GWT

Hi Is it possible to use ui:msg with a Dictionary or a custom HashMap in GWT? If so how? Thanks A ...

How can I use @UIBinder with CheckBox ValueChangeEvent?

I am trying to get this to work: @UiField CheckBox showDeleted; @UiHandler("showDeleted") public void onShowDeletedClicked(ValueChangeEvent<Boolean> ev) { ... } I get these errors from the GWT Compiler: Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [WARN] The method 'getAssociatedType()' in 'ValueChangeEven...

GWT UIBinder Tab panel

I want to put some anchor inside the body of tab panel with two tabs. But my anchors are not visible. The code is as follows <g:TabLayoutPanel ui:field="lhsTabPanel" barUnit="PX" barHeight="60"> <g:tab> <g:header>Analysis</g:header> <g:FlowPanel> <g:Anchor ui:field='personalInformation'>Personal Information</...

GWT hashed css style names not properly added

Hi, I have a bizarre experience with GWT styles. I'm using UiBinder as well as some programmatic access to style my GWT widgets: <ui:UiBinder xmlns:ui="..." xmlns:g="..."> <ui:style src="bindings.css"/> <g:VerticalPanel > <g:Label addStyleNames="{style.stationTitle}" ui:field="stationName"></g:L...