ui:image, image within an anchor or a button

2010-04-23 Thread Carlos Aguayo
I'd like to have an image within an anchor or a button tag. I'm using the UiBinder and I need the anchor or button to be a widget so I can use their HasClickHandlers interface. I wanted to use an image widget so I can use an ImageResource, something like this: !DOCTYPE ui:UiBinder SYSTEM

Re: Adding Event Handlers on the body element...

2010-09-09 Thread Carlos Aguayo
You can try something like this: Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { int KEY_F8 = 119; if (keyup.equals(event.getNativeEvent().getType())

Validating ClientBundles ?

2009-12-22 Thread Carlos Aguayo
Hi, After upgrading the Eclipse plugin to GWT 2.0, whenever I import my Eclipse projects, Eclipse crashes. After importing the projects, I see multiple multiple (~12) jobs spawned called Validating ClientBundles, then it either shows a warning saying that it ran out of memory or just closes.

Re: Blank Screen in IE8 but Normal in FF3.5

2010-01-12 Thread Carlos Aguayo
I have the same problem and also for me the x-ua-compatible tag fixed it. I created a project using the gwt eclipse plugin, here's the java file: === import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import

UiBinder and non standard CSS properties.

2010-02-01 Thread Carlos Aguayo
Hi, UiBinder can't seem to take non standard CSS properties. I have the following: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:style .test { -moz-border-radius: 4px; } /ui:style g:HTMLPanel input

Re: Is there a way to mock JSONObject?

2010-02-02 Thread Carlos Aguayo
Not as good or ideal as a mockobject but you could use the GWTTestCase. On Feb 2, 4:19 pm, Kevin Q kevin.jing@gmail.com wrote: Our application consumes JSON web services. We're using JSONParser, returning a JSONObject, and construct domain models from the result JSONObject. I'd like to

FocusPanel with nested focusable elements

2010-11-02 Thread Carlos Aguayo
Hi, If I have something like this: g:FocusPanel ui:field=main g:FlowPanel g:TextBox ui:field=textfield1 / g:TextBox ui:field=textfield2 / /g:FlowPanel /g:FocusPanel Where I have elements that are focusable within a FocusPanel. Whenever I focus/blur on the textboxes, the focus/blur

Value function - Example - Developer's Guide - Client Bundle

2010-12-13 Thread Carlos Aguayo
Could someone provide a more elaborate example on how to use the Value function as described here: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource The documentation has this example: .myDiv { offset-left: value('imageResource.getWidth', 'px'); } However I

Re: Value function - Example - Developer's Guide - Client Bundle

2010-12-13 Thread Carlos Aguayo
'); } On Dec 13, 7:58 pm, Carlos Aguayo carlos.agu...@gmail.com wrote: Could someone provide a more elaborate example on how to use the Value function as described here: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm... The documentation has this example: .myDiv

Re: Value function - Example - Developer's Guide - Client Bundle

2010-12-13 Thread Carlos Aguayo
I had a typo... public interface MyResources extends ClientBundle { @Source(MyCompanyLogo.png) ImageResource myLogo(); @Source(skins.css) CssResource skins(); } Then in skins.css you can have: .myDiv { offset-left: value('myLogo.getWidth', 'px'); } On Dec 13, 8:23 pm, Carlos Aguayo

Re: 2.4 beta and mobilewebapp sample

2011-09-02 Thread Carlos Aguayo
The Missing artifact com.google.gwt:gwt-servlet:jar: 2.4.0:runtime errors go away if you update gwtVersion in pom.xml to this line: gwtVersion2.4.0-rc1/gwtVersion On Jul 19, 1:07 pm, Michel Jonker michel.jon...@e-office.com wrote: Hi, Thanks for the reply. Are you suggesting that I fetch the

Re: GWT Developer Plugin for Firefox 9

2012-02-02 Thread Carlos Aguayo
FF10 is already here so that will mean updating the plugin again. Is this something that can be done by the community? If so, where should we take a look at? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the

Re: User visible urls

2012-02-21 Thread Carlos Aguayo
Hi Thomas, could you share the one that you wrote to use pushState? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pKyIVdEyL4EJ. To post

Re: User visible urls

2012-02-27 Thread Carlos Aguayo
works like a sharm! thanks buddy! On Wednesday, February 22, 2012 5:08:23 AM UTC-5, Thomas Broyer wrote: On Tuesday, February 21, 2012 6:04:55 PM UTC+1, Carlos Aguayo wrote: Hi Thomas, could you share the one that you wrote to use pushState? Thanks! Here's a skeleton implementation

Re: User visible urls

2012-08-29 Thread Carlos Aguayo
in this question. The solution that @Thomas has proposed is really interested. But I don't know exactly how it works. The question is, could you provide me an simple simple example? Or link? Thank you, Adolfo. 2012/2/27 Carlos Aguayo carlos...@gmail.com javascript: works like a sharm! thanks buddy

Re: I/O 2013 - GWT Sessions?

2013-05-19 Thread Carlos Aguayo
Slides for GWT Roadmap for the Future are here: https://docs.google.com/presentation/d/1PfXXegni0gcZQYpX09t0gs2Z9dqST5MmiHc_NoPSluo/edit#slide=id.p18 I couldn't find the youtube video for it. The youtube video for the Demystifying MVP and EventBus in GWT is here:

Firefox in OS X freezes in DevMode.

2013-11-07 Thread Carlos Aguayo
I'm started to have issues when trying to use DevMode with Firefox in OS X and the only thing new is that I upgraded to Mavericks. Here's what I see: I create a GWT sample app (the default one that comes with the Eclipse GWT plugin), I launch dev mode and try to access it with Firefox, as soon

Re: Firefox in OS X freezes in DevMode.

2013-11-07 Thread Carlos Aguayo
It's getting stuck in line 155 in: https://gwt.googlesource.com/gwt-plugins/+/master/common/Socket.cpp On Thursday, November 7, 2013 7:32:28 PM UTC-5, Carlos Aguayo wrote: I'm started to have issues when trying to use DevMode with Firefox in OS X and the only thing new is that I upgraded

Re: Firefox in OS X freezes in DevMode.

2013-11-09 Thread Carlos Aguayo
the usual 'dev mode takes longer to do anything' fun. On Thursday, November 7, 2013 10:59:18 PM UTC-6, Carlos Aguayo wrote: It's getting stuck in line 155 in: https://gwt.googlesource.com/gwt-plugins/+/master/common/Socket.cpp On Thursday, November 7, 2013 7:32:28 PM UTC-5, Carlos Aguayo wrote

Re: Firefox in OS X freezes in DevMode.

2013-11-09 Thread Carlos Aguayo
that you don't load more than once. If you do, your JVM will have two different threads trying to talk to the browser, and it may be difficult to tell which one is the current one, versus the 'memory leak' one. On Saturday, November 9, 2013 11:01:40 AM UTC-6, Carlos Aguayo wrote: Thanks

SuperDevMode

2014-01-19 Thread Carlos Aguayo
Hi, I don't seem to be able to get SuperDevMode to work. I'm following instructions from Brian's slides: https://docs.google.com/presentation/d/1DTWZ_06dQsTPhinIwzHSdoPMndRr92wpZoZWicK97YQ/edit?forcehl=1hl=en#slide=id.g25a114ce1_2056 I can get to normal devmode with ant devmode. But when I do ant

Re: SuperDevMode

2014-01-20 Thread Carlos Aguayo
On compile. Ed On Sunday, January 19, 2014 3:16:32 PM UTC-8, Carlos Aguayo wrote: Hi, I don't seem to be able to get SuperDevMode to work. I'm following instructions from Brian's slides: https://docs.google.com/presentation/d/1DTWZ_06dQsTPhinIwzHSdoPMndRr92wpZoZWicK97YQ/edit?forcehl=1hl=en

Boost performance of Widget creation by using DocumentFragment, Range.createContextualFragment or something else?

2014-03-04 Thread Carlos Aguayo
Hi folks, I work with an app that builds hundreds of widgets and obviously has a performance hit. I'm well aware of performance improvements of the sort of: reduce the number of widgets, use directly html, use cell widgets, etc, however those paths are not helpful for me. I'm just interested