Re: Problem with mouseListener

2008-09-26 Thread jamer

I made it, and it not run ok

public class Campo extends Composite implements MouseListener {
private Button btnCerrar;
private FlexTable tablaPrincipal;
private VerticalPanel vp;
private Image imageCerrar;
private Button btnEditar;
private TextBox txbCampo;
private TextBox txbInfoCampo;
private HTML htmlCampo;
private HTML htmlInfoCampo;
private boolean editable = false;
private String nombreCampo;
private String valorCampo;
Campo(String nombreCampo,String valorCampo){
this.nombreCampo=nombreCampo;
this.valorCampo=valorCampo;
tablaPrincipal = new FlexTable();
imageCerrar = new Image(images/botones/x.png);
imageCerrar.addClickListener(new ClickListener(){
public void onClick(Widget sender){
setVisible(false);
}
});
tablaPrincipal.getFlexCellFormatter().setColSpan(0, 0, 2);
tablaPrincipal.setWidget(0, 0, imageCerrar);
tablaPrincipal.getFlexCellFormatter().setHorizontalAlignment(0, 
0,
HorizontalPanel.ALIGN_RIGHT);
btnEditar = new Button(Editar);
txbCampo = new TextBox();
htmlCampo = new HTML(b+nombreCampo+/b);
htmlInfoCampo = new HTML();
txbInfoCampo = new TextBox();
txbInfoCampo.setText(valorCampo);
tablaPrincipal.setWidget(1, 0, htmlCampo);
tablaPrincipal.setWidget(1, 1, txbInfoCampo);
tablaPrincipal.getFlexCellFormatter().setColSpan(2,0,2);
tablaPrincipal.setWidget(2,0,btnEditar);
tablaPrincipal.getFlexCellFormatter().setHorizontalAlignment(2, 
0,
HorizontalPanel.ALIGN_CENTER);
btnEditar.setStyleName(Meztuls-botonPeque);
txbInfoCampo.setStyleName(Meztuls-editable);
setWidget(tablaPrincipal);

}
public void onMouseDown(Widget sender, int x, int y) {
// TODO Auto-generated method stub

}

public void onMouseEnter(Widget sender) {
imageCerrar.setVisible(true);
}

public void onMouseLeave(Widget sender) {

imageCerrar.setVisible(false);

}

public void onMouseMove(Widget sender, int x, int y) {
// TODO Auto-generated method stub

}

public void onMouseUp(Widget sender, int x, int y) {
// TODO Auto-generated method stub

}

}

On 25 sep, 15:57, walden [EMAIL PROTECTED] wrote:
 What kind of widget?

 If you want to make a composite, you might use a FocusPanel as the
 outer container.  FocusPanel sources click, mouse and mouse wheel
 events, so you can add your listeners to that, and events from inner
 elements will bubble up.

 If you just want to instrument some arbitrary Widget with mouse
 events, then extend the Widget, sink the appropriate events when a
 listener gets attached (late-bound event sinking is the model to
 follow now), and override onBrowserEvent to look for and handle the
 new events.

 Walden

 On Sep 25, 7:54 am,jamer[EMAIL PROTECTED] wrote:

  Hi
  I want create a widget whith a mouselistener event, and it is not a
  extends to DialogBox or Image
  How i can?

  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SEO for web toolkit

2008-09-26 Thread MN

no optimization is possible, because all things are in a javascript.
so goolge search dont find any text.


only possible solution:

place all your text you use in divs at the hosting-html page. and
later load the values from this divs instead from server: its faster
than requesting from server.




On 22 Sep., 00:11, flockton [EMAIL PROTECTED] wrote:
 I would like to know, how I can optimize my site programmed with GWT?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT application and Google AppEngine

2008-09-26 Thread MN

i know this page uses gwt and GAE
http://greatgrocerylist.appspot.com/

maybe you can ask daniel:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/54e22eb1dc7cbbd1/


On 22 Sep., 15:12, Arthur Kalmenson [EMAIL PROTECTED] wrote:
 Hi Sri,

 It looks like the heap is running out of memory during complication.
 You need to increase the heap size with some JVM arguments.  -
 XX:PermSize=64M will set the heap size to 64MB and -
 XX:MaxPermSize=256M will set the maximum heap size to 256MB. Hope
 that helps.

 Regards,
 Arthur Kalmenson

 On Sep 20, 1:27 am, sri [EMAIL PROTECTED] wrote:

  hi,

  I tried to execute Pgr-example provided in the link. But it doesn't
  execute properly using ant.

  This is the error I got while trying to compile.

  C:\ant\PGRant -buildfile build.xml run
  Buildfile: build.xml

  clean:

  build:

  gwt-compile:
       [java] Exception in thread main java.lang.OutOfMemoryError:
  Java heap spa
  ce
       [java]     at java.util.Arrays.copyOf(Arrays.java:2760)
       [java]     at java.util.Arrays.copyOf(Arrays.java:2734)
       [java]     at java.util.ArrayList.ensureCapacity(ArrayList.java:
  167)
       [java]     at java.util.ArrayList.add(ArrayList.java:351)
       [java]     at java.util.regex.Pattern.split(Pattern.java:1003)
       [java]     at java.util.regex.Pattern.split(Pattern.java:1059)
       [java]     at
  com.google.gwt.dev.javac.TypeOracleMediator.parseMetaDataTags
  (TypeOracleMediator.java:172)
       [java]     at
  com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod(Typ
  eOracleMediator.java:1031)
       [java]     at
  com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods(Ty
  peOracleMediator.java:1044)
       [java]     at
  com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclar
  ation(TypeOracleMediator.java:1434)
       [java]     at
  com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracl
  eMediator.java:382)
       [java]     at
  com.google.gwt.dev.javac.CompilationState.compile(Compilation
  State.java:102)
       [java]     at
  com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327)
       [java]     at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
  564)
       [java]     at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
  554)
       [java]     at
  com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)

  BUILD FAILED
  C:\ant\PGR\build.xml:16: The following error occurred while executing
  this line:

  C:\ant\PGR\build.xml:40: Java returned: 1

  Total time: 1 minute 18 seconds

  On Sep 19, 11:30 pm, Jeremiah Elliott [EMAIL PROTECTED] wrote:

   have you taken a look at this?http://code.google.com/p/python-gwt-rpc/

   On Fri, Sep 19, 2008 at 5:34 AM, ajay jetti [EMAIL PROTECTED]wrote:

Hi Sri
Even im facing the same problem
Please sombody post- Hide quoted text -

   - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use GWT-EXT in Mozila

2008-09-26 Thread MN

 how to use List ?

1) point your browser to this: http://gwt-ext.com/forum/index.php
2) register there
3) post your problem there


there exists also a http://groups.google.com/group/gwt-ext group but
this is not so busy as the forum of gwt-ext.com

On 24 Sep., 14:15, ram sunder [EMAIL PROTECTED] wrote:
 HI
 Thank u for u r reply.

 I did'nt use GWT-EXt List?

 how to use List ?

 On Wed, Sep 24, 2008 at 5:12 PM, walden [EMAIL PROTECTED] wrote:

  Did you try the GWT-EXT list?

  On Sep 24, 2:51 am, rsund [EMAIL PROTECTED] wrote:
   Hi

    I  Change Browser internet Explorer to Mozilla Firefox in My GWT -
   Ext Application.

   i used Form panel in  GWT-Ext in Internet Explorer.
   Now i change Browser Setting to Mozilla.

   i have Problem in

   1) Alignmnet in UI is changed.(Particulary in Dockpanel)
   2 )i used Multiple Column Layout in Previous Browser Now it will not
   appear on Multiple column.

   i need how to rectify this problem.

   i need Quick Reply.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-26 Thread Michael Vogt

Hi.

On Fri, Sep 26, 2008 at 07:40, reechard [EMAIL PROTECTED] wrote:
 Yes no yes no yes no now.

Same for me.

When I started to work with GWT at the beginning of this year, I
looked at version 1.4 and the trunk of 1.5. It was very quickly clear
to me, that I don't bother to start with 1.4, since 1.5 looked so much
improved.

I work on the trunk since then, and it is great to see all the
enhancements coming in every day. The trunk broke for me only once.
Filed a bug, which was resolved quickly.


Greetings,
Michael

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can choose IDE

2008-09-26 Thread MN

i think it depends of your personal taste...

eclipse, netbeans all have gwt support ...

just try it out and use what you like more ...

On 25 Sep., 19:30, rov.ciso [EMAIL PROTECTED] wrote:
 Good day. I develop my project with GWT and JBoss application server.
 What IDE(Eclipse, NetBeans and etc.) can better choose? I want fully
 support GWT compiling and JBoss application in one project. 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GXT vs GWT-EXT ?

2008-09-26 Thread MN

i just using gwt-ext.

its good to know that a later switch to gxt (if required) is not too
difficult...

On 25 Sep., 06:24, wt [EMAIL PROTECTED] wrote:
 I just gave up on gwt-ext and switched to gxt. I was tweaking gwt-
 ext's showcase example, the one with form-grid binding, and I want to
 add an update button to update the changes made in the form back into
 the grid. I followed the api doc and searched through their forum, but
 it just didn't work; to make it worse, there is no way for me to debug
 this, because in gwt-ext, almost everything is just a Java class
 wrapping a JavaScript object! It's probably the most painful thing for
 the Java programmers that they can't debug a program. As for actually
 using the APIs, gwt-ext and gxt are pretty much the same, both follow
 ExtJS's API, so it doesn't take much time to switch from one to the
 other.

 License: although gwt-ext is open source, you still need to pay for
 the gwt-plus package, which is necessary if your client communicates
 with the server through GWT RPC and costs $199, not much a difference
 from a gxt single developer license.

 On Sep 2, 8:06 am, MN [EMAIL PROTECTED] wrote:

  GXTand GWT-EXT looks very similar.gxtis in native gwt and gwt-ext
  is a js wrapper for extjs.

  but what is better?

  can you please write your experiences and some main differences with
  this 2 libraries? (more on the programming focus than on licence
  issues)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Bug? with GWT Google Maps Api with RightClick

2008-09-26 Thread Eric Ayers
Thanks for reporting this.  Filed as issue 179
http://code.google.com/p/gwt-google-apis/issues/detail?id=179
Check the issue tracker - I've got a preliminary patch for the problem,
applied against the maps 1.0 release branch in subversion.  Before
finalizing it, I really need to add more unit tests to make sure the problem
doesn't exist for the other types.

-Eric.

On Thu, Sep 25, 2008 at 11:56 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 Hi there

 I tested the new GWT Google Maps Api (RC1) and I ran into a problem, I
 can't solve. I display a Map (MapWidget) and I add a LeftClickListener
 and a RightClickListener on this Widget.
 The LeftClickListener works fine, the RightClickListener throws a
 invalid 'instanceof' operand $wnd.GGeoXmlOverlay Message in Firebug.
 The RightClick doesn't work in Firefox, IE, Safari or Chrome.

 The (generated) JavaScript-Code that doesn't seem to work is this:
 function sj (a) {
  if(a instanceof $wnd.GMarker)
  {return gj(new fj(),a)}
  else if(a instanceof $wnd.GPolyline)
  {return ak(new Fj(),a)}
  else if(a instanceof $wnd.GPolygon)
  {return Cj(new Bj(),a)}
  else if(a instanceof $wnd.GGroundOverlay)
  {return cj(new bj(),a)}
  else if(a instanceof $wnd.GGeoXmlOverlay)
  {return Fi(new Ei(),a)}
  else if(a instanceof $wnd.GTileLayerOverlay)
  {return ek(new dk(),a)}
  else if(a instanceof $wnd.GTrafficOverlay)
  {return ik(new hk(),a)}
  else if(vj(a)){throw new hp()}return lj(new kj(),a)}
 19

 The Problem is, there is no GGeoXmlOverlay-Object in my Dom-Tree,
 neither in the Api description at
 http://code.google.com/apis/maps/documentation/reference.html
 But there is a GGeoXml Object.

 Cya all


 Heres my Sample Code, the Rest is copied from the samples provided
 with the installation:

 package org.yournamehere.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.maps.client.MapWidget;
 import com.google.gwt.maps.client.event.MapClickHandler;
 import com.google.gwt.maps.client.event.MapRightClickHandler;
 import com.google.gwt.maps.client.geom.LatLng;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.RootPanel;

 public class MainEntryPoint implements EntryPoint {

private MapWidget panel = new MapWidget();

public MainEntryPoint() {
}

public void onModuleLoad() {
panel.setCenter(LatLng.newInstance(49.01, 8.4), 13);
panel.setSize(100%, 100%);
panel.addMapClickHandler(new MapClickHandler() {

public void onClick(MapClickEvent event) {
Window.alert(test1);
}
});
panel.addMapRightClickHandler(new MapRightClickHandler() {

public void onRightClick(MapRightClickEvent event) {
Window.alert(test2);
}
});

RootPanel.get().add(panel);
}

 }

 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt-maps API - Custom Projection boolean error

2008-09-26 Thread Eric Ayers
Tim,
I couldn't find anything obviously wrong in your projection implementation,
so I created an issue for this problem:

http://code.google.com/p/gwt-google-apis/issues/detail?id=180

Let me know if you have made any progress on the issue - I'll keep looking
at it today.

-Eric.

On Thu, Sep 25, 2008 at 6:45 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 OK, I've copied your code into a project and I see the same problem.  The
 next step to debug this would be to set break points in each of the
 customized methods for NorthmoorMapProjection and step through in hosted
 mode.


 On Thu, Sep 25, 2008 at 12:47 AM, Tim White [EMAIL PROTECTED] wrote:


 Hi -

  When defining a custom Projection using GWT 1.5.2 and gwt-maps-1.0
 RC1, I can't seem to get around this:

  com.google.gwt.dev.shell.HostedModeException: Expected primitive type
 boolean; actual value was undefined
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
at

 com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
 57)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
 119)
at
 com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:
 155)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
 294)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
 194)
at
 org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
 117)
at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
at
 org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:
 64)
at
 org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
 493)
at
 org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
 417)
at

 com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:
 67)
at
 com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:
 152)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 447)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
 248)
at

 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
 107)
at
 com.google.gwt.maps.client.impl.__MapImplImpl.checkResize(transient
 source for com.google.gwt.maps.client.impl.__MapImplImpl)
at com.google.gwt.maps.client.MapWidget.checkResize(MapWidget.java:
 729)
at
 com.google.gwt.maps.client.MapWidget.onAttach(MapWidget.java:1507)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
at
 com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:
 86)
at
 com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:
 80)
at

 com.cyface.northmoor.map.client.NorthmoorMap.onModuleLoad(NorthmoorMap.java:
 64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320)
at

 com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
 329)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
 $300(BrowserWidgetIE6.java:37)
at

 com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
 76)
at

 com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
 139)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
 294)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
 194)
at
 org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
 117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
 Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at
 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

 My projection class:

 public class NorthmoorMapProjection extends Projection {
int imageDimension = 65536;
int maxZoom = 5;
int tileSize = 256;
Point[] pixelOrigin = new Point[maxZoom];
int[] pixelsPerLonDegree = new int[maxZoom];
int[] tileBounds = new int[maxZoom];
boolean isWrapped = false;

public NorthmoorMapProjection() {
int currentTileSize = this.tileSize;
int currentTileBounds = 1;
for 

Re: How can choose IDE

2008-09-26 Thread gregor

Hi,

You main choices are Eclipse (free, official GWT dev environment so
tool plug-ins etc available direct from Google), Netbeans (free) and
Intellij IDEA (some hundred $ depending on who you are, student,
corporate, personal etc). Intellij is popular despite the fact you
must pay for it, so this is an indication of how good it is since
nobody would pay for it unless they felt it has an edge over Eclipse.
You can always download a trial version of it for a month at a time.
Both Eclipse and Intellij have good GWT support. I'm not sure about
netbeans because I've personally never used it.

In your situation where you are using JBoss the key is if you are
using EJB's/JMS etc or not. If not (i.e. you are just using
servlets) , then there is no difference between JBoss and Tomcat so
you can develop and debug your entire application in hosted mode as
normal and then deploy it to JBoss as a WAR file.

However if you are using EJB or other Java EE resources other than
servlets, GWT hosted mode won't work so easily because you can't run
EJB's in Tomcat (which is what GWT hosted mode is based on). What you
can do is run hosted mode with the -noserver switch so that the GWT
application is communicating with your JBoss server rather than the
inbuilt Tomcat instance as it normally does, although there is an
alternative to this, see below. This doesn't mean you have to run two
projects, but it does mean you have to do some set up work to get it
all to work seamlessly and this can make a difference on which IDE is
most useful to you. You need to ideally:

1) Use an Ant script that builds the server side part of the
architecture (EJB's etc) and deploys it on JBoss for ongoing
development/debugging as well as building the whole app into an EAR
for testing/live running. So Ant integration in your IDE is extra
important as you use it all the time.
2) You need to set up your JBoss server for remote debugging together
with GWT in hosted mode to debug the whole stack in real time from
your IDE. You can do this easily in Intellij, but you should check how
easy this is to do with Eclipse or Netbeans before making a decision.

I would recommend you download all three products and set up a simple
test project consisting of a simple GWT client, an RPC servlet and say
a session EJB. Make an Ant script as I described above. Then go
through the process of setting this up in each IDE so that,
critically, you can debug both the GWT client code and the session EJB
code at the same time. That should tell you which one suits you best.

Also, you have choices in how you handle your GWT RPC servlets in this
environment during the development cycle. You can run hosted mode as
normal (i.e. no -noserver switch) in which case you can either use
stubs instead of your EJB resources whist developing client code, or
you can abstract getting handles to your EJBs to a service locator
class that first tries for a local interface (the one you'll want for
live running on JBoss), and if it doesn't find one goes for a remote
interface to your JBoss server. Alternatively you can run your RPC
servlets only on the JBoss server and always run GWT hosted mode with
the -noserver switch. The optimum set up between these approaches
depends on your application and to some extent on taste, but obviously
you want your IDE to make it easy to work with your chosen approach to
this.

Finally if you are tempted by Instantiations GWT Designer (for some
people GUI builder is important consideration) I believe it is only
available for Eclipse.

regards
gregor


On Sep 26, 9:28 am, MN [EMAIL PROTECTED] wrote:
 i think it depends of your personal taste...

 eclipse, netbeans all have gwt support ...

 just try it out and use what you like more ...

 On 25 Sep., 19:30, rov.ciso [EMAIL PROTECTED] wrote:

  Good day. I develop my project with GWT and JBoss application server.
  What IDE(Eclipse, NetBeans and etc.) can better choose? I want fully
  support GWT compiling and JBoss application in one project. 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I18n in GWT1.5 sufficiently mature?

2008-09-26 Thread Lothar Kimmeringer

jbdhl schrieb:
 With release 1.5, GWT now supports plural forms. Hurray! But the
 documentation lacks info on how  to handle translations in a common
 development work flow. We are considering moving a fairly large
 application, currently localized using gettext, to GWT but we need to
 make sure the translation-workflow with GWT-Messages can be as
 efficient as our current one.

There is no workflow for the development of language-property-
files. The GWT-compiler takes the project-GWT.xml-file, looks
for the Locales that the application to be created should support
and creates one HTML-file for every Locale containing the localized
texts that were inside the property-file before.

In other words, if you change something in the property-file,
you have to recreate the project.

In addition to that, there are no tools that help you manage
these property-files and nobody will miss that very much by
the way, because if you were developing in Java before, you
use the tools you already have for the managing of property-
files used for the ResourceBundle-framework of Java.

So if you need specialized tools for the creation of property-
files and the corresponding interface-classes you need additional
packages that might be offered by third parties or you check out
if gettext can handle Java-properties-files that are encoded
in UTF-8.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I18n in GWT1.5 sufficiently mature?

2008-09-26 Thread jbdhl

 There is no workflow for the development of language-property-
 files.

OK? So what you are saying is that if I have developed version 2.7 of
my application and version 2.8 adds some messages and deletes others
then it's just tuff luck with the translations for all the messages
that have not been altered? In other words: the translators have to
start all over, from scratch, re-translating the whole application. Is
that really true?!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTCanvas problems

2008-09-26 Thread [EMAIL PROTECTED]

no, I never got any error messages, I checked the logs in all the
browsers

On Sep 23, 7:44 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 First i need to know if you go an error message?

 Xavier A. Mathews
 Student/Developer/Web-Master
 Google Group Client Based Tech Support
 Hazel Crest Illinois
 [EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 On Mon, Sep 22, 2008 at 12:57 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED]wrote:



  Hello, I'm a new to gwt.  I'm having a problem with the gwtCanvas
  widget.  It seems that arcs are showing up in my google devopment
  shell, but not in my browser of choice(chrome, firefox, ie).  I'm
  trying to find out if this is a known issue and if there is a solution
  that i'm overlooking.   Any suggestions would be greatly appreciated!
  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with mouseListener

2008-09-26 Thread Schimki86
I Hope I understood correectly... You want to hide an Image, which is part
of your new Widget, if the mouse leaves that widget? Where did you register
the MouseListener? You have to add the MouseListener (this) to your
widget. I dont know, but it looks like

this.addMouseListener(this);

I hope, it was helpful! ;)

2008/9/26 jamer [EMAIL PROTECTED]


 I made it, and it not run ok

 public class Campo extends Composite implements MouseListener {
private Button btnCerrar;
private FlexTable tablaPrincipal;
private VerticalPanel vp;
private Image imageCerrar;
private Button btnEditar;
private TextBox txbCampo;
private TextBox txbInfoCampo;
private HTML htmlCampo;
private HTML htmlInfoCampo;
private boolean editable = false;
private String nombreCampo;
private String valorCampo;
Campo(String nombreCampo,String valorCampo){
this.nombreCampo=nombreCampo;
this.valorCampo=valorCampo;
tablaPrincipal = new FlexTable();
imageCerrar = new Image(images/botones/x.png);
imageCerrar.addClickListener(new ClickListener(){
public void onClick(Widget sender){
setVisible(false);
}
});
tablaPrincipal.getFlexCellFormatter().setColSpan(0, 0, 2);
tablaPrincipal.setWidget(0, 0, imageCerrar);

  tablaPrincipal.getFlexCellFormatter().setHorizontalAlignment(0, 0,
 HorizontalPanel.ALIGN_RIGHT);
btnEditar = new Button(Editar);
txbCampo = new TextBox();
htmlCampo = new HTML(b+nombreCampo+/b);
htmlInfoCampo = new HTML();
txbInfoCampo = new TextBox();
txbInfoCampo.setText(valorCampo);
tablaPrincipal.setWidget(1, 0, htmlCampo);
tablaPrincipal.setWidget(1, 1, txbInfoCampo);
tablaPrincipal.getFlexCellFormatter().setColSpan(2,0,2);
tablaPrincipal.setWidget(2,0,btnEditar);

  tablaPrincipal.getFlexCellFormatter().setHorizontalAlignment(2, 0,
 HorizontalPanel.ALIGN_CENTER);
btnEditar.setStyleName(Meztuls-botonPeque);
txbInfoCampo.setStyleName(Meztuls-editable);
setWidget(tablaPrincipal);

}
public void onMouseDown(Widget sender, int x, int y) {
// TODO Auto-generated method stub

}

public void onMouseEnter(Widget sender) {
imageCerrar.setVisible(true);
}

public void onMouseLeave(Widget sender) {

imageCerrar.setVisible(false);

}

public void onMouseMove(Widget sender, int x, int y) {
// TODO Auto-generated method stub

}

public void onMouseUp(Widget sender, int x, int y) {
// TODO Auto-generated method stub

}

 }

 On 25 sep, 15:57, walden [EMAIL PROTECTED] wrote:
  What kind of widget?
 
  If you want to make a composite, you might use a FocusPanel as the
  outer container.  FocusPanel sources click, mouse and mouse wheel
  events, so you can add your listeners to that, and events from inner
  elements will bubble up.
 
  If you just want to instrument some arbitrary Widget with mouse
  events, then extend the Widget, sink the appropriate events when a
  listener gets attached (late-bound event sinking is the model to
  follow now), and override onBrowserEvent to look for and handle the
  new events.
 
  Walden
 
  On Sep 25, 7:54 am,jamer[EMAIL PROTECTED] wrote:
 
   Hi
   I want create a widget whith a mouselistener event, and it is not a
   extends to DialogBox or Image
   How i can?
 
   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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Operator OR || does not work

2008-09-26 Thread Shi

Hey, some of you know why GWT applications do not recognize the
operator || (OR) , still the END   works ?
For example:

I want that if the form is not entirely completed, is not written
anything in the database, but the IF does not work why the operator ||
does not work
fName,fLastName and email are TextField
---
regConfirmButton = new Button(REGISTRATION);
regConfirmButton.addListener(new ButtonListenerAdapter(){
public void onClick(Button button, EventObject e){
if ( ( fName.equals() ) ||  ( 
fLastName.equals() ) ||
(email.equals()) ) {
MessageBox.alert(Form not completed);}
else

loginService.createProgrammer(fName.getValueAsString(),
fLastName.getValueAsString(), email.getValueAsString(), callback);
}}});

---
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Operator OR || does not work

2008-09-26 Thread Lothar Kimmeringer

Shi schrieb:
   if ( ( fName.equals() ) ||  ( 
 fLastName.equals() ) ||
 (email.equals()) ) {

If fName, fLastName and email are TextBox or something similar,
you have to use getText() to get the String. Otherwise you
compare a Widget with a String that will always return false.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



IE Displays Web Mode But Not Firefox

2008-09-26 Thread jcmorris

Hi All,
I have a perplexing problem.  I just rolled up my app and deployed to
Tomcat 6.0 on Windows XP.

In Internet Explorer 6.0.29 , my application URL

http://localhost:8080/Sinfers1.0/edu.unis.sinfers.Main/Main.html

displays the main module just as it appears in hosted mode.  However,
the same URL in Firefox 3.0.2 produces a blank page.  When I view
source, the HTML is the same in both browsers.  Firefox list a bunch
of CSS warnings, but no errors.  There are no Javascript errors in
it's script error console either.

Firefox just isn't rendering it.

Are there any suggestions as to what would cause this???

Thanks!

-Jason
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Operator OR || does not work

2008-09-26 Thread Shi

It work whit that review:

if ( ( fName.getValueAsString.equals() ) ||
( fLastName.getValueAsString.equals() ) ||
  (email.getValueAsString.equals()) ) {
..

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE Displays Web Mode But Not Firefox

2008-09-26 Thread Ian Bambury
One thing to try is to put borders on things - either in the css (3px dotted
red is good since I'd hope you don't use that in production, so it's easy to
search for and find in the css) or with setBorder(10)  (something thick so
it shows up)

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT+JEE+jBoss

2008-09-26 Thread rov.ciso

Thanks. What operation system is better to develop java web project
with GWT and JBoss( Windows or Linux)?

On 25 сент, 22:42, mbracken [EMAIL PROTECTED] wrote:
 It's not Eclipse, it's the GWT Compiler that takes some time,
 regardless of the IDE.   Search around the forum and you'll find ways
 to cut down the time during development.   Look at setting the
 user.agent in your *.gwt.xml file.

 On Sep 25, 1:36 pm, rov.ciso [EMAIL PROTECTED] wrote:

  But I think that Eclipse with GWT and JBoss is very slow develop
  solution. For example, compiling time is near 2 min.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Subclassing the gwt-maps Marker

2008-09-26 Thread Alberto Núñez

Well, now that the RC of gwt-maps with the new API is out, it's time
for me to ask again (http://groups.google.com/group/Google-Web-Toolkit/
browse_thread/thread/c2c12a9b5b297f7a/fa8d113d1e00a4b5) for an issue I
have been struggling with for some time. Yesterday I had the
opportunity to ask Sumit Chandel about that in Madrid's GDD, and it
seems it's a kind of tricky problem.

I am trying to use the LabeledMarker library (JavaScript, not GWT)
with gwt-maps. That library provides a subclass of Marker,
LabeledMarker, and a subclass of MarkerOptions, LabeledMarkerOptions.
In order to use the library, the first approach I took was to modify
the gwt-maps source code so that the Marker class is always
instantiated as a LabeledMarker object (http://groups.google.com/group/
Google-Web-Toolkit/browse_thread/thread/
9f618c768dd6d126/1edaaf5c91f9aa9d). The obvious disadvantage of this
is that I have to patch the code everytime the gwt-maps library gets a
new update.

These are the guilties that take a role in this programming soap
opera:

- The MarkerImpl interface, that extends JSFlyweightWrapper. It's the
wrapper of the original GMarker, that uses JSIO.
- The Marker class, which extends ConcreteOverlay. Uses MarkerImpl in
its constructor to create the JavaScript object.
- The MarkerOptions class, extends JavaScriptObject, declared final
and written using JSNI. Passed as an argument to the Marker
constructor.

Therefore:

- MarkerOptions cannot be subclassed because its final.
- A subclass of Marker would need a subclass of MarkerImpl that
pointed to the LabeledMarker JavaScript class. But that cannot be made
as the constructor of the Marker subclass is forced to call the Marker
constructor, that uses MarkerImpl. Is then any way to make the Marker
subclass call use a MarkerImpl subclass in its constructor?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Thanks to Google Moderator now give vote and give your opinion

2008-09-26 Thread Luciano Broussal

Hi all,

Google Moderator allow to ask the world by short question.
I've open a serie of questions about GWT and its world.

http://moderator.appspot.com/#e%253Dagltb2RlcmF0b3JyDQsSBlNlcmllcxiXXww

Vote and ask your own questions.

Cheers.

Luciano
--
http://www.gwtwindowmanager.org
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT+JEE+jBoss

2008-09-26 Thread gregor

Yes, also if you are using e.g. EJB's on your JBoss server, then you
can have a separate Ant task that compiles and deploys just the server
code to JBoss. That means that you don't have to wait for the GWT
compiler to grind through the java/javascript translation every time
you want to edit and redeploy e.g. EJB code during development cycle.

On Sep 25, 7:42 pm, mbracken [EMAIL PROTECTED] wrote:
 It's not Eclipse, it's the GWT Compiler that takes some time,
 regardless of the IDE.   Search around the forum and you'll find ways
 to cut down the time during development.   Look at setting the
 user.agent in your *.gwt.xml file.

 On Sep 25, 1:36 pm, rov.ciso [EMAIL PROTECTED] wrote:

  But I think that Eclipse with GWT and JBoss is very slow develop
  solution. For example, compiling time is near 2 min.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I18n in GWT1.5 sufficiently mature?

2008-09-26 Thread jbdhl

So the only way to keep the translated property files in sync with the
property file for the default language is to use diff? But that
doesn't really solve the problem as the property-files in e.g. Italian
and the default language, say English, are completely different by
nature.

1) How would you ensure that the Italian property file has exactly the
same properties (messages) as the English one using diff? Some kind of
combination of the unix cut command combined with diff?

2) How would you ensure that messages that are only modified (not
added nor removed) in the English property file are also updated in
the Italian version. In that case the properties indeed exists in both
files. Notice that there might be plenty of repository-commits between
each upgrade of the Italian translation as the Italian translator is
only hired, say once a month.

In other words: How should we provide the translator with a list of
messages he should addremove and which messages that he should update
according to the modifications in their corresponding English
versions? (In gettext a merge-script keeps track of all this
automatically and in that way, all the translator needs to know is
written in the gettext-equivalent to the property file)

Thanks for your answers!

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and Eclipse problems

2008-09-26 Thread mrzeringue

I ran into this same issue yesterday when I started looking at GWT.  I
figured why mine did not work in Eclipse but did using the -
shell.cmd.  In the tutorial it tells you to browse to the StockWatcher
folder in between running the projectCreator and the
applicationCreator scripts. This, apparently, is not correct.

I noticed that their screen shots of the package explorer had a
different tree setup than mine, so I delete everything and started
over, this time running the applicationCreator script from the same
directory that I ran the projectCreator.  When I imported the project
into eclipse I could run the project from inside eclipse with no
problem.

Hope this helps.

On Sep 2, 11:51 am, ALF [EMAIL PROTECTED] wrote:
 Am I the only one having problems with running GWT in Eclipse?  I have
 gone through the step-by-step walk-through (projectCreator,
 applicationCreator, and Eclipse import) for the StockWatcher sample
 but it simply will not run within Eclipse.

 C:\dev\workspace\StockWatcherprojectCreator -eclipse StockWatcher -
 out StockWatcher
 C:\dev\workspace\StockWatcherapplicationCreator -eclipse StockWatcher
 -out StockWatcher
 com.google.gwt.sample.stockwatcher.client.StockWatcher

 When I run StockWatcher I get classpath problems (it can't find the
 gwt.xml file).  I noticed that the package names begin with 'src'
 rather than 'com'.  I refactored the package names and the classpath
 problem to the gwt.xml file went away but a new problem surfaced.  Now
 I get an IE popup stating that it failed to load module
 com.google.gwt.sample.stockwatcher.StockWatcher.  The DevShell says
 it's unable to find type '...StockWatcher'.

 Am I missing a step somewhere?  I have tried this on Windows Vista
 running Ganymede and on Windows XP running Europa with the same
 problems.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I18n in GWT1.5 sufficiently mature?

2008-09-26 Thread Paul Robinson


 In other words: How should we provide the translator with a list of
 messages he should addremove and which messages that he should update
 according to the modifications in their corresponding English
 versions? (In gettext a merge-script keeps track of all this
 automatically and in that way, all the translator needs to know is
 written in the gettext-equivalent to the property file)

   
Do a diff between the English version when the translation was last done
and the current English version. That will show you which properties
have been added, removed or changed.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I18n in GWT1.5 sufficiently mature?

2008-09-26 Thread Isaac Truett

On Fri, Sep 26, 2008 at 10:20 AM, jbdhl [EMAIL PROTECTED] wrote:

 So the only way to keep the translated property files in sync with the
 property file for the default language is to use diff? But that
 doesn't really solve the problem as the property-files in e.g. Italian
 and the default language, say English, are completely different by
 nature.

 1) How would you ensure that the Italian property file has exactly the
 same properties (messages) as the English one using diff? Some kind of
 combination of the unix cut command combined with diff?


That would work, yes. And the GWT compiler will tell you when it finds
a missing property.


 2) How would you ensure that messages that are only modified (not
 added nor removed) in the English property file are also updated in
 the Italian version. In that case the properties indeed exists in both
 files. Notice that there might be plenty of repository-commits between
 each upgrade of the Italian translation as the Italian translator is
 only hired, say once a month.


1. Diff the English versions to find modified properties.
2. Diff the Italian versions to find modified properties.
3. Diff the diffs.

Establishing a baseline for each language should be part of your
configuration management process. It doesn't matter how many commits
any file has, you should always be able to determine that English
version X corresponds to Italian version Y.


 In other words: How should we provide the translator with a list of
 messages he should addremove and which messages that he should update
 according to the modifications in their corresponding English
 versions? (In gettext a merge-script keeps track of all this
 automatically and in that way, all the translator needs to know is
 written in the gettext-equivalent to the property file)

 Thanks for your answers!

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I18n in GWT1.5 sufficiently mature?

2008-09-26 Thread Lothar Kimmeringer

Isaac Truett schrieb:
 On Fri, Sep 26, 2008 at 10:20 AM, jbdhl [EMAIL PROTECTED] wrote:
 So the only way to keep the translated property files in sync with the
 property file for the default language is to use diff? But that
 doesn't really solve the problem as the property-files in e.g. Italian
 and the default language, say English, are completely different by
 nature.

 1) How would you ensure that the Italian property file has exactly the
 same properties (messages) as the English one using diff? Some kind of
 combination of the unix cut command combined with diff?

 
 That would work, yes. And the GWT compiler will tell you when it finds
 a missing property.

Is the GWT-compiler using ResourceBundle to read in the property-
files (according to the docs it looks like that). With Java 1.6
you can exchange the ResourceBundle being used for retrieving
the Bundle-Classes, so maybe
http://www.gnu.org/software/autoconf/manual/gettext/Java.html
might work for hin as well.

But how that and the new feature of plurals in GWT 1.5 fit
together, I don't know.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Opening and Loading a GWT Module from another module

2008-09-26 Thread Sumit Chandel

Hi Xavier,

@Ian: A big thanks for chiming in on this thread with some helpful
guidance for our new friend in the Groups.

As Ian mentioned, you are more than welcome to navigate the Groups,
give GWT a try and learn as you go. The more you work with it, the
more you'll know, and soon it will help you make great contributions
on the forum threads.

For the time being, however, posts like the ones Ian mentioned are not
very helpful and don't advance the topic or help solve specific
problems for the developers who are posting up on the group. Sit back
and enjoy the ride, GWT is a relatively vast stack of technology that
takes some time to get used to, especially if you're just getting into
Ajax application development.

One thing I wanted to mention is that foul language or personal
insults will not be tolerated on the group. We would like to keep a
friendly, professional and helpful environment in the groups, as
discussed in the group charter, so please steer clear of vulgarities
and rude comments.

Group Charter:
http://groups.google.com/group/Google-Web-Toolkit/web/gwt-discussion-group-charter

Alright, with that out of the way, welcome to the GWT developer forum!

Cheers,
-Sumit Chandel

On Thu, Sep 25, 2008 at 10:39 PM,  [EMAIL PROTECTED] wrote:

 WOW thanks i will keep that in mind your like better than my
 teacher.he is a stick in the mud.

 On 9/25/08, Ian Bambury [EMAIL PROTECTED] wrote:
 It won't take long to get the experience you need to be able to help people
 provided you are using GWT and learning as you go.

 You will learn as you progress, and after a week, you will be a week ahead
 of those who are just starting. After 10 days, you will be 900% more
 experienced than someone on their first day :-)

 There's a 'getting started' series of emails available from my site if that
 interests you, and I'll always answer any questions you have as you go
 along. It's free!

 Ian

 http://examples.roughian.com


 2008/9/25 Xavier Mathews [EMAIL PROTECTED]

  This is harder then API at least over there i know what they are talking
 about lol!

 Xavier A. Mathews
 Student/Developer/Web-Master
 GG Client Based Tech Support
 Hazel Crest Illinois
 [EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.





   On Thu, Sep 25, 2008 at 12:07 PM, Xavier Mathews [EMAIL PROTECTED]
  wrote:

 Ok yea you are right i am very new at this idk y areprofessior had to
 put us in this group when he knows that i am a Browse add-on etc and
 c++ specialist. But i hav to do my hour on this group to get my
 credits. I dont really kno all that much abt PHP i have seven books
 infornt of me. (As if it really helps) But i will take your advice and
 thanks for being honest with me.

 Also i am working from my Sony PSP most of the time so i may not read
 the message right. I had to set my web pages up differently last
 night!

 And When i ask WHAT ERROR MESSAGE DID YOU GET That is because when i
 am working over at the GCG Google Chrome Group That is the first
 question that i ask to help other and clients etc so it is a
 habit...So far over there i could own the damn group because now
 everyone e-mails me to get answersjust last night i have
 a.well who is now a Client give me thanks for helping her with
 something no one else could. So i see that this is your profession and
 Browsers etc web pages are mine. (NOT PROGRAMING) I barley past my
 TEST in C++.

 So from now on i will just watch you guys while i learn and hopefuly i
 can be ready to jump in within months (I'm kidding myself it will take
 longer)

 Good Day

 Xavier

 On 9/25/08, Ian Bambury [EMAIL PROTECTED] wrote:
 
  Man i have had it with you and your disrespect shut the hell up no one
  asked you if it was helpful.
 
 
  Xavier,
 
  The reason you are not getting the respect you feel you deserve is that
 you
  come across (as I see it) as a schoolkid making newbie comments to
 industry
  professionals and expecting to get thanked for your deep insights.
 
  For example:
 
 
  hmmm...well if it is not the right size then that means that the
  whole thing is not dowoloading the right way.
 
 
  This comes under the category of 'specialised subject: the bleedin'
 obvious'
 
  We all know that. From your comments, I would guess that almost
  everyone
  here has more experience than you do. I doubt many people here other
 than
  you would have a hard time understanding PHP. Some of us were probably
  writing programs before you were born.
 
  What people are looking for is answers to their questions and not
 comments
  like Well i just tried it and i dont think you can
 
  Take it easy. Sit back and watch the group working for a while, then,
  if
 you
  can provide someone with a solution then fine, but don't ask questions
 like
  What error message do you get? when someone asks for help with a
 layout
  problem, or So as you use it the memory is slowly going away? when
 someone
  asks about a memory leak, or clog up the list 

Re: Handling ONCONTEXTMENU in GWT 1.5

2008-09-26 Thread Sumit Chandel

Hi Melody,

When you say this was working on GWT 1.4.x, was that on all supported
browsers? Also, is the problem you're experiencing now with event
previews that don't always come up also happening uniformly across all
supported browsers?

The reason I ask is because I want to see if the spotty event previews
are due to differing browser DOM implementations or if there is indeed
something going on with the breaking lazy event sinking change
introduced in GWT 1.5.

Cheers,
-Sumit Chandel

On Wed, Sep 17, 2008 at 2:28 PM, melody [EMAIL PROTECTED] wrote:

 Use Case
 1. Disable browser context menu by default
 2. Enable browser context menu on edit controls like EDIT boxes,
 listboxes etc when such controls receive focus. This is required so
 that you can do the normal highlighting, cut, copy and paste from such
 controls

 3. When edit controls lose focus, disable the browser content menu
 again

 4. Example


 //disable browser context menu on main page
 code
  private static native void disableBrowserContextMenuJSNI() /*-{
$doc.oncontextmenu = function() { return false; };
}-*/;
 /code

 //enable browser context menu
  private static native void restoreContextMenuJSNI() /*-{
$doc.oncontextmenu = function() { return true; };
}-*/;


 Create edit box with preview that allows switching between disbaled
 and enabled context menu
 code
 public class PreviewTextBox extends TextBox implements FocusListener {

public PreviewTextBox() {
this.addFocusListener(this);
}

 public void onDetach() {
 super.onDetach();
 disableBrowserContextMenuJSNI();
 DOM.removeEventPreview(m_preview); //tos - 1
 }

 public void onFocus(Widget w) {
 DOM.removeEventPreview(m_preview); //tos - 1
 DOM.addEventPreview(m_preview); //tos
 restoreContextMenuJSNI();
 }

 public void onLostFocus(Widget w) {
 disableBrowserContextMenuJSNI();
 DOM.removeEventPreview(m_preview); //tos - 1
 }

private EventPreview m_preview = new EventPreview() {
public boolean onEventPreview(Event event) {
int type = DOM.eventGetType(event);
switch (type) {
case Event.ONMOUSEDOWN:
Element target1 = DOM.eventGetTarget(event);
if (!
 PreviewTextBox.this.getElement().isOrHasChild(target1)) {
   disableBrowserContextMenuJSNI(); //by
 defauly no browser context menu must show
DeferredCommand.addCommand(new Command() {
public void execute() {

 DOM.removeEventPreview(m_preview); //tos - 1
}
});
}
break;
default:
break;
}
// But DO allow the event to fire.
return true;
}
};
}
 /code


 The above code was working perfectly in GWT 1.4.x

 With the advent of GWT1.5, this nolonger works and I get the browser
 context menu anyway.

 Is there anything else I need to do to make the oncontextmenu event
 work in GWT 1.5.




 Also I noticed that now we have Event.ONCONTEXTMENU as an event bit.

 I tried using EventPreview to stop the context menu from showing but
 most of the times this event is NOT PREVIEWED! See example below

 code
  public boolean onEventPreview(Event event) {
int type = DOM.eventGetType(event);
switch (type) {
case Event.ONCONTEXTMENU:
Element target = DOM.eventGetTarget(event);
if (!
 m_search_textbox.getElement().isOrHasChild(target)) {
DOM.eventPreventDefault(event);
DOM.eventCancelBubble(event, true);
return false;//dont allow to bubble break;
}
break;
}
  return true;
 }
 /code

 Any reason why it previews sometimes and not all the time.

 Does it have anything to do with this line

 GWT Widgets now sink their events lazily: widgets no longer routinely
 sink their events eagerly. Instead, the event is sunk the first time a
 listener is added to the widget. So subclasses which relied on eagerly
 sunk events will now have to manually sink the events they depend
 upon.

 from the breaking changes page:-

 http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=ReleaseNotes_1_5_BreakingChanges


 If so what do I need to do.

 Thanks,

 Melody
 


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

Re: how can I use oncontextmenu?

2008-09-26 Thread Sumit Chandel

Hi Alex,

Are you experiencing the same issue as Melody describes in the thread
you've linked in your original post? If so, I'm following up with
Melody on that thread, so feel free to either add your findings or
follow along to figure out what's going on.

Cheers,
-Sumit Chandel

On Wed, Sep 24, 2008 at 1:35 PM, Alex Luya [EMAIL PROTECTED] wrote:

 Just nearest project,I use popup to implement ONCONTEXTMENU,and this
 gave me a  bad experience.Right now,GWT 1.5.2 begins to support
 ONCONTEXTMENU,it is perfect,but how can I construct a context menu,I
 have got useful info from this
 url:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/71a00b061b0b8d44/04a5b7c065e6ff41?lnk=gstq=oncontextmenu#04a5b7c065e6ff41
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/71a00b061b0b8d44/04a5b7c065e6ff41?lnk=gstq=oncontextmenu#04a5b7c065e6ff41
 but no one has posted a reply,can anybody give an example,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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How Google Moderator (GWT) connect to App Engine?

2008-09-26 Thread Gudgee

see http://moderator.appspot.com
Do you know how to google developer used?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Image Anchor widget.

2008-09-26 Thread Jean-Lou Dupont

How would I go in creating a cross-browser Image Anchor ( i.e. a
href=#somewhereimg src=somegraphic.png/a ) using an image
bundle?

I am having some troubles with IE6: there is an extra tag called
clipper (e.g. clipper class=gwt-Image ... ) that seems to be
created with a style attribute that prevents the image from being
clickable i.e. navigating to the anchor's link when clicked.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-26 Thread Jason Essington

1) yes - new and migrated projects
2) yes - but migrating as fast as possible
3) no - hope to be using 1.6+
4) no
5) no - unless the 1.6 dev cycle spins out of control
6) no
7) as soon as all of my current projects are migrated

-jason

On Sep 22, 2008, at 3:57 PM, John Gunther wrote:


 Trying to get a sense of how quickly the migration to GWT 1.5 from
 1.4.62 will (or has already) occurred by asking:

 1) Are you using GWT 1.5 right now?
 2) Are you using 1.4.62 right now?
 3) Do you expect to be using GWT 1.5 six months from now?
 4) Do you expect to be using GWT 1.4.62 six months from now?
 5) Do you expect to be using GWT 1.5 one year from now?
 6) Do you expect to be using GWT 1.4.62 one year from now?
 7) How long before you expect to abandon 1.4.62 completely and use
 only 1.5 or higher?

 My answers: No, Yes, Yes, Yes,  Yes, Yes, 4 years from now.

 John

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt-maps API - Custom Projection boolean error

2008-09-26 Thread Eric Ayers
I've found the problem and updated the issue. I've got a proposed solution
out for review on the Google-Web-Toolkit-Contributors mailing list.

On Fri, Sep 26, 2008 at 7:52 AM, Eric Ayers [EMAIL PROTECTED] wrote:

 Tim,
 I couldn't find anything obviously wrong in your projection implementation,
 so I created an issue for this problem:

 http://code.google.com/p/gwt-google-apis/issues/detail?id=180

 Let me know if you have made any progress on the issue - I'll keep looking
 at it today.

 -Eric.

 On Thu, Sep 25, 2008 at 6:45 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 OK, I've copied your code into a project and I see the same problem.  The
 next step to debug this would be to set break points in each of the
 customized methods for NorthmoorMapProjection and step through in hosted
 mode.


 On Thu, Sep 25, 2008 at 12:47 AM, Tim White [EMAIL PROTECTED] wrote:


 Hi -

  When defining a custom Projection using GWT 1.5.2 and gwt-maps-1.0
 RC1, I can't seem to get around this:

  com.google.gwt.dev.shell.HostedModeException: Expected primitive type
 boolean; actual value was undefined
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
at

 com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
 57)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
 119)
at
 com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:
 155)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
 294)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
 194)
at
 org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
 117)
at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
at
 org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:
 64)
at
 org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
 493)
at
 org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
 417)
at

 com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:
 67)
at
 com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:
 152)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 447)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
 248)
at

 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
 107)
at
 com.google.gwt.maps.client.impl.__MapImplImpl.checkResize(transient
 source for com.google.gwt.maps.client.impl.__MapImplImpl)
at
 com.google.gwt.maps.client.MapWidget.checkResize(MapWidget.java:
 729)
at
 com.google.gwt.maps.client.MapWidget.onAttach(MapWidget.java:1507)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
at
 com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:
 86)
at
 com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:
 80)
at

 com.cyface.northmoor.map.client.NorthmoorMap.onModuleLoad(NorthmoorMap.java:
 64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320)
at

 com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
 329)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
 $300(BrowserWidgetIE6.java:37)
at

 com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
 76)
at

 com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
 139)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
 294)
at
 com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
 194)
at
 org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
 117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
 Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at
 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

 My projection class:

 public class NorthmoorMapProjection extends Projection {
int imageDimension = 65536;
int maxZoom = 5;
int tileSize = 256;
Point[] pixelOrigin = new Point[maxZoom];
int[] pixelsPerLonDegree = new int[maxZoom];
int[] 

Re: Info Windows

2008-09-26 Thread Pavel Byles
Well I'm not having any error messages or memory leaks but just 1 annoying
unexpected issue/bug/feature...my infowindow doesn't resize as i'd expect
when something other than the initial size goes in it.

I see other ppl get it done, but they might not be using GWT, so that makes
me know it might be just a missing feature of the GWT Maps API that allows
me to resize the infowindow to fit the content.

-Pavel Byles

On Fri, Sep 26, 2008 at 6:04 AM, [EMAIL PROTECTED] wrote:


 Yup!

 On 9/25/08, Pavel Byles [EMAIL PROTECTED] wrote:
  Are you referring to the GWT implementation of the _Maps_ InfoWindow?
 
  -Pavel Byles
 
  On Wed, Sep 24, 2008 at 5:32 PM, Xavier Live Tech.S
  [EMAIL PROTECTED]wrote:
 
 
  Hello All,
 
  So here is the thingi have been receiving and viewing allot of
  post where members etc. are having problems with the info
  windows...like memory leaks..and things that are just not running
  right!
 
  So i was wondering if there is anyone who is having a problem with
  there info window can you please post it here (I don't mind if you
  post it else where) stating your problem with your info window and the
  ERROR CODE that you receive when this problem happens.This i and other
  can help you!
 
  Good Day And Thank You
  
 
 
  
 


 --
 Xavier A. Mathews
 Student/Developer/Web-Master
 GG Client Based Tech Support
 Hazel Crest Illinois
 [EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to create the calender in GWT

2008-09-26 Thread Ananda Rao

Hi,

can any one help me in doing the below task?

1) i want to create a calender in GWT.
2) when ever i click a button i should get the calender.
3) in that i should be able to navigate to any month and year.
4) when ever i click on the particular date then it should display the
selected date/month/year in the text box

you might have seen this in some sites. like online reservation etc,
where in you can select the date .

please can any one know how can i do this in GWT?

Regards,
Ananda

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Info Windows

2008-09-26 Thread Xavier Mathews
Ok i am not really sure how to help you with this for i am kinda new my
self. But i can dirct you to a Guy named Ian he is like an expert. Also
Check out the Google API group i work over there and they always have the
answer! Hope This helped.If there is anything else you need feel free to
ask me!

Xavier A. Mathews
Student/Developer/Web-Master
GG Client Based Tech Support
Hazel Crest Illinois
[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.





On Fri, Sep 26, 2008 at 11:11 AM, Pavel Byles [EMAIL PROTECTED] wrote:

 Well I'm not having any error messages or memory leaks but just 1 annoying
 unexpected issue/bug/feature...my infowindow doesn't resize as i'd expect
 when something other than the initial size goes in it.

 I see other ppl get it done, but they might not be using GWT, so that makes
 me know it might be just a missing feature of the GWT Maps API that allows
 me to resize the infowindow to fit the content.

 -Pavel Byles

 On Fri, Sep 26, 2008 at 6:04 AM, [EMAIL PROTECTED] wrote:


 Yup!

 On 9/25/08, Pavel Byles [EMAIL PROTECTED] wrote:
  Are you referring to the GWT implementation of the _Maps_ InfoWindow?
 
  -Pavel Byles
 
  On Wed, Sep 24, 2008 at 5:32 PM, Xavier Live Tech.S
  [EMAIL PROTECTED]wrote:
 
 
  Hello All,
 
  So here is the thingi have been receiving and viewing allot of
  post where members etc. are having problems with the info
  windows...like memory leaks..and things that are just not running
  right!
 
  So i was wondering if there is anyone who is having a problem with
  there info window can you please post it here (I don't mind if you
  post it else where) stating your problem with your info window and the
  ERROR CODE that you receive when this problem happens.This i and other
  can help you!
 
  Good Day And Thank You
  
 
 
  
 


 --
 Xavier A. Mathews
 Student/Developer/Web-Master
 GG Client Based Tech Support
 Hazel Crest Illinois
 [EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.




 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Regarding JNSI/make a call to GWT Widgets on click of HTML Buttons.

2008-09-26 Thread Thomas Broyer


On 25 sep, 16:19, Manish [EMAIL PROTECTED] wrote:
 Hi

 Thank all of you for providing continuos help and advice by this
 group.

 I am new to this group.I have just put my hands on integration of my
 existing HTML with GWT.

 My very initail requirement is to show a GWT pop-up message box on
 click of HTML Button element( This HTML Button component is pre-exist
 and made using HTML Tags ).

 As I had some idea about JNSI , I tried with it But I don't succeed
 due to not having much exposure.

 Can anybody please provide pseudo code for JNSI ( if applicable )or
 any other way of implementation.

With GWT 1.5, you no longer need JSNI thanks to Button.wrap:
button id=myBtn.../button
...
Button myBtn = Button.wrap(Document.get().getElementById(myBtn));
myBtn.addClickListener(new ClickListener() { ... });


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to create the calender in GWT

2008-09-26 Thread Isaac Truett

Here's what I did:

1. Create a Composite that has a Button and a TextBox (perhaps a
HorizontalPanel for layout).
2. Add a ClickListener to the Button that displays a DatePicker (from
GWT Incubator) in a PopupPanel.
3. Add a ChangeHandlerDate to the DatePicker that formats the
selected Date and puts that String into the TextBox, then hides the
PopupPanel.

Salt to taste and place in a 400F oven until edges begin to separate
from the pan.*

- Isaac

* Do not put your computer in the oven.



On Fri, Sep 26, 2008 at 12:11 PM, Ananda Rao
[EMAIL PROTECTED] wrote:

 Hi,

 can any one help me in doing the below task?

 1) i want to create a calender in GWT.
 2) when ever i click a button i should get the calender.
 3) in that i should be able to navigate to any month and year.
 4) when ever i click on the particular date then it should display the
 selected date/month/year in the text box

 you might have seen this in some sites. like online reservation etc,
 where in you can select the date .

 please can any one know how can i do this in GWT?

 Regards,
 Ananda

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ImageBundle loading and progress bar

2008-09-26 Thread Sumit Chandel

Hi Bernard,

Do you mean you would like to track the loading progression of the
image bundle from the server to the client, or that you would like to
give feedback to the user of the image loading progression as they
load the application?

In all likelihood, you mean the first case, since sending feedback on
image bundle loading progression to the user would lead to a bit of a
strange experience as all the images would be placed into the
application once the bundle has finished being transferred over the
wire.

If you specifically want to track the time it takes to transfer the
image bundle over the wire from the server to the client, you could
write a simple JS script to print a timestamp and then make an XHR for
the generate md5.cache.png image bundle file progression of getting
the image bundle across the wire. Once you receive the response back
you could log another timestamp and compare the difference between the
two to get a rough idea of how long it took to pick up the image
bundle.

This test wouldn't really be representative of what your users might
experience as they load your application since that would depend on
where they are located relative to your server, etc... As a general
rule, you'll want to serve up the least amount of image bundles needed
to load your application, since the HTTP roundtrip needed to pick up
the image resources is much more costly than the size of the payload
in the roundtrip.

There is an upper limit on how big the bundle can get, typically
dictated by how the browser will react to such a large payload. This
is particularly the case for IE6, if I remember correctly. I haven't
seen any issues reported about browsers not being able to handle large
image bundle sizes for any other supported browser. How big are your
individual image bundles getting?

Hope that helps,
-Sumit Chandel

On Wed, Sep 24, 2008 at 10:09 PM, bernard [EMAIL PROTECTED] wrote:

 For performance reasons, my application needs to have multiple
 ImageBundles. I want to load them on demand according to user
 interactions.

 Is there a way to observe the loading progression of an ImageBundle?
 Or to know when it is available to the client?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-26 Thread Ian Bambury
1) Yes
2) No
3) N/A
4) No
5) Hope 1.6 is out
6) Already have

I don't think I'll be using the present version of *anything* in 4 years
time. My *marriage* didn't last that long.

Ian

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help with GWT FX (Cant get MorphStyle/Selector to work)

2008-09-26 Thread Thomas Wrobel

If your still interested, you could try out the website now ;)
Should all be working on my new sever.
Still very beta.

2008/8/21 Ian Bambury [EMAIL PROTECTED]:

 2008/8/21 Thomas Wrobel [EMAIL PROTECTED]

 www.rateoholic.co.uk
 Please try out my new site and give feedback :)


 It gives an error (Object doesn't supports this property ot method)
 and then produces

 Darkflames Domain ... (c)2007 Thomas wrobel

 'Darkflames' needs an apostrophe, and 'wrobel' needs a capital letter.

 Apart from those three things it seems fine.

 As far as it goes.

  :-)

 Ian

 




-- 
~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE Displays Web Mode But Not Firefox

2008-09-26 Thread jcmorris

Thanks Greg and Ian:

Actually, between the both of you, I was able to piece together a
solution ( I think ).

Ian:  I just had the bare html/html tags that GWT Designer had
used to create the HTML files.

Adding

   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
   http://www.w3.org/TR/html4/loose.dtd;

seemed to help!!  But I think that you were correct about the absolute
height being an issue.

Gregor: You were correct for pointing out the absolute panel sizing.
I didn't have one in this particular module, but I did give the
HTMLFormPanel an absolute size, and that worked.

Cheers,
Jason
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to create the calender in GWT

2008-09-26 Thread Ananda Rao

thanks for the reply isaac,


can you please tell me how to implement the DatePicker  and ChangeHandler


Ananda

On Fri, Sep 26, 2008 at 9:50 PM, Isaac Truett [EMAIL PROTECTED] wrote:

 Here's what I did:

 1. Create a Composite that has a Button and a TextBox (perhaps a
 HorizontalPanel for layout).
 2. Add a ClickListener to the Button that displays a DatePicker (from
 GWT Incubator) in a PopupPanel.
 3. Add a ChangeHandlerDate to the DatePicker that formats the
 selected Date and puts that String into the TextBox, then hides the
 PopupPanel.

 Salt to taste and place in a 400F oven until edges begin to separate
 from the pan.*

 - Isaac

 * Do not put your computer in the oven.



 On Fri, Sep 26, 2008 at 12:11 PM, Ananda Rao
 [EMAIL PROTECTED] wrote:

 Hi,

 can any one help me in doing the below task?

 1) i want to create a calender in GWT.
 2) when ever i click a button i should get the calender.
 3) in that i should be able to navigate to any month and year.
 4) when ever i click on the particular date then it should display the
 selected date/month/year in the text box

 you might have seen this in some sites. like online reservation etc,
 where in you can select the date .

 please can any one know how can i do this in GWT?

 Regards,
 Ananda

 


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT+JEE+jBoss

2008-09-26 Thread walden

The best system to develop on depends on what you know about the
ultimate production platform(s).  For instance, I don't develop on
Linux because I know all my users will be using the product on
Windows, and in IE7 for that matter.  Even though my deployed server
environment is Linux with Oracle database, I do my JBoss development
on Windows using MySQL.  I have found the JPA layer sufficiently
neutral that I don't get bit often.  Also, I develop on a laptop, and
I like having a completely self-contained and mobile development
environment that I can crank up in the shoe store while waiting for my
wife to make a decision, if need be.

Rapid feedback is a key quality in a development environment.  I set
up my RPC like this:

1. My service servlet has a 2-phase service location algorithm: it
finds JBoss JNDI first on a well known port, then it tries to get the
local EJB, and only if that fails it gets the remote EJB.  In
production, it will end up using the local; in development the remote,
which is fast enough for testing.

2. When I test in Hosted Mode (launched from IDEA in debug mode), I
have the shell/browser/servlet in one JVM and JBoss/EJB in another.

3. Client side code changes can be quickly refreshed and debugged in
hosted mode.  I do a lot more fidgeting with my client side than my
server side, so the main part of development testing is this.

4. If I need to patch a server class, I start a second remote debug
session to JBoss and let IDEA do hot code swap.  This works as long as
the Java schema does not change, else I have to re-build and deploy my
server, which does incur a slightly longer wait (about 1 minute).

5. When the widgets are stable and the client logic is working, I
switch to Compile/Browse to fine tune CSS in a real browser, where
feedback is lightning fast, much faster than refreshing the shell.

Walden

On Sep 26, 9:43 am, rov.ciso [EMAIL PROTECTED] wrote:
 Thanks. What operation system is better to develop java web project
 with GWT and JBoss( Windows or Linux)?

 On 25 сент, 22:42, mbracken [EMAIL PROTECTED] wrote:



  It's not Eclipse, it's the GWT Compiler that takes some time,
  regardless of the IDE.   Search around the forum and you'll find ways
  to cut down the time during development.   Look at setting the
  user.agent in your *.gwt.xml file.

  On Sep 25, 1:36 pm, rov.ciso [EMAIL PROTECTED] wrote:

   But I think that Eclipse with GWT and JBoss is very slow develop
   solution. For example, compiling time is near 2 min.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to create the calender in GWT

2008-09-26 Thread Isaac Truett

The DatePicker and ChangeHandler are components from the GWT Incubator
project. You can read more about them at the follow URLs.

GWT Incubator - http://code.google.com/p/google-web-toolkit-incubator/
DatePicker intro -
http://code.google.com/docreader/#p=google-web-toolkit-incubators=google-web-toolkit-incubatort=DatePicker


On Fri, Sep 26, 2008 at 12:56 PM, Ananda Rao
[EMAIL PROTECTED] wrote:

 thanks for the reply isaac,


 can you please tell me how to implement the DatePicker  and ChangeHandler


 Ananda

 On Fri, Sep 26, 2008 at 9:50 PM, Isaac Truett [EMAIL PROTECTED] wrote:

 Here's what I did:

 1. Create a Composite that has a Button and a TextBox (perhaps a
 HorizontalPanel for layout).
 2. Add a ClickListener to the Button that displays a DatePicker (from
 GWT Incubator) in a PopupPanel.
 3. Add a ChangeHandlerDate to the DatePicker that formats the
 selected Date and puts that String into the TextBox, then hides the
 PopupPanel.

 Salt to taste and place in a 400F oven until edges begin to separate
 from the pan.*

 - Isaac

 * Do not put your computer in the oven.



 On Fri, Sep 26, 2008 at 12:11 PM, Ananda Rao
 [EMAIL PROTECTED] wrote:

 Hi,

 can any one help me in doing the below task?

 1) i want to create a calender in GWT.
 2) when ever i click a button i should get the calender.
 3) in that i should be able to navigate to any month and year.
 4) when ever i click on the particular date then it should display the
 selected date/month/year in the text box

 you might have seen this in some sites. like online reservation etc,
 where in you can select the date .

 please can any one know how can i do this in GWT?

 Regards,
 Ananda

 


 


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to create the calender in GWT

2008-09-26 Thread [EMAIL PROTECTED]

2nd on the DatePicker...works great.  We've also had good luck with
http://psthapar.googlepages.com/simpledatepicker, but I like the
DatePicker from the incubator better.  You will have to a little
digging around in the source code to tie everything together, so don't
be afraid to get your hands a little dirty.

On Sep 26, 11:00 am, Isaac Truett [EMAIL PROTECTED] wrote:
 The DatePicker and ChangeHandler are components from the GWT Incubator
 project. You can read more about them at the follow URLs.

 GWT Incubator -http://code.google.com/p/google-web-toolkit-incubator/
 DatePicker intro 
 -http://code.google.com/docreader/#p=google-web-toolkit-incubators=go...

 On Fri, Sep 26, 2008 at 12:56 PM, Ananda Rao

 [EMAIL PROTECTED] wrote:

  thanks for the reply isaac,

  can you please tell me how to implement the DatePicker  and ChangeHandler

  Ananda

  On Fri, Sep 26, 2008 at 9:50 PM, Isaac Truett [EMAIL PROTECTED] wrote:

  Here's what I did:

  1. Create a Composite that has a Button and a TextBox (perhaps a
  HorizontalPanel for layout).
  2. Add a ClickListener to the Button that displays a DatePicker (from
  GWT Incubator) in a PopupPanel.
  3. Add a ChangeHandlerDate to the DatePicker that formats the
  selected Date and puts that String into the TextBox, then hides the
  PopupPanel.

  Salt to taste and place in a 400F oven until edges begin to separate
  from the pan.*

  - Isaac

  * Do not put your computer in the oven.

  On Fri, Sep 26, 2008 at 12:11 PM, Ananda Rao
  [EMAIL PROTECTED] wrote:

  Hi,

  can any one help me in doing the below task?

  1) i want to create a calender in GWT.
  2) when ever i click a button i should get the calender.
  3) in that i should be able to navigate to any month and year.
  4) when ever i click on the particular date then it should display the
  selected date/month/year in the text box

  you might have seen this in some sites. like online reservation etc,
  where in you can select the date .

  please can any one know how can i do this in GWT?

  Regards,
  Ananda
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



HTML a anchor issue with IE6 / History

2008-09-26 Thread Jean-Lou Dupont

It seems that putting a simple a HTML anchor does not work as
expected i.e. when the user clicks on the anchor, IE6's location bar
changes BUT the onHistoryChanged event is NOT fired.  Works fine on
Chrome and FF.   I am pretty certain this used to work on GWT 1.4 .

Is there a work-around?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Changing panel data and dynamically

2008-09-26 Thread programmerajay

Hi All,

I have a Dockpanel , where i want the north panel and some other panel
to change dynamically when i implement a clickListener,  i mean i want
to change the panels when some click is done.  Can i simply implement
a click listener on some widget and change any panel on the fly. And
also , i have to pass data from one panel to other depending on the
type of event. to give a clear picture, take the  example  of  gmail
application.

 I can work it out by some hit and trials but i want to know whether
people follow any design pattern when using a DockPanel layout or any
other layout for that matter and want the updates to be performed on
various parts of the Layout dynamically( one of the important parts of
writing UIs with GWT). understanding the philosophy behind it is
important as i dont want any radical changes in my basic layout when
my application is scaled up.

Please suggest

Thanks and Regards
Ajay
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwtmaps : constructor to newInstance

2008-09-26 Thread Mehdi Rabah
Hi,
Just out of curiosity : why did you changed the constructor in gwt-maps api
to the newInstance() static function?

Regards,
Mehdi

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwtmaps : constructor to newInstance

2008-09-26 Thread Eric Ayers
Hi Mehdi,

We didn't like having to make a change so late in the game that had that
kind of impact on the API, but the reason for the change has to do with
changing some of our bindings to use JavaScript overlay types.  The 1.5
developer's guide has some notes about it:


http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideOverlayTypes

Essentially, it makes the representation of some of the objects lighter
weight - less generated JS code, less memory and CPU used at runtime.  We
focused on the types that might have many instances in one map.  The
downside is that there are a number of restrictions on JS overlay types, and
using a public constructor is one thing that is not allowed.

-Eric.


On Fri, Sep 26, 2008 at 3:11 PM, Mehdi Rabah [EMAIL PROTECTED] wrote:

 Hi,
 Just out of curiosity : why did you changed the constructor in gwt-maps api
 to the newInstance() static function?

 Regards,
 Mehdi

 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HTML a anchor issue with IE6 / History

2008-09-26 Thread Isaac Truett

There are a few things you could do. Here are a couple of options:

1. Find a tags in your HTML and replace them with Hyperlink widgets.
2. Use JSNI to expose History.newItem() and call that method from your
a tags onClick.



On Fri, Sep 26, 2008 at 2:46 PM, Jean-Lou Dupont
[EMAIL PROTECTED] wrote:

 It seems that putting a simple a HTML anchor does not work as
 expected i.e. when the user clicks on the anchor, IE6's location bar
 changes BUT the onHistoryChanged event is NOT fired.  Works fine on
 Chrome and FF.   I am pretty certain this used to work on GWT 1.4 .

 Is there a work-around?
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HTML a anchor issue with IE6 / History

2008-09-26 Thread Jean-Lou Dupont

Found a work-around: fix-up the HTML anchors:

code
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NodeList;

/**
 * Fixes HTML a element for IE's shortcoming
 * when it comes to triggering History's 'onHistoryChanged' event.
 *
 * @author Jean-Lou Dupont
 *
 */
public class AnchorsUtil {

public static void updateAnchors() {

Document doc = Document.get();
NodeListElement anchors = doc.getElementsByTagName(a);

if (null==anchors) return;

for(int i=0;ianchors.getLength();i++) {
Element e = anchors.getItem(i);
//make sure we are dealing with a local link
String  href = e.getAttribute( href );
if (href.indexOf('#') != -1)
fixForHistory(e);
}

}//
protected static native void fixForHistory(Element e) /*-{

e.onclick = function() {
var href = e.href.split('#')[1];

@com.google.gwt.user.client.History::newItem(Ljava/lang/String;)
(href);
}

}-*/;

}//END
/code

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Subclassing the gwt-maps Marker

2008-09-26 Thread Eric Ayers
Hi Alberto,

Thanks for hanging in there.  I hope you enjoyed Developer Day.

On Fri, Sep 26, 2008 at 8:01 AM, Alberto Núñez [EMAIL PROTECTED] wrote:


 Well, now that the RC of gwt-maps with the new API is out, it's time
 for me to ask again (http://groups.google.com/group/Google-Web-Toolkit/
 browse_thread/thread/c2c12a9b5b297f7a/fa8d113d1e00a4b5http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c2c12a9b5b297f7a/fa8d113d1e00a4b5)
 for an issue I
 have been struggling with for some time. Yesterday I had the
 opportunity to ask Sumit Chandel about that in Madrid's GDD, and it
 seems it's a kind of tricky problem.


Sorry, when I read and responded to your post, I didn't realize the full
extent of the issues you outline below.


 I am trying to use the LabeledMarker library (JavaScript, not GWT)
 with gwt-maps. That library provides a subclass of Marker,
 LabeledMarker, and a subclass of MarkerOptions, LabeledMarkerOptions.
 In order to use the library, the first approach I took was to modify
 the gwt-maps source code so that the Marker class is always
 instantiated as a LabeledMarker object (http://groups.google.com/group/
 Google-Web-Toolkit/browse_thread/thread/
 9f618c768dd6d126/1edaaf5c91f9aa9dhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9f618c768dd6d126/1edaaf5c91f9aa9d).
 The obvious disadvantage of this
 is that I have to patch the code everytime the gwt-maps library gets a
 new update.

 These are the guilties that take a role in this programming soap
 opera:

 - The MarkerImpl interface, that extends JSFlyweightWrapper. It's the
 wrapper of the original GMarker, that uses JSIO.

I think you can bypass this: see below.


 - The Marker class, which extends ConcreteOverlay. Uses MarkerImpl in
 its constructor to create the JavaScript object.

I think you can bypass this too.



 - The MarkerOptions class, extends JavaScriptObject, declared final
 and written using JSNI. Passed as an argument to the Marker
 constructor.


I mistakenly made the entire class final instead of just the methods.




 Therefore:

 - MarkerOptions cannot be subclassed because its final.


This was a mistake I will rectify in a moment.



 - A subclass of Marker would need a subclass of MarkerImpl that
 pointed to the LabeledMarker JavaScript class. But that cannot be made
 as the constructor of the Marker subclass is forced to call the Marker
 constructor, that uses MarkerImpl. Is then any way to make the Marker
 subclass call use a MarkerImpl subclass in its constructor?


I don't think your LabeledMarker() subclass needs to call the constructor
that calls MarkerImpl.  For example, make a new constructor that overrides
the Marker(LatLng) version:

public LabeledMarker (LatLng point) {
 super(LabeledMarkerImpl.construct(point));
}

this ends up calling ConcreteOverlay(JavaScriptObject)
You would only need to define the methods in LabeledMarkerImpl that are new
to this subclass.

Another way to make this work is to make your custom LabeledMarker a
subclass of Overlay in this case, not Marker.   You would have to duplicate
the methods inside of Marker ort you could provide a getMarker() method.

  Marker marker;
  public Marker getMarker() {
if (marker == null) {
  marker = Marker.createPeer(jsoPeer);  // note, this method is
currently package protected!
}
return marker;
  }

--

Please let me know if either of those approaches works for you.



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HTML a anchor issue with IE6 / History

2008-09-26 Thread Jean-Lou Dupont

Thanks Isaac.
on #1) I have played quite enough with trying to dynamically link DOM
elements to GWT widgets and let me tell you it is not a pretty sight
on #2) I must have posted my solution at the ~same time you posted
this suggestion!

On Sep 26, 4:03 pm, Isaac Truett [EMAIL PROTECTED] wrote:
 There are a few things you could do. Here are a couple of options:

 1. Find a tags in your HTML and replace them with Hyperlink widgets.
 2. Use JSNI to expose History.newItem() and call that method from your
 a tags onClick.

 On Fri, Sep 26, 2008 at 2:46 PM, Jean-Lou Dupont

 [EMAIL PROTECTED] wrote:

  It seems that putting a simple a HTML anchor does not work as
  expected i.e. when the user clicks on the anchor, IE6's location bar
  changes BUT the onHistoryChanged event is NOT fired.  Works fine on
  Chrome and FF.   I am pretty certain this used to work on GWT 1.4 .

  Is there a work-around?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Image Anchor widget.

2008-09-26 Thread Jean-Lou Dupont

The work-around for anybody who cares:  add a 'click listener' to the
Anchor widget and do the navigation manually.
Yet another reason why I don't like IE as much as the others...

On Sep 26, 11:43 am, Jean-Lou Dupont [EMAIL PROTECTED] wrote:
 How would I go in creating a cross-browser Image Anchor ( i.e. a
 href=#somewhereimg src=somegraphic.png/a ) using an image
 bundle?

 I am having some troubles with IE6: there is an extra tag called
 clipper (e.g. clipper class=gwt-Image ... ) that seems to be
 created with a style attribute that prevents the image from being
 clickable i.e. navigating to the anchor's link when clicked.

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and Eclipse problems

2008-09-26 Thread xavierunited

does anybody use sas programing anymore.

On 9/26/08, mrzeringue [EMAIL PROTECTED] wrote:

 I ran into this same issue yesterday when I started looking at GWT.  I
 figured why mine did not work in Eclipse but did using the -
 shell.cmd.  In the tutorial it tells you to browse to the StockWatcher
 folder in between running the projectCreator and the
 applicationCreator scripts. This, apparently, is not correct.

 I noticed that their screen shots of the package explorer had a
 different tree setup than mine, so I delete everything and started
 over, this time running the applicationCreator script from the same
 directory that I ran the projectCreator.  When I imported the project
 into eclipse I could run the project from inside eclipse with no
 problem.

 Hope this helps.

 On Sep 2, 11:51 am, ALF [EMAIL PROTECTED] wrote:
 Am I the only one having problems with running GWT in Eclipse?  I have
 gone through the step-by-step walk-through (projectCreator,
 applicationCreator, and Eclipse import) for the StockWatcher sample
 but it simply will not run within Eclipse.

 C:\dev\workspace\StockWatcherprojectCreator -eclipse StockWatcher -
 out StockWatcher
 C:\dev\workspace\StockWatcherapplicationCreator -eclipse StockWatcher
 -out StockWatcher
 com.google.gwt.sample.stockwatcher.client.StockWatcher

 When I run StockWatcher I get classpath problems (it can't find the
 gwt.xml file).  I noticed that the package names begin with 'src'
 rather than 'com'.  I refactored the package names and the classpath
 problem to the gwt.xml file went away but a new problem surfaced.  Now
 I get an IE popup stating that it failed to load module
 com.google.gwt.sample.stockwatcher.StockWatcher.  The DevShell says
 it's unable to find type '...StockWatcher'.

 Am I missing a step somewhere?  I have tried this on Windows Vista
 running Ganymede and on Windows XP running Europa with the same
 problems.

 



-- 
Xavier A. Mathews
Student/Developer/Web-Master
GG Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-26 Thread Dean S. Jones

1) yes, for new projects
2) yes, for existing projects
3) yes
4) no
5) yes - unless 1.6 is ready and stable
6) no
7) 3 months

Moving off 1.4.62 depends on how fast I can re-implement/replace our
legacy use of MyGWT Widgets. I have replicated about
80% of our dependency with custom components that fill the need
( tables, trees, dialogs, effects ), in the next few weeks I will
get to eliminate the remaining 20%, and will own the code in that
transition, and be bound to no external libraries or the whims
of License Changes. Though the work is difficult, the payoff has been
tremendous - our Table Widget is Orders Of Magnitude
faster than MyGWT's, can contain Widgets in Cells, etc, do Sorting,
Paging. Column visibility. GWT-Ext and Ext-GWT looked
ideal at the outset of the project, but in reality have been the
source of much pain - No matter how pretty they are. I'm working
on a high-performance application in the Financial Sector - Pretty
doesn't count when you are talking about 3 Seconds to display
a table V.S. our 0.30 seconds.

The rest of the 1.5 transition is properly parameterizing RPC objects/
signatures, which is trivial compared to the component work.

Binding ourselves to MyGWT early on was the biggest mistake. But hey,
I enjoy writing Widgets


On Sep 26, 11:38 am, jay [EMAIL PROTECTED] wrote:
 1. No
 2. Yes
 3. Yes
 4. No
 5. Hopefully not -- I'm hoping 1.6 will be released with OOPHM :-)
 6. No
 7. Depends how quickly we can rip out our usage of MyGWT :-(

 On Sep 22, 2:57 pm, John Gunther [EMAIL PROTECTED] wrote:

  Trying to get a sense of how quickly the migration to GWT 1.5 from
  1.4.62 will (or has already) occurred by asking:

  1) Are you using GWT 1.5 right now?
  2) Are you using 1.4.62 right now?
  3) Do you expect to be using GWT 1.5 six months from now?
  4) Do you expect to be using GWT 1.4.62 six months from now?
  5) Do you expect to be using GWT 1.5 one year from now?
  6) Do you expect to be using GWT 1.4.62 one year from now?
  7) How long before you expect to abandon 1.4.62 completely and use
  only 1.5 or higher?

  My answers: No, Yes, Yes, Yes,  Yes, Yes, 4 years from now.

  John
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Building Incubator gen2 demos

2008-09-26 Thread Emily Crutcher
src-demo is a new source root that must be added if you are using your own
launch configs.

If you are using the checked in launch configs, one change is that  GWT_HOME
is assumed to point to a distribution, i.e. a gwt built with ant dist rather
then ant build.

On Fri, Sep 26, 2008 at 3:34 PM, Isaac Truett [EMAIL PROTECTED] wrote:


 Thank you both! I'll see if I can get those launch configs running in
 Eclipse. Everything compiles, but there's something amiss in my
 runtime classpath.




 On Fri, Sep 26, 2008 at 1:53 PM, Emily Crutcher [EMAIL PROTECTED] wrote:
  Also, I'm starting to add eclipse launch configs for the demos in
 trunk\eclipse-experimental\incubator-resources-windows
  and
 trunk\eclipse-experimental\incubator-resources-linux
 
  On Fri, Sep 26, 2008 at 1:47 PM, John LaBanca [EMAIL PROTECTED]
 wrote:
 
  BYOB for now, but let us know if you have trouble configuring it to run
 in
  your favorite IDE.  We'll probably have to add a build rule to the
 build.xml
  file at some point.
 
  Thanks,
  John LaBanca
  [EMAIL PROTECTED]
 
 
  On Fri, Sep 26, 2008 at 1:27 PM, Isaac Truett [EMAIL PROTECTED]
 wrote:
 
  Is there a mechanism currently in SVN for building the gen2 demos in
  src-demo? I don't see shell scripts, batch files, etc. or anything in
  build.xml. Is it BYOB at this point?
 
 
 
 
 
 
 
 
  --
  There are only 10 types of people in the world: Those who understand
  binary, and those who don't
 
  
 

 



-- 
There are only 10 types of people in the world: Those who understand
binary, and those who don't

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Building Incubator gen2 demos

2008-09-26 Thread Isaac Truett

Yep. I added src-demo. My GWT_HOME points to
gwt-trunk/build/staging/gwt-windows-0.0.0

Trying to start DatePickerDemo I get this in the console:

com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at 
com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:334)
at 
com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$1(ReflectiveParser.java:282)
at 
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:381)
at 
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:243)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:212)
snip

Curiously enough, there is no previous log entry. The
UnableToCompleteException appears twice followed by:

com.google.gwt.core.ext.typeinfo.NotFoundException: java.lang.Object
at com.google.gwt.core.ext.typeinfo.TypeOracle.refresh(TypeOracle.java:544)
at 
com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:394)
at 
com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:137)
at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:470)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at 
com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
at 
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:72)
at 
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:139)
at 
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at 
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
snip

The GWT shell complains about missing:

com/google/gwt/dev/jjs/intrinsic/Intrinsic.gwt.xml
com/google/gwt/emul/EmulationWithUserAgent.gwt.xml
and java.lang.Object (repeatedly)

I'm guessing the XML parsing is at the root of all this, so I'll dig
around there. If this rings any bells, though, I'd love to hear about
it.



On Fri, Sep 26, 2008 at 3:38 PM, Emily Crutcher [EMAIL PROTECTED] wrote:
 src-demo is a new source root that must be added if you are using your own
 launch configs.

 If you are using the checked in launch configs, one change is that  GWT_HOME
 is assumed to point to a distribution, i.e. a gwt built with ant dist rather
 then ant build.

 On Fri, Sep 26, 2008 at 3:34 PM, Isaac Truett [EMAIL PROTECTED] wrote:

 Thank you both! I'll see if I can get those launch configs running in
 Eclipse. Everything compiles, but there's something amiss in my
 runtime classpath.




 On Fri, Sep 26, 2008 at 1:53 PM, Emily Crutcher [EMAIL PROTECTED] wrote:
  Also, I'm starting to add eclipse launch configs for the demos in
 trunk\eclipse-experimental\incubator-resources-windows
  and
 trunk\eclipse-experimental\incubator-resources-linux
 
  On Fri, Sep 26, 2008 at 1:47 PM, John LaBanca [EMAIL PROTECTED]
  wrote:
 
  BYOB for now, but let us know if you have trouble configuring it to run
  in
  your favorite IDE.  We'll probably have to add a build rule to the
  build.xml
  file at some point.
 
  Thanks,
  John LaBanca
  [EMAIL PROTECTED]
 
 
  On Fri, Sep 26, 2008 at 1:27 PM, Isaac Truett [EMAIL PROTECTED]
  wrote:
 
  Is there a mechanism currently in SVN for building the gen2 demos in
  src-demo? I don't see shell scripts, batch files, etc. or anything in
  build.xml. Is it BYOB at this point?
 
 
 
 
 
 
 
 
  --
  There are only 10 types of people in the world: Those who understand
  binary, and those who don't
 
  
 





 --
 There are only 10 types of people in the world: Those who understand
 binary, and those who don't

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit commit] r3689 - changes/jat/oophm-branch/plugins/xpcom

2008-09-26 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Sep 26 16:58:45 2008
New Revision: 3689

Modified:
changes/jat/oophm-branch/plugins/xpcom/JavaObject.cpp

Log:
Tiny portability fix.


Modified: changes/jat/oophm-branch/plugins/xpcom/JavaObject.cpp
==
--- changes/jat/oophm-branch/plugins/xpcom/JavaObject.cpp   (original)
+++ changes/jat/oophm-branch/plugins/xpcom/JavaObject.cpp   Fri Sep 26  
16:58:45 2008
@@ -285,7 +285,7 @@
int dispId = JSVAL_TO_INT(argv[0]);
Debug::DebugStream dbg = Debug::log(Debug::Spam)  JavaObject::call  
oid=
 JavaObject::getObjectId(ctx, obj)  ,dispId=  dispId   (;
-  for (int i = 2; i  argc; ++i) {
+  for (unsigned i = 2; i  argc; ++i) {
  if (i  2) {
dbg  , ;
  }

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: gwt compiler issue in 1.5 branch

2008-09-26 Thread Scott Blum
Cameron, are you positive you're on r3683?  Your stack trace looks awfully
fishy.  In particular:
 [java] at
com.google.gwt.dev.jjs.impl.MethodInliner.exec(MethodInliner.java:496)
 [java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:394)

Cross-reference with:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java?r=3683#394

I think you've got out-of-whack versions.

On Fri, Sep 26, 2008 at 3:05 AM, Cameron Braid [EMAIL PROTECTED] wrote:

 Sorry, I probably didn't explain my self so well.

 I have been using 1.5.2 successfully, and have moved across to trunk
 (r3683) to try it out at. and ran into the same issue that I was having a
 while ago.

 Cheers,

 Cameron


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---