Re: Problem Updating View Programmatically

2011-09-19 Thread gcr
Thanks for responding.

Thanks in advance for any help.

Since I have posed two questions at once, if it's all the same to
everyone, I'd like to focus on my issue with canvas first.

What's goes wrong when I try to make a Canvas part of a view using
uibinder?

If I code something like this, I see a Canvas with the appropriate
stuff drawn on it.  But (see below)...

public void onModuleLoad() {
SimpleLayoutPanel pnl = new SimpleLayoutPanel();
Canvas cvs = Canvas.createIfSupported();
pnl.add(cvs);
RootLayoutPanel.get().add(pnl);
Context2d ctx = cvs.getContext2d();
int w = cvs.getCoordinateSpaceWidth();
int h = cvs.getCoordinateSpaceHeight();
ctx.setFillStyle("#d53747");
ctx.moveTo(0, 0);
ctx.lineTo(w, h);
ctx.beginPath();
ctx.arc(w/2, h/2, 9, 0, Math.PI * 2.0, true);
ctx.closePath();
ctx.fillText("Yay!!", w/2, h/2 + 20);
ctx.fill();
}

if I code something like this:

(1) Here's the uibinder declaration.





(2)  Here's the corresponding field in the view class:

@UiField
Canvas cvs;

(3)  And of course, Canvas needs this:

@UiFactory public Canvas getCvs() {
return Canvas.createIfSupported();
}

Then do the same drawing, nothing appears on the Canvas.  It remains
blank.  It has size. Nothing is null. No errors are thrown.

Context2d ctx = vw.getCtx();
int w = vw.getCvs().getCoordinateSpaceWidth();
int h = vw.getCvs().getCoordinateSpaceHeight();
ctx.setFillStyle("#d53747");
ctx.beginPath();
ctx.arc(10, 10, 9, 0, Math.PI * 2.0, true);
ctx.closePath();
ctx.fillText("Yay!!", w/2, h/2 + 10);
ctx.fill();


On Sep 19, 3:26 am, Alexandre Dupriez 
wrote:
> You do not need to invalidate or refresh your components to make them
> updated with your last change.
> There must be something wrong with your UI binding indeed. Could you
> please post us a snippet of your xml? Which widget do you use to bing
> the ui?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem Updating View Programmatically

2011-09-18 Thread gcr
All,

I am attempting to do something that must be very common, but I can't
get it to work.  I place either a canvas or a TextBox on the screen
and change it programmatically and my changes don't show up on the
screen.

I am using uibinder.  If I give say, my TextBox an initial value
XXX this value is displayed on the screen when
I run the app.  But if I attempt to change the value by calling
textBox.setText("YYY") from the program.  The display continues to
show the original XXX.  It's as if I need to do some kind of refresh.

A similar thing is happening with Canvas.  I create the Canvas in the
program, add it to a SimpleLayoutPanel, and draw on it--nothing
appears.

All this is consistent throughout my app.  Any data values I declare
in the uibinder file. appear just fine, but any values is set from the
program have no effect.

Clearly, I am doing something wrong, but what?  Do I need to repaint
somehow?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Serialization for RPC Not Working as Expected

2011-01-19 Thread gcr
All,

I am getting some behavior I can't understand wrt a class I am
returning via RPC serialization.

My question is, How can I troubleshoot this?

First a bit of code:

public class Setup implements IsSerializable {

private static final long serialVersionUID = 
private List dispositions;
private List uploads;
private List

GWT eclipse plug manual install?

2009-04-15 Thread gcr

All,

I have looked and I cannot find a link from where I can download GWT
1.6 for a manual install.  (I could also be blind.)  Is there such a
thing, or is it update site or nothing?

I am trying to upgrade to GWT 1.6.  When I attempt to do so using the
update site, It throws an error (see below).  Has anyone seen this
kind of thing before?

I have successfully upgraded two other machines.  It's only this third
box that gives me trouble.  All three machines have eclipse 3.4 on
WinXP.

An error occurred while collecting items to be installed
  Error closing the output stream for
org.eclipse.datatools.sqldevtools.data.feature/
org.eclipse.update.feature/1.6.2.v200810071455-3109oA55V589K5QA5 on
repository file:/C:/Program Files/eclipse-ganymede/.
  Error unzipping C:\DOCUME~1\groberts\LOCALS~1\Temp
\org.eclipse.datatools.sqldevtools.data.feature_1.6.2.v200810071455-3109oA55V589K5QA54838407210649109424.jar:
Invalid zip file format
  Problems downloading artifact:
osgi.bundle,org.eclipse.datatools.sqltools.data.core,
1.1.0.v200901140930.
Exception connecting to
http://download.eclipse.org/datatools/downloads/drops/N_updates/plugins/org.eclipse.datatools.sqltools.data.core_1.1.0.v200901140930.jar.
 
http://download.eclipse.org/datatools/downloads/drops/N_updates/plugins/org.eclipse.datatools.sqltools.data.core_1.1.0.v200901140930.jar
Exception connecting to
http://download.eclipse.org/datatools/downloads/drops/N_updates/plugins/org.eclipse.datatools.sqltools.data.core_1.1.0.v200901140930.jar.
 
http://download.eclipse.org/datatools/downloads/drops/N_updates/plugins/org.eclipse.datatools.sqltools.data.core_1.1.0.v200901140930.jar


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deploying GWT applications on OSGi Equinox

2009-04-08 Thread gcr

Ian,

Have seen the article "Embedding an HTTP server in Equinox"?

If not give it a read and we can continue.  It explains how to do
without war file.

http://www.eclipse.org/equinox/server/http_in_equinox.php

On Apr 8, 2:41 am, lan  wrote:
> Yes I'm absolutely interested.
> I don't understand how you don't use a war file.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deploying GWT applications on OSGi Equinox

2009-04-07 Thread gcr

I too am in the midst of deploying GWT to equinox.  It's working but I
don't use war files.  I put my GWT code into a bundle, which means
using extension points to specify my servlets in lieu of doing so in
web.xml.

If you're interested in discussing this further let me know.

On Apr 7, 12:58 am, lan  wrote:
> Hello
> I've been searching for a way to deploy GWT web applications on OSGi
> Equinox platform, I've followed this 
> bloghttp://blog.springsource.com/2008/11/07/deploying-gwt-applications-in...
> on how to deploy a sample war (StockWatcher) on Spring DM Server, but
> I wan't to do that simply on Equinox. I've tried to do that, I
> installed the war bundle, it was successfully installed and resolved,
> I browse the application, I see my StockWatcher page, but it's
> static,and there is no dynamic refresh on the page (I got the "You've
> done it" message). Seems like the rpc mechanism doesn't work.
> Does someone know how to fix this??
> Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---