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