[gwt-contrib] ResourcePrototype forces @Source annotation. How can I force @DoNotEmbed annotation?

2011-05-05 Thread Sky
I have a method that takes a DataResource as a parameter and I want to force all incoming DataResources to have the @DoNotEmbed annotation, just like ResourcePrototype (Which all Resources, such as DataResource, extend) forces the @Source annotation. Can anyone help me understand how to do this?

[gwt-contrib] LayoutPanels problem: UIObject.getOffsetWidth() returns 0

2011-04-16 Thread Sky
Calling getOffsetWidth() on a widget within a LayoutPanel during onModuleLoad() always returns 0. After onModuleLoad() has completed then it returns a meaningful answer. See my code below to reproduce this situation. The first Alert displays a value of 0 while the second Alert displays 1280

[gwt-contrib] Re: LayoutPanels problem: UIObject.getOffsetWidth() returns 0

2011-04-16 Thread Sky
public void run() { Window.alert(Width: + main.getOffsetWidth()); } }; timer.schedule(1); } On Apr 16, 12:52 pm, Sky myonceinalifet...@gmail.com wrote: Calling getOffsetWidth() on a widget

[gwt-contrib] Re: LayoutPanels problem: UIObject.getOffsetWidth() returns 0

2011-04-16 Thread Sky
as I'm done adding the widgets going inside. On Apr 16, 12:52 pm, Sky myonceinalifet...@gmail.com wrote:         public void onModuleLoad() {                 DockLayoutPanel dock = new DockLayoutPanel(Unit.PX);                 SimplePanel west = new SimplePanel();                 final SimplePanel

[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()

2009-10-07 Thread Sky
I get this error when I switch from the GWT compiled from Trunk back to 1.7.1 or any previous versions. I only know two ways to solve it: 1) Open up war\projectname\hosted.html and edit line 16 from var $hostedHtmlVersion=2.0; to var $hostedHtmlVersion=1.6; (which I think

[gwt-contrib] Re: Invalid version number 2.0 passed to external.gwtOnLoad()

2009-10-07 Thread Sky
hosted.html file with the right version to be generated). 3) Touch the newly generated war/MODULE/hosted.html file. 4) Relaunch hosted mode (this should succeed) On Wed, Oct 7, 2009 at 1:15 PM, Sky myonceinalifet...@gmail.com wrote: I get this error when I switch from the GWT compiled from Trunk