gwt2

Strategies for mixing in the gwt compatible and non compatible source

徘徊边缘 提交于 2019-12-11 05:42:01
问题 Yes i know one alternative to solving this problem is simply to create two source directories from the original. The class path for the GWT compiler would thus be setup to simply only see the compatible source while both would be used for the server portion of your app. Firstly i find this kind of ugly, because it means i now have two source directories with potential doubles of classes. refactoring and other structural abilities of the IDE can potentially be problematic as it will get

receive data from Formpanel in gwt

耗尽温柔 提交于 2019-12-11 05:28:40
问题 I am trying to use FormPanel. oN FormPanel formPanel.setWidget(flexTable); A check box , a listBox and FileUpload is added flexTable.setWidget(4, 1,listBox); flexTable.setWidget(5, 1, fileUpload); flexTable.setWidget(6, 1, checkBox); // More Code A Servlet code is written to get the all the values which running fine only for fileUpload. How to get the value of checkBox an ListBox. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

CSS is not working in GXT

你。 提交于 2019-12-11 05:04:16
问题 I am in learning phase of GWT GXT, I my project some of the css are working fine , but some are showing me a strange behavior . for login button. logonBtn = new TextButton("Connect"); logonBtn.setIconAlign(IconAlign.RIGHT); logonBtn.setIcon(Resources.INSTANCE.login()); logonBtn.setStyleName("Project-Button"); Css .Project-Button { color: Black; border: thin outset #FF6600; font-family: Courier New, Century Gothic, Times New Roman, Verdana, Arial; vertical-align: middle; background-position:

TabLayoutPanel not showing widgets only Tab items are visible

让人想犯罪 __ 提交于 2019-12-11 04:31:41
问题 Simple example of TabLayoutPanel not showing container widgets only Tab items are visible. Something going wrong is it works for IE8 public class DemoGWT implements EntryPoint { RootPanel rp = RootPanel.get(); public void onModuleLoad() { TabLayoutPanel panel = new TabLayoutPanel(25, Unit.PX); Label a = new Label("One Container"); panel.add(a, "One Hdr"); panel.add(new Label("Two Container"), "Two Hdr"); panel.add(new Label("Three Container"), "Three Hdr"); panel.add(new Label("Four Container

GWT uibinder autocorrect off

我是研究僧i 提交于 2019-12-11 02:07:28
问题 im using GWT uibinder method and my html contains a textbox like <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:idmw="urn:import:com.testing.wid.impl"> <g:HTMLPanel> <table align="center" valign="center" height="25%"> <tr><td><g:TextBox ui:field='searchS' /></td></tr> </table> </g:HTMLPanel> How can i TURN OFF autocorrect and autocapitalize for this Textbox?? i tried <g:TextBox ui:field='searchS' autocapitalize="off" autocorrect

CSS class definition doesn't work inside <g:HTML> element

蓝咒 提交于 2019-12-10 13:56:53
问题 Could you guys tell me why css class definition doesn't work in following example ? I'm using GWT 2.4 + Chrome 17. <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <ui:style> div.test { color: red; } </ui:style> <g:HTML> <div class="test">I should be red but I'm not</div> </g:HTML> </ui:UiBinder> 回答1: CSS classes listed in the <ui:style> will be obfuscated, going from test to GKYSKJX (or something similar). Update your div to this:

In GWT 2.0 CssResource, how I can turn off obfuscation for all my css classes?

青春壹個敷衍的年華 提交于 2019-12-09 07:48:42
问题 I have a CssResource where I want to have some of the css classes "mapped" to methods: @ClassName("top-table") String topTable(); But I want to turn off the obfuscation GWT does (while developing at least, for better debugging in firebug, etc). Is there an easy way to achieve this? I know I can use @external in my css file but then I have to define all my css classes like @external .c1, .c2, .c3, etc... Something like @external .* would solve my problem but that doesn't seem to be available

datePicker in GWT

筅森魡賤 提交于 2019-12-08 07:50:57
问题 Hi have Date in a string Format. datevalue= [Tue Mar 06 06:00:00 CET 2012]. in my code i have textBox where value is set. when i click on textbox i see a datepicker . what i want to do is , In a datepicker the date should be highlighted whatever the value is in textbox . and also when i click datePicker the value in the text should be in a same format as [Tue Mar 06 06:00:00 CET 2012]. my code is. private TextBox getTimeLable(String datevalue) { // TODO Auto-generated method stub System.out

GWT 2.4: “An internal compiler exception occurred” in project that uses Hibernate for Bean Validation

故事扮演 提交于 2019-12-08 05:42:23
问题 It's been about 5 hrs since I decided to use JSR 303 Bean Validation in my GWT project and I gotta say I can't even express (politely) how deeply unsatisfied I am with lame documentation on the subject on Google's website. I really hope you guys can help me. I followed this blog post to add client-side bean validation to my project. Unfortunately it worked only once and threw an exception in runtime saying that I need to add Hibernate Validation sources to class path. I fixed that and decided

Modal window with progressbar for long tasks

拈花ヽ惹草 提交于 2019-12-07 11:31:54
问题 In some cases, I want show to user a modal window with a progress bar when the long running query. (For individual UI items, I use the method setEnabled (true/ false) but I want more elegant solution.) For example, in the entry point, until all elements not initialized - public void onModuleLoad() { // initialization of the interface here } And also, for example, when completing the dependent list box (relationship one to many) @UiHandler("listBox") public void onListBoxChange(ChangeEvent