uibinder

garbled css name when styling within UiBinder

我与影子孤独终老i 提交于 2019-12-24 02:40:32
问题 For my GWT application, I want to show the selected row in a FlexTable, and for that purpose I add a style to the specific row: @UiField FlexTable productTable; int row; [...] /* select row */ productTable.getRowFormatter().addStyleName(row, "row-selected"); In the corresponding ui.xml file, I have the style added as follows: ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:u="urn:import:myapplication.client.ui"> <ui:style> tr.row

Localization of GWT app built with UiBinder doesn't work in hosted mode

痞子三分冷 提交于 2019-12-23 12:59:28
问题 Does localization of GWT app built with UiBinder work in hosted mode ? It does not for me. Here is what I did: 1) Added locale properties to GWT module's XML < inherits name="com.google.gwt.i18n.I18N" / > < extend-property name='locale' values='en'/> < extend-property name='locale' values='ru'/> < set-property-fallback name="locale" value="en"/> 2) Taged messages in *.ui.xml files with , as < ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" ui:generateFormat="com.google.gwt.i18n.rebind

How do you let UiBinder pass tags without binding them so XFBML works?

北战南征 提交于 2019-12-23 12:36:39
问题 I have an application designed that's using GWT and UiBinder. Now we're trying to setup a login through facebook. I've included the script to init the fb javascript in my application's HTML, and I'm trying to get a facebook login button. The Login.ui.xml contains a facebook login tag: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g="urn:import:com.google.gwt.user.client.ui" > <g:HTMLPanel addStyleNames="login"> <h2>Login Using Your Account</h2> <g:TextBox ui:field="username"/>

GWT - Implementing a DialogBox for Login purposes

给你一囗甜甜゛ 提交于 2019-12-23 12:34:48
问题 For testing purposes, I want to use a DialogBox for logging into my application. Here's the uibinder file: <!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"> <ui:style> </ui:style> <g:HTMLPanel> <g:Label>Username</g:Label> <g:TextBox ui:field="username"></g:TextBox> <g:Label>Password</g:Label> <g:PasswordTextBox ui:field="password"></g:PasswordTextBox> <g:Button ui

How to use JavaScript with gwt Uibinder

那年仲夏 提交于 2019-12-23 02:03:02
问题 I want to execute JavaScript in my application which is written with GWT. This is the code that works in a regular HTML: <html> <head> </head> <body> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> <script src="jquery.js"></script> <script src="jquery.roundabout.js"></script> <script> $(document).ready(function() { $('ul').roundabout(); }); </script> </body> </html> (Assume jquery.js and jquery.roundabout.js are in the same folder.) I have a somePresenter (with someView.java and

gwt pushButton in UiBinder

会有一股神秘感。 提交于 2019-12-21 07:29:13
问题 I need to create a pushButton(so it's a button with image) in gwt with UiBinder , but I'm not sure how proceed. Here is my ui.xml code: <g:PushButton ui:field="myPushButton"/> And in *.java file I defined: PushButton myPushButton; How can I add an image to the push button? I've tried the following but won't work: <g:PushButton ui:field="myPushButton" image="myImage.gif" /> Thanks 回答1: You can use following code straight from CustomButton Javadoc: g:PushButton ui:field='pushButton' enabled=

How to handle single quotes in internationalization constants?

你说的曾经没有我的故事 提交于 2019-12-21 07:10:31
问题 We define all our internationalized constant strings in a single properties file LocalizableResource_xx.properties (one per language) located in google.gwt.i18n.client . This way it is possible to access the constants in Java code via the constants interface Window.alert(myConstants.helloWorld()); as well as to use them inside the UiBinder .ui.xml <ui:attribute key="some.key" name="text" description="useful info" /> This approach doesn't work well if the string contains a single quote ( ' ).

Mapping ui:field in GWT to generated code

爷,独闯天下 提交于 2019-12-21 04:27:13
问题 I'm trying to get some automated UI testing going on a GWT application and I'm having trouble finding a way to track UI elements. For example, I have the following: <g:Button text="Submit" ui:field="submitButton" enabled="true" /> which generates: <button class="gwt-Button" type="button">Submit</button> Its a compiler error to set both ui:field and id (id is considered deprecated anyway) so the problem is that I have no easy way to select my submit button using something like selenium. Is

Defining GWT CellTables with UiBinder

故事扮演 提交于 2019-12-21 04:04:35
问题 If I define my CellTable in MyView.ui.xml UiBinder file like this: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:c="urn:import:com.google.gwt.user.cellview.client" ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys='com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator' ui:generateLocales='default' xmlns:p1="urn:import:com.google.gwt.user.cellview.client"> ... <g:HTMLPanel> <c:CellTable

gwt using jquery effect possible?

血红的双手。 提交于 2019-12-20 17:28:12
问题 in my gwt, i have a button that fire like below to create new widget @UiHandler("buttonfire") void addNewWidget(ClickEvent event) { htmlPanelHolder.add(new MyCustomWidget(),"placeholder"); } how to use jquery so that when the MyCustomWidget() show on screen it is using jquery "fadein" effect i already tried putting jsni to call jquery inside new MyCustomWidget() onload() but doesnt work. can guide me on this? 回答1: It's also possible to create a fade in effect without using jQuery. If you want