Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-24 Thread Julien Ortega
In my case, removing all references to spring mvc resolved the
problem. When I go down to the code, the problem is in a method called
nestedLoad.
It calls URL moduleURL = classLoader.getResource(resName);
This one return null in some case because resName is provided without
package classLoader.getResource('foo.gwt.xml') => null ,
classLoader.getResource('com/foo/Test/foo.gwt.xml') => not null Url

I will need to restore the spring config, any idea ? I should try to
compile the last trunk?

On Nov 24, 3:49 pm, Miguel Méndez  wrote:
> There is a known issue with RC1 that might be the cause of this.
>  Specifically the last one listed in known issue section 
> ofhttp://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC.  Even though
> your app does not use App Engine, the issue is really that a GC pass before
> the browser load request comes across can invalidate some weak refs.  This
> has been fixed in the trunk and 2.0 branches.
>
>
>
>
>
> On Tue, Nov 24, 2009 at 2:27 AM, Julien Ortega  wrote:
> > I suspect a problem between SpringMVC and GWT 2.0 rc1. Within the same
> > projet, same class path, if I load my app from a static html file it
> > works but if I load my app with a generated html from freemarker and
> > springMVC I've got a "[ERROR] [gwtdemo] Unable to find
> > 'gwtdemo.gwt.xml' on your classpath; could be a typo, or maybe you
> > forgot to include a classpath entry for source?".
> > Looks like the moduleloader is not the same.
> > Any Idea ?
>
> > On Nov 23, 5:29 pm, Youen  wrote:
> > > The main difference with my  2 project is that the main html file is a
> > > Velocity template managed with spring MVC (so there is no main HTML
> > > file in my war folder).
>
> > --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Miguel

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Help Add gwt-connectors into smartgwt

2009-11-24 Thread guaz wk
I write a testing class below, but I not able to add it into the
com.smartgwt.client.widgets.Window.

Anyone can help me on this? Thanks in advanced!

package com.smartgwt.sample.showcase.client;

import pl.tecna.gwt.connectors.client.ConnectionPoint;
import pl.tecna.gwt.connectors.client.Connector;
import pl.tecna.gwt.connectors.client.Diagram;
import pl.tecna.gwt.connectors.client.SectionDecoration;
import pl.tecna.gwt.connectors.client.Shape;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.smartgwt.client.widgets.Label;


public class NetworkMap{

public NetworkMap() {
AbsolutePanel widget = new AbsolutePanel();

final Diagram diagram = new Diagram(widget);

final Label label = new Label("LABEL");
final Image image = new Image("http://code.google.com/images/
code_sm.png");
image.setPixelSize(153, 55);

widget.add(label, 50, 250);
widget.add(image, 200, 300);

Shape shapeForLabel = new Shape(label);
shapeForLabel.showOnDiagram(diagram);

Shape shapeForImage = new Shape(image);
shapeForImage.showOnDiagram(diagram);

ConnectionPoint labelConnectionPoint = 
shapeForLabel.connectionPoints
[Shape.E];
ConnectionPoint imageConnectionPoint =
shapeForImage.connectionPoints[Shape.W];

Connector label2image = new Connector
(labelConnectionPoint.getAbsoluteLeft(),
 labelConnectionPoint.getAbsoluteTop(),
 imageConnectionPoint.getAbsoluteLeft(),
 imageConnectionPoint.getAbsoluteTop(),
 null,
 new SectionDecoration
(SectionDecoration.DECORATE_ARROW));

label2image.startEndPoint.glueToConnectionPoint
(labelConnectionPoint);
label2image.endEndPoint.glueToConnectionPoint
(imageConnectionPoint);

label2image.showOnDiagram(diagram);
/*  // Create boundary panel
AbsolutePanel boundaryPanel = new AbsolutePanel();

initWidget(boundaryPanel);
boundaryPanel.setSize("700px", "700px");
RootPanel.get().add(boundaryPanel, 10, 10);

final Diagram diagram = new Diagram(boundaryPanel);

boundaryPanel.add(new Label("Connectors example for GWT 1.7"), 
10,
2);

// Add some elements that can be connected
final Label label = new Label("LABEL");
final Image image = new Image("http://code.google.com/images/
code_sm.png");
image.setPixelSize(153, 55);

boundaryPanel.add(label, 50, 250);
boundaryPanel.add(image, 200, 300);

Shape shapeForLabel = new Shape(label);
shapeForLabel.showOnDiagram(diagram);

Shape shapeForImage = new Shape(image);
shapeForImage.showOnDiagram(diagram);

// Connect label and image
ConnectionPoint labelConnectionPoint =
shapeForLabel.connectionPoints[Shape.E];
ConnectionPoint imageConnectionPoint =
shapeForImage.connectionPoints[Shape.W];

Connector label2image = new Connector
(labelConnectionPoint.getAbsoluteLeft(),
 labelConnectionPoint.getAbsoluteTop(),
 imageConnectionPoint.getAbsoluteLeft(),
 imageConnectionPoint.getAbsoluteTop(),
 null,
 new SectionDecoration
(SectionDecoration.DECORATE_ARROW));

label2image.startEndPoint.glueToConnectionPoint
(labelConnectionPoint);
label2image.endEndPoint.glueToConnectionPoint
(imageConnectionPoint);

label2image.showOnDiagram(diagram);
*/
}

}

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: UiBinder differences between styleName and addStyleNames

2009-11-24 Thread uwfrog
try this:




Hope it helps.

On Nov 23, 9:25 am, djd  wrote:
> Hi,
> I have discovered that UiBinderGenerator has a (quite) strange
> behavior while setting/adding Css styles.
> Here is an example:
>
>      xmlns:ui='urn:ui:com.google.gwt.uibinder'
>     xmlns:g='urn:import:com.google.gwt.user.client.ui' >
>
>                     src="LogoDisplay.css" />
>     addStyleNames="{style.common}"/>
> 
>
> In LogoDisplay.css I obviously have the two styles (.basic
> and .common). I also declared a custom CssResource (in LogoDisplay)
> that binds with that Css file. The weird thing is styleName is
> actually invoked using a setter (setStyleName) while addStyleNames are
> invoked repeteadly using addStyleName, so it virtually same thing, but
> the last style is not added (.common). I have also tried to use
> addStyleNames="common" but it seems that I don't have the Css file
> injected (and I would need to manually do that) and this does not work
> either.
>
> Can you help me? I'm sorry if the answer is extremely trivial, but I
> was unable to find a solution for this problem (adding 2 or more
> styles on a widget) - preferably I don't want to inject the Css (I
> plan to have a lot of Css files, I don't want to inject all of them).

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Tool to convert HTML in GWT widgets

2009-11-24 Thread Sripathi Krishnan
>
> How does it compare to the UIBinder in GWT 2?
>
>From the description, it is exactly what UiBinder does.

--Sri


2009/11/25 Yozons Support on Gmail 

> How does it compare to the UIBinder in GWT 2?  I've not used it yet, but
> understand it's an XML file format for building UIs.  If they overlap,
> people will more likely prefer UIBinder, but if they do not, I'm sure others
> would be interested.
>
>  --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Missing build paths for App Engine SDK and GWT SDK

2009-11-24 Thread Chris Ramsdale
GAE 1.2.6 and later requires a javaagent argument to be passed in. This
post, over on the App Engine Group, may provide some guidance:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/df660675d21c64f0

On Tue, Nov 24, 2009 at 9:30 PM, kbowe...@gmail.com wrote:

> Chris,
> That definitely got me further: In Properties > Build Path >
> Libraries, I Edited each SDK reference to remove the old path and
> select the new one -- that resolved all the type references.  However,
> now I get the following runtime error when I try to start the project:
>
> Unable to start embedded HTTP server
> java.lang.RuntimeException: Unable to locate the App Engine agent.
> Please use dev_appserver, KickStart,  or set the jvm flag: "-
> javaagent:/lib/agent/appengine-agent.jar"
>at
>
> com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled
> (DevAppServerFactory.java:102)
>at
>
> com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer
> (DevAppServerFactory.java:77)
>at
>
> com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer
> (DevAppServerFactory.java:38)
>at
> com.google.appengine.tools.development.gwt.AppEngineLauncher.start
> (AppEngineLauncher.java:79)
>at
> com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
>at
> com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:589)
>at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
>at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
> Caused by: java.lang.NoClassDefFoundError: com/google/appengine/tools/
> development/agent/AppEngineDevAgent
>at
>
> com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled
> (DevAppServerFactory.java:98)
>... 7 more
>
> How do I fix this?
> Thanks in advance,
> Ken
>
> On Nov 21, 3:07 pm, Chris Ramsdale  wrote:
> > When you install via the updates mechanism in Eclipse it will install the
> > SDK to a new directory. Double check the SDK references and paths within
> > your existing project. If you expand the "GWT SDK" entry in the Libraries
> > section you'll see where it thinks gwt-user and gwt-dev are installed.
> You
> > can also click "Edit" and re-configure your GWT SDK installation.
> >
> > On Fri, Nov 20, 2009 at 5:29 PM, kbowe...@gmail.com  >wrote:
> >
> >
> >
> >
> >
> > > [On a Mac OS X 10.5.8] I had to clean off my old Galilio and Google
> > > plugin. Then  I re-installed Eclipse Galilio and then installed the
> > > Google plugin (from the update site
> > >http://dl.google.com/eclipse/plugin/3.5),
> > > as shown here by Eclipse's "already installed software" link:
> >
> > > Eclipse IDE for Java EE Developers  1.2.1.20090918-0703
> > > epp.package.jee
> > > Google App Engine Java SDK 1.2.61.2.6.v200910131704
> >
> > > com.google.appengine.eclipse.sdkbundle.e35.feature.feature.group
> > > Google Plugin for Eclipse 3.5   1.1.2.v200910131704
> >
> > > com.google.gdt.eclipse.suite.e35.feature.feature.group
> > > Google Web Toolkit SDK 1.7.11.7.1.v200909221731
> >
> > > com.google.gwt.eclipse.sdkbundle.e35.feature.feature.group
> >
> > > I'm trying work with an existing GWT/Google App project.  When I open
> > > that project and go to
> > >   [Project] > Java Build Path > Libraries,
> >
> > > I get a message "2 build path entries are missing.", and the entries
> > > for
> >
> > > App Engine SDK [App Engine - unknown version] (unbound)
> > >and
> > > GWT SDK [GWT - unknown version] (unbound)
> >
> > > are marked with red error X boxes. Of course lots of stuff in the code
> > > won't resolve.
> > >  I uninstalled & re-installed the plug once, but get the same
> > > result.
> > > What is wrong here?
> >
> > > --
> >
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/grou

Trouble with HorizontalSplitPanelImages (and verticalSPIs)

2009-11-24 Thread Riley
When I try to run my GWT app, I get the following error:

Uncaught exception: java.lang.RuntimeException: Deferred binding
failed for
'com.google.gwt.user.client.ui.HorizontalSplitPanelImages' (did you
forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create
(GWTBridgeImpl.java:43)
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.user.client.ui.HorizontalSplitPanel.
(HorizontalSplitPanel.java:355)
at us.larkolicio.oat.client.CreateScreen.(CreateScreen.java:
47)
...


The same code compiles and runs fine on another computer (I am trying
to move development from one machine to another, and do a little
refactoring at the same time).  I presume I have something incorrectly
configured.  I have com.google.gwt.user.User inherited, along with
com.google.gwt.user.theme.chrome.Chrome.

I'm totally stumped.  Any suggestions?  Thanks for any help!

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: JUnit RPC test and Resource not found

2009-11-24 Thread Guish
Hi Steve, sorry for don't answer your question.

I'm a lot of steps down.

Can you please post your com.xyz.gwt.filmlist.FilmList.gwt.xml?

I have similar issue...

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




return this; doesn't always work with overlay type

2009-11-24 Thread Kevin
Hi,

I have an overlay-type class that has fluent interface (http://
en.wikipedia.org/wiki/Fluent_interface):

  private static class JsMap extends JavaScriptObject {
public static final native JsMap create() /*-{ return {} }-*/;

protected JsMap() {}

public native final JsMap put(String key, String value) /*-{ this
[key] = value; return this; }-*/;
  }

I create an instance of JsMap:

JsMap map = JsMap.create()
  .put("a", "A")
  .put("b", "B");

I expected resulting map to be {'a': 'A', 'b': 'B' }, but instead I
got: { 'b', 'B' }.

This is what it looks like when I compiled to JavaScript in PRETTY
mode:
 map = $put(({}['a'] = 'A' , {}), 'b', 'B');
 function $put(this$static, key, value){
this$static[key] = value;
return this$static;
}

This looks like a bug in the GWT Compiler.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Missing build paths for App Engine SDK and GWT SDK

2009-11-24 Thread kbowe...@gmail.com
Chris,
That definitely got me further: In Properties > Build Path >
Libraries, I Edited each SDK reference to remove the old path and
select the new one -- that resolved all the type references.  However,
now I get the following runtime error when I try to start the project:

Unable to start embedded HTTP server
java.lang.RuntimeException: Unable to locate the App Engine agent.
Please use dev_appserver, KickStart,  or set the jvm flag: "-
javaagent:/lib/agent/appengine-agent.jar"
at
com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled
(DevAppServerFactory.java:102)
at
com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer
(DevAppServerFactory.java:77)
at
com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer
(DevAppServerFactory.java:38)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start
(AppEngineLauncher.java:79)
at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:589)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
Caused by: java.lang.NoClassDefFoundError: com/google/appengine/tools/
development/agent/AppEngineDevAgent
at
com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled
(DevAppServerFactory.java:98)
... 7 more

How do I fix this?
Thanks in advance,
Ken

On Nov 21, 3:07 pm, Chris Ramsdale  wrote:
> When you install via the updates mechanism in Eclipse it will install the
> SDK to a new directory. Double check the SDK references and paths within
> your existing project. If you expand the "GWT SDK" entry in the Libraries
> section you'll see where it thinks gwt-user and gwt-dev are installed. You
> can also click "Edit" and re-configure your GWT SDK installation.
>
> On Fri, Nov 20, 2009 at 5:29 PM, kbowe...@gmail.com wrote:
>
>
>
>
>
> > [On a Mac OS X 10.5.8] I had to clean off my old Galilio and Google
> > plugin. Then  I re-installed Eclipse Galilio and then installed the
> > Google plugin (from the update site
> >http://dl.google.com/eclipse/plugin/3.5),
> > as shown here by Eclipse's "already installed software" link:
>
> > Eclipse IDE for Java EE Developers      1.2.1.20090918-0703
> > epp.package.jee
> > Google App Engine Java SDK 1.2.6        1.2.6.v200910131704
>
> > com.google.appengine.eclipse.sdkbundle.e35.feature.feature.group
> > Google Plugin for Eclipse 3.5   1.1.2.v200910131704
>
> > com.google.gdt.eclipse.suite.e35.feature.feature.group
> > Google Web Toolkit SDK 1.7.1    1.7.1.v200909221731
>
> > com.google.gwt.eclipse.sdkbundle.e35.feature.feature.group
>
> > I'm trying work with an existing GWT/Google App project.  When I open
> > that project and go to
> >           [Project] > Java Build Path > Libraries,
>
> > I get a message "2 build path entries are missing.", and the entries
> > for
>
> > App Engine SDK [App Engine - unknown version] (unbound)
> >    and
> > GWT SDK [GWT - unknown version] (unbound)
>
> > are marked with red error X boxes. Of course lots of stuff in the code
> > won't resolve.
> >  I uninstalled & re-installed the plug once, but get the same
> > result.
> > What is wrong here?
>
> > --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




multiple criteria for selector

2009-11-24 Thread bhomass
I am using the gwt css selector

fly((com.google.gwt.user.client.Element) parentElement).select
(attachedSelector);

where attachedSelector right now is
"attached, attachedMaster, attachedTemplate"

what I want to get is the elements with any of the above classnames.
But none was returned.

I also tried with the comma in between, same null result.

what is the right way to select among multiple css class names?

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Simple Label+TextBox combo

2009-11-24 Thread Open eSignForms
I'd like to create something like the following layout using a Label
and TextBox for input:

Label
[TextBox__]

Now, this works fine in a VerticalPanel.  But that creates a TABLE
with two TRs to wrap these fields.

Yet in HTML, I'd just have:

Label


That is, it would just be the two fields separated by a BR.  What
would be the construct to build something like that in GWT 2.0?

Thanks for any tips.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: event for detecting DOM.createElement() is completed

2009-11-24 Thread bhomass

> createElement is synchronous/blocking; it doesn't return before
> completion, so there's no need for an event.
> You might need to attach the widget (or at least its element) to the
> document though to have its size computed so you can later adjust it.

I attached the new Element to its container using appendChild
(newElement) and checked for its height right afterwards, but the
height is always 0. I used
newElement.getClientHeight(), is that correct?

does the layout happen right after the appendChild()? or is there a
way to detect when the layout is completed?

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: UiBinder differences between styleName and addStyleNames

2009-11-24 Thread djd
Nobody has ANY idea? Any input would be greatly appreciated

On Nov 23, 4:25 pm, djd  wrote:
> Hi,
> I have discovered that UiBinderGenerator has a (quite) strange
> behavior while setting/adding Css styles.
> Here is an example:
>
>      xmlns:ui='urn:ui:com.google.gwt.uibinder'
>     xmlns:g='urn:import:com.google.gwt.user.client.ui' >
>
>                     src="LogoDisplay.css" />
>     addStyleNames="{style.common}"/>
> 
>
> In LogoDisplay.css I obviously have the two styles (.basic
> and .common). I also declared a custom CssResource (in LogoDisplay)
> that binds with that Css file. The weird thing is styleName is
> actually invoked using a setter (setStyleName) while addStyleNames are
> invoked repeteadly using addStyleName, so it virtually same thing, but
> the last style is not added (.common). I have also tried to use
> addStyleNames="common" but it seems that I don't have the Css file
> injected (and I would need to manually do that) and this does not work
> either.
>
> Can you help me? I'm sorry if the answer is extremely trivial, but I
> was unable to find a solution for this problem (adding 2 or more
> styles on a widget) - preferably I don't want to inject the Css (I
> plan to have a lot of Css files, I don't want to inject all of them).

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Import java.net can not be resolved in Server mode

2009-11-24 Thread Yozons Support on Gmail
I have no idea what you are asking, but you give no example of the problem.
Since the Java compile is just a java compile (nothing GWT about it), I'm
sure you can use import java.net.*; in your server side code.

Google does provide another compiler to convert all the java code intended
for the client -- which is compiled to javascript -- not java bytecode --
and it may have its own issues since you can only reference a limited set of
the JRE standard classes (and it really doesn't use those classes which are
in Java, but has its own versions that are client-ready to be converted to
javascript).

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: dynamic Messages/ImageBundle possible?

2009-11-24 Thread denis56
Oh, thanks for the hint.

Are you aware of the similar class for Messages?

On 23 Nov., 16:44, "Dean S. Jones"  wrote:
> this might help a little
>
> http://code.google.com/p/asmodaiosgwt/
>
> On Nov 23, 10:40 am, denis56  wrote:
>
>
>
> > Hi there,
>
> > I wonder if it is possible to use Internationalization and
> > ImageBundles in GWT in a more dynamic way. For instance, if there is a
> > client method
>
> > void createSportTitleAndImage(String sportId) {
>
> > }
>
> > is it somehow possible to have the  "sportId" argument  being
> > dynamically plugged into the relevant ImageBundle/Messages method to
> > return appropriate code without the if/else-jungle.
>
> > So instead of:
>
> > void createSportTitleAndImage(String sportId) {
> >  if (sport.equals("basketball"))
> >     ImageBundle.getBasketballImage();
> >     Messages.getBasketballText();
> >  else if (sport.equals("handball"))
> >     ImageBundle.getHandballImage();
> >     Messages.getHandballText();
> >  else ...
>
> > }
>
> > to have something like :
>
> > void createSportTitleAndImage(String sportId) {
> >     ImageBundle.getSportImageById(sportId);
> >     Messages.getSportTextById(sportId);
>
> > }
>
> > where getSportByName(sportId) would fetch resource for the key "base +
> > sportId" ?
>
> > That would really simplify things:)
> > 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Tool to convert HTML in GWT widgets

2009-11-24 Thread Yozons Support on Gmail
How does it compare to the UIBinder in GWT 2?  I've not used it yet, but
understand it's an XML file format for building UIs.  If they overlap,
people will more likely prefer UIBinder, but if they do not, I'm sure others
would be interested.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT textarea widget - disable word wrap

2009-11-24 Thread dsinnett
I actually figured it out.  It is actually a browser issue than a
widget issue.  I ended up creating a textarea within an htmlpanel so
that I could apply the wrap=off parameter to the textarea.  That works
now in firefox as expected.

On Nov 10, 3:37 pm, dsinnett  wrote:
> Hello,
>
> I am wondering if there is a way to disable word wrap in the textarea
> GWT widget.
>
> What I am doing is generating a large text output that will be
> displayed in the text area.  it is critical that each line stays on
> its own line and not word wrapped.  What i am hoping for is a way that
> I can either disable word-wrap and get a horizontal scroll bar if the
> text extends past the left edge of the textarea or even a way to
> dynamically size the text area so that the width is large enough to
> contain the longest line.
>
> Thank you in advance for your help!
>
> Dan

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Import java.net can not be resolved in Server mode

2009-11-24 Thread Ovidiu Blejdea
I am not new to programming, but I am new to web programming, Java and
GWT, and this problem bugs the hell out of me. Going by the tutorials
I have read, on the server side of a GWT application, you can do any
Java operation, as this part gets compiled as a servlet. Now... why
can't it resolv a simple java.net.*?

Thanks in advance.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Tool to convert HTML in GWT widgets

2009-11-24 Thread jlw
+1

It's got my vote--sounds interesting. I actually started writing
something similar, but what I have does not approach the
sophistication of what you've described. It is still very much a
manual process.

On Nov 24, 3:32 pm, Davi Pires  wrote:
> Hi all,
>
> In my company, we have been working with GWT for almost a year,
> developing a ridesharing application (http://www.bigoo.com.br). I
> really can't overstate how much we enjoy developing in java, using
> familiar tools, debugging in hosted mode, and so on. But one thing
> that has really bothered us for a long time is the dificulty of
> integrating the work of developers (who write the code that eventually
> outputs the HTML) with the work of designers (who write CSS).
>
> Eventually we came up with a method where the designer gave the devs
> an HTML fragment that worked as a 'contract' between their codes. The
> devs had to write the GWT code that instantiated the widgets and set
> ids and styles according to the spec. It worked, we did the job, but
> there were lots of problems on the way:
>
> - every little change to the 'contract' (new id, new classes) had to
> be implemented by the developer. Therefore, there was a significant
> delay between the designer's writing of the css and it being reflected
> on the system.
> - the designer felt rather demotivated by not having control over
> generation of the UI.
>
> Well, I guess some of these problems have already been mentioned here.
> I won't dwell on it anymore.
>
> Recently we implemented a small tool to help us overcome this problem.
> In short, the designer writes the specs in an extended subset of HTML,
> outside of the java code, in a properties file. This file is processed
> by a generator we wrote that outputs the java code needed to
> instantiate the gwt widgets corresponding to that spec.
>
> In the GWT code we can retrieve each subnode of the tree (or
> 'subwidget') by the id, and add to it the appropriate handlers, or set
> any other property.
>
> We have automated the instantiation of the widgets, their addition the
> the corresponding parents, the setting of a few properties such as
> ids, classes, titles, value and enabled. It has allowed us to
> reimplement complete pages, with all the interaction we had before,
> significantly speeding up the development process, reducing the size
> of the code, making it more readable, and increasing developer and
> designer satisfaction.
>
> I'd like to ask the community if anyone is interested on such a tool.
> We are planning on opening up this code, but it still needs some work.
> If it's of anyone's interest we would gladly open it.
>
> Cheers,
> Davi Pires
>
> --
>
> eco-blog:http://tarjaverde.wordpress.com

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Tool to convert HTML in GWT widgets

2009-11-24 Thread Davi Pires
Hi all,

In my company, we have been working with GWT for almost a year,
developing a ridesharing application (http://www.bigoo.com.br). I
really can't overstate how much we enjoy developing in java, using
familiar tools, debugging in hosted mode, and so on. But one thing
that has really bothered us for a long time is the dificulty of
integrating the work of developers (who write the code that eventually
outputs the HTML) with the work of designers (who write CSS).

Eventually we came up with a method where the designer gave the devs
an HTML fragment that worked as a 'contract' between their codes. The
devs had to write the GWT code that instantiated the widgets and set
ids and styles according to the spec. It worked, we did the job, but
there were lots of problems on the way:

- every little change to the 'contract' (new id, new classes) had to
be implemented by the developer. Therefore, there was a significant
delay between the designer's writing of the css and it being reflected
on the system.
- the designer felt rather demotivated by not having control over
generation of the UI.

Well, I guess some of these problems have already been mentioned here.
I won't dwell on it anymore.

Recently we implemented a small tool to help us overcome this problem.
In short, the designer writes the specs in an extended subset of HTML,
outside of the java code, in a properties file. This file is processed
by a generator we wrote that outputs the java code needed to
instantiate the gwt widgets corresponding to that spec.

In the GWT code we can retrieve each subnode of the tree (or
'subwidget') by the id, and add to it the appropriate handlers, or set
any other property.

We have automated the instantiation of the widgets, their addition the
the corresponding parents, the setting of a few properties such as
ids, classes, titles, value and enabled. It has allowed us to
reimplement complete pages, with all the interaction we had before,
significantly speeding up the development process, reducing the size
of the code, making it more readable, and increasing developer and
designer satisfaction.

I'd like to ask the community if anyone is interested on such a tool.
We are planning on opening up this code, but it still needs some work.
If it's of anyone's interest we would gladly open it.

Cheers,
Davi Pires


-- 


eco-blog: http://tarjaverde.wordpress.com

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Creating new "app" windows, not actual browser Windows

2009-11-24 Thread Yozons Support on Gmail
Thanks much.  The DialogBox works pretty well for me, but was hoping the
title bar would hold the close button like a regular window, but it's fine
to have it at just below.

Because these dialogs need to outlive the panel that swaps in and creates
them, I'm using an EventBus to open them in my "main app panel" that comes
up after login, and it keeps track of all the Dialogs that are open so if
the user comes back and selects the same "row" from the PagingScrollTable, I
just center the existing dialog, else I launch a new Dialog.

I've not yet figured out whether I should have my own subclassed DialogBox
that does some of the common stuff yet, but suspect it will make sense as I
build more than the one I'm working now.

The only downside I've seen so far is that when I click to sort the columns
on the PagingScrollTable, the existing selected row is fired again so my
PagingScrollTable tells me it's selected again, so I do the Dialog open
again (which now just causes it to be centered again), which is odd, but not
a showstopper.

And that bug could be resolved if there were a way to tell the
PagingScrollTable to unselect rows since the header column sort would not
fire if it were not still selected.  I'd love to unselect it once the action
related to being selected takes place, just haven't figured out how yet

Thanks again!

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: MenuBar in a Flextable cell

2009-11-24 Thread Sudeep S
Thanks a lot for your inputs Brian.

Yes I am using an absolute panel for positioning.

There seems to be a simple way to deal with this.

A menubar inside a menubar did the trick.

A menu bar with the list of items is added to a parent menubar and that
parent menubar is placed inside the cell.

It works like a charm.

thanks for ur suggestions once again

Thanks
Sudeep

On Tue, Nov 24, 2009 at 10:26 PM, Brian  wrote:

> I haven't had a need to be too picky about positioning, so I'm not
> sure what the tricky conditions are (though I'm sure they're there).
> You didn't mention how you're doing your positioning, but I can
> imagine you're using either AbsolutePanel or PopupPanel. I had
> suggested PopupPanel because it has a showRelativeTo(UIObject) method
> that might be helpful. According to the docs, though:
>
> from
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/PopupPanel.html#showRelativeTo(com.google.gwt.user.client.ui.UIObject)
>
> "Normally, the popup is positioned directly below the relative target,
> with its left edge aligned with the left edge of the target. Depending
> on the width and height of the popup and the distance from the target
> to the bottom and right edges of the window, the popup may be
> displayed directly above the target, and/or its right edge may be
> aligned with the right edge of the target."
>
> So it looks like the algorithm that it uses for positioning may be too
> variable for your needs.
>
> One final note is that, assuming you manage to cover up the link in
> the table cell, you probably don't have to remove it, which might
> cause the table to shift around.
>
> -Brian
>
> On Nov 23, 1:12 pm, Sudeep S  wrote:
> > Thank you for your suggestion.
> >
> > i am trying a similar approach for this one.
> >
> > instead of having a menu bar in the cell i have placed a simple link in
> the
> > cell and when it is clicked, i capture the cell and the absolute position
> of
> > link that is clicked.
> >
> > With the absolute position of the link inhand i delete the link and place
> my
> > menubar at that position.
> >
> > having little trouble with positioning though.
> >
> > thanks
> > Sudeep
> >
> >
> >
>  > On Mon, Nov 23, 2009 at 7:36 PM, Brian  wrote:
> > > Sounds like a tricky problem. I haven't worked with menu bars so I'm
> > > not sure this will work. What I'm thinking is that you could use a
> > > placeholder menu bar in the table cell that doesn't have any menu
> > > items. Then, when that is clicked on, display a PopupPanel with the
> > > real menu bar and position it relative to the placeholder menu bar.
> > > You may have to play with styling on the PopupPanel to remove any
> > > decoration and/or margins to get the effect right. You'll also have to
> > > capture which menu item (assuming there's more than one) was clicked
> > > on the placeholder and simulate a click on the corresponding item in
> > > the real menu bar.
> >
> > > Or maybe you can do away with the menu bar in the table cell
> > > altogether and make your own drop-down menu using PopupPanels. It
> > > depends on what you're looking for in terms of user interface feel.
> >
> > > -Brian
> >
> > > On Nov 22, 10:56 am, Sudeep S  wrote:
> > > > Hi,
> >
> > > > I have a req wherein I have to add a menubar widget to every row in a
> > > > flextable. When the menubar is clicked it opens but it also expands
> the
> > > > cell in which it is placed distorting the layout.
> >
> > > > Any ideas on this one.
> >
> > > > Thanks
> > > > Sudeep
> >
> > >  --
> >
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT RPC servlet doesn't get called

2009-11-24 Thread Yaakov
Ok, never mind... It was a regular GWT SerializationException which
was getting swallowed up by ext-GWT widget code.

Thanks,
Yaakov.

On Nov 24, 12:08 pm, Yaakov  wrote:
> I am not running with Jetty (i.e., running with no-server checked
> off)... deployed to Glassfish.
>
> However, I AM looking in Firebug and the call to the server NEVER gets
> made!
>
> In fact, I run it in debug mode and see the following:
> ***
> It goes into an object caled VMTreeViewService_Proxy
> (VMTreeViewService is the name of the main interface, i.e., not the
> async one).
>
> Then, it goes into
> com.google.gwt.user.client.rpc.impl.RemoteServiceProxy
>
> Then, back to VMTreeViewService_Proxy.
>
> Then, it goes to JavaScriptHost.java (line 35):
> return sHost.invokeNativeBoolean(name, jthis, types, args);
>
> Then, to ModuleSpace (line 146).
>
> Then, eventually, it gets back to VMTreeViewService_Proxy. Inspecting
> that object, btw, I do see the property remoteServiceURL as the URL
> that should get called. the problem is that I never see it get called
> (neither in Firebug nor in the server console).
> ***
>
> I am also looking at my Eclipse console, at the Hosted mode console,
> and at the server console. There are NO errors at all in either!
>
> Any idea what could be going on here? I didn't change ANY code that
> has to do with client side interfaces.
>
> Thank you,
> Yaakov.
>
> On Nov 24, 12:01 pm, Yozons Support on Gmail  wrote:
>
> > What does the console show?  You should see a POST to your service name.
> > Make sure the POST URL matches how your web.xml is set up to process the
> > requests.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: issue injecting gwt .js file from webserver to webpage

2009-11-24 Thread Thomas Broyer


On Nov 24, 5:37 pm, chewy  wrote:
> Hi,
>
> I have built my application in GWT and the resulting .js file, I want
> to inject to my web page.
> This works fine locally.
>
> But when I put the GWT .js file on my webserver and use  type="text/javascript" language="javascript" src="http://
> mywebserver.com/myApp.nocache.js"> to call the .js file and
> inject to my web page - firefox gives me security errors.
>
> Now from reading the forums, there is a cross domain issue here - but
> in reality there is no issue as I built the same javascript app
> manually and located it on my webserver and called the .js file from
> another webpage on another server - the app worked with out any error.
> So why does the .js files produced by the GWT cause these security
> errors.

That's because GWT actually load your app in a hidden iframe; because
the iframe isn't in the same domain ("origin" actually) as your "host
page", they cannot communicate.

> anybody have a work around?

Let's rather call it a solution (*the* solution, at least the blessed
one): add the following in your module:

   

(unfortunately, the documentation isn't up-to-date and still
references the 1.4.x way of doing things)

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWTTestCase + Spring

2009-11-24 Thread Carlos Rafael Ramirez
Hello,

I think GWTTesCAse use the same mechanism than Hosted mode. So you can
modify the web.xml used by hosted mode. Make the hosted mode run without the
security and hopefully it will work qith GWTTestCase as well.

Regards,
Carlos

On Mon, Nov 16, 2009 at 9:14 AM, Davis Ford wrote:

> Hi, I personally wouldn't write too many test cases like this unless you
> are just trying to ensure that everything is wired together.  Even then, I'd
> probably use something like Selenium to record the test from the UI and play
> it back.
>
> Alternatively, you might consider employing the MVP pattern.  This would
> allow you to test all of your UI logic in standard JUnit, leaving just the
> dumb GUI display code untested.  You could choose to test the latter with a
> GWTTestCase if you desired.  Once I started doing this, I stopped using
> GWTTestCase altogether.  I unit test all my UI logic with just JUnit and
> EasyMock.  My tests (500+) finish in about 20 s.
>
>
> On Fri, Nov 13, 2009 at 2:28 PM, dadodev  wrote:
>
>> I'm working on a GWT (1.7) application that uses Spring and Hibernate
>> on the server side that is secured with SpringSecurity and CAS.
>> I want to create some client side tests using GWTTestCase to test the
>> UI and Asynch behavior of the application.
>>
>> I have two problems/questions regarding GWTTestCase:
>> 1) is it possible to customize the web.xml used by the GWT shell
>> started by GWTTestCase? If yes, how? I need to customize the web.xml
>> used by GWTTestCase to disable the application security mechanism in
>> my tests, otherwise I cannot call the remote services which are
>> secured.
>> 2) it's my understanding that the code I write for a GWTTestCase is
>> like GWT client code, ie. I cannot use non-serializable classes: am I
>> correct? If I'm wrong, is there a way to get to the Spring context in
>> a GWTTestCase?
>>
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=.
>>
>>
>>
>
>
> --
> Zeno Consulting, Inc.
> home: http://www.zenoconsulting.biz
> blog: http://zenoconsulting.wikidot.com
> p: 248.894.4922
> f: 313.884.2977
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: How i can localize the FileUpload item in GWT

2009-11-24 Thread Eric


On Nov 24, 9:45 am, Thomas Broyer  wrote:
> On Nov 24, 2:03 pm, Parasuraman 
> wrote:
>
> > Hi All,
>
> > I want to change the browse.. button option available in the
> > FileUpload of GWT. Browse button option should be localized in the
> > FileUpload.. How do i localized??
>
> The same as you localize an  in HTML; i.e. you just
> can't (this is seen as a security feature: you can't mislead the user;
> there's also the argument that not all browsers render an  type=file> as a textbox or label –to display the selected file's name
> and/or path– and a "browse" button, a browser could actually –per
> spec– render it the way it wants)
That's right.  For example, Apple Safari provides only a "Choose File"
button.  I have seen bizarre ways of overlapping s and using
z-order to fake styling of file upload widgets, but you'll never get
GWT
do it.  Probably, you should accept the widget as it is, and style the
page around it.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: How to set the format for a DateBox?

2009-11-24 Thread Stevko

Cool! Thanks again for the valuable info.

>
> > Care to guess what timezone GWT's java.util.Date and DateBox are
> > using?
> > Perhaps the browser's timezone, server's timezone, GMT, or something
> > else?
>
> Dates are in the client (browser) timezone.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT RPC servlet doesn't get called

2009-11-24 Thread Yaakov
I am not running with Jetty (i.e., running with no-server checked
off)... deployed to Glassfish.

However, I AM looking in Firebug and the call to the server NEVER gets
made!

In fact, I run it in debug mode and see the following:
***
It goes into an object caled VMTreeViewService_Proxy
(VMTreeViewService is the name of the main interface, i.e., not the
async one).

Then, it goes into
com.google.gwt.user.client.rpc.impl.RemoteServiceProxy

Then, back to VMTreeViewService_Proxy.

Then, it goes to JavaScriptHost.java (line 35):
return sHost.invokeNativeBoolean(name, jthis, types, args);

Then, to ModuleSpace (line 146).

Then, eventually, it gets back to VMTreeViewService_Proxy. Inspecting
that object, btw, I do see the property remoteServiceURL as the URL
that should get called. the problem is that I never see it get called
(neither in Firebug nor in the server console).
***

I am also looking at my Eclipse console, at the Hosted mode console,
and at the server console. There are NO errors at all in either!

Any idea what could be going on here? I didn't change ANY code that
has to do with client side interfaces.

Thank you,
Yaakov.

On Nov 24, 12:01 pm, Yozons Support on Gmail  wrote:
> What does the console show?  You should see a POST to your service name.
> Make sure the POST URL matches how your web.xml is set up to process the
> requests.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: lacking an interface with "setEnabled" method

2009-11-24 Thread Brian
I had the same thought when using MVP for a form and wanting to
disable the submit button after it's clicked. I ended up adding disable
() and enable() methods on my view interface so that the view
implementation (which knows it's dealing with a Button, not just a
HasClickHanders) can do whatever is appropriate. This doesn't seem too
bad to me. From the presenter's point of view, it wants to be able to
disable the form. It's then the view's responsibility to know what
that entails, which now that I think about it should probably also
include disabling the form fields.

Dealing with things like FocusWidget and DateBox may be a little bit
different; you didn't mention why you wanted to set the enabled status
on them. However, thinking about the problem from the presenter's
point of view may still be helpful. Rather than the presenter being
concerned with enabling and disabling individual widgets, give a name
to what the presenter is trying to accomplish and let the view decide
how to satisfy the requirement.

-Brian

On Nov 23, 12:27 pm, Norman Maurer  wrote:
> Yes, such an interface would be really nice for MVP .
>
> Bye
> Norman
> 2009/11/23, Michel Daviot :
>
>
>
> > Hi,
>
> > I think an interface defining the setEnabled method is lacking. This
> > would be implemented in FocusWidget, DateBox ...
>
> > --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: [ERROR] 500 - POST on hosted mode

2009-11-24 Thread Yozons Support on Gmail
Gotta look at all your logs, console, etc.  Most likely it's a null pointer
exception or a some sort of serialization issue because you have an object
without a zero-arg constructor.  Hard to tell with little info

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT RPC servlet doesn't get called

2009-11-24 Thread Yozons Support on Gmail
What does the console show?  You should see a POST to your service name.
Make sure the POST URL matches how your web.xml is set up to process the
requests.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: MenuBar in a Flextable cell

2009-11-24 Thread Brian
I haven't had a need to be too picky about positioning, so I'm not
sure what the tricky conditions are (though I'm sure they're there).
You didn't mention how you're doing your positioning, but I can
imagine you're using either AbsolutePanel or PopupPanel. I had
suggested PopupPanel because it has a showRelativeTo(UIObject) method
that might be helpful. According to the docs, though:

from
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/PopupPanel.html#showRelativeTo(com.google.gwt.user.client.ui.UIObject)

"Normally, the popup is positioned directly below the relative target,
with its left edge aligned with the left edge of the target. Depending
on the width and height of the popup and the distance from the target
to the bottom and right edges of the window, the popup may be
displayed directly above the target, and/or its right edge may be
aligned with the right edge of the target."

So it looks like the algorithm that it uses for positioning may be too
variable for your needs.

One final note is that, assuming you manage to cover up the link in
the table cell, you probably don't have to remove it, which might
cause the table to shift around.

-Brian

On Nov 23, 1:12 pm, Sudeep S  wrote:
> Thank you for your suggestion.
>
> i am trying a similar approach for this one.
>
> instead of having a menu bar in the cell i have placed a simple link in the
> cell and when it is clicked, i capture the cell and the absolute position of
> link that is clicked.
>
> With the absolute position of the link inhand i delete the link and place my
> menubar at that position.
>
> having little trouble with positioning though.
>
> thanks
> Sudeep
>
>
>
> On Mon, Nov 23, 2009 at 7:36 PM, Brian  wrote:
> > Sounds like a tricky problem. I haven't worked with menu bars so I'm
> > not sure this will work. What I'm thinking is that you could use a
> > placeholder menu bar in the table cell that doesn't have any menu
> > items. Then, when that is clicked on, display a PopupPanel with the
> > real menu bar and position it relative to the placeholder menu bar.
> > You may have to play with styling on the PopupPanel to remove any
> > decoration and/or margins to get the effect right. You'll also have to
> > capture which menu item (assuming there's more than one) was clicked
> > on the placeholder and simulate a click on the corresponding item in
> > the real menu bar.
>
> > Or maybe you can do away with the menu bar in the table cell
> > altogether and make your own drop-down menu using PopupPanels. It
> > depends on what you're looking for in terms of user interface feel.
>
> > -Brian
>
> > On Nov 22, 10:56 am, Sudeep S  wrote:
> > > Hi,
>
> > > I have a req wherein I have to add a menubar widget to every row in a
> > > flextable. When the menubar is clicked it opens but it also expands the
> > > cell in which it is placed distorting the layout.
>
> > > Any ideas on this one.
>
> > > Thanks
> > > Sudeep
>
> >  --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Unable to find type

2009-11-24 Thread Paul Robinson

César wrote:
>   
>   
>
>   
Try gwt/entry and gwt/services

Paul

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




VerticalPanel insert and index

2009-11-24 Thread Ittai
Hello all,
I have an array of strings which I divide unevenly between different
columns of a grid (by some unrelated logic) and I need the string in
the i place of the array to be inserted to the i place of the column.
My grid holds one row and 6 columns and in each column I have a
VerticalPanel which acts as my column, mainly because the columns are
in different sizes and can change.
What i wanted to do is something like this:

 for (int i=0;ihttp://groups.google.com/group/google-web-toolkit?hl=en.




issue injecting gwt .js file from webserver to webpage

2009-11-24 Thread chewy
Hi,

I have built my application in GWT and the resulting .js file, I want
to inject to my web page.
This works fine locally.

But when I put the GWT .js file on my webserver and use  to call the .js file and
inject to my web page - firefox gives me security errors.

Now from reading the forums, there is a cross domain issue here - but
in reality there is no issue as I built the same javascript app
manually and located it on my webserver and called the .js file from
another webpage on another server - the app worked with out any error.
So why does the .js files produced by the GWT cause these security
errors.
anybody have a work around?

thanks for your help

C

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT RPC servlet doesn't get called

2009-11-24 Thread Yaakov
Hi,

I have an GWT RPC call set up that has been working for a while. I
don't know what I changed (certainly nothing in the service nor async
interfaces), but now I can see in the debugger that I make the async
call, but looking in Firebug the request to the server never gets
made.

Does anyone have any idea of what it could be?

I already cleared the gwt-generated directory in the war directory and
still nothing... What could it be???

Thanks,
Yaakov.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Unable to find type

2009-11-24 Thread César
Hi,

Sorry to bring this subject into discussion, but I have search through
several pages but I did not succeed to achieve my goals.

I want to use a different package structure, rather then the client/
server/public one given by the default project.

So I have the following structure

Package: com.blackice.advertising
Advertising.gwt.xml

Package: com.blackice.advertising.gwt.entry
Advertising.java (implements EntryPoint)

Package: com.blackice.advertising.gwt.services
GreetingService.java (extends RemoteService)
GreeetingServiceAsync.java (interface)

Package: com.blackice.advertising.gwt.server
GreetingServiceImpl.java (extends RemoteServiceServlet implements
GreetingService)

In my Advertising.gwt.xml I have the following definition

  

  
  

So, it is possible to have my 'com.blackice.advertising.gwt.entry' and
'com.blackice.advertising.gwt.services' packages as client code? For
the documentation I have read, we can define out own client code
packages, but I am not able to do it for my case.

when I compile this structure I get the following error:
[ERROR] Unable to find type
'com.blackice.advertising.gwt.entry.Advertising'
[ERROR] Hint: Previous compiler errors may have made this type
unavailable

Any help that you can give will be very appreciate, since for this
project I need to have this kind of structure.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 1.7.1 don't show app in hosted mode (Jetty bug: FULL head)

2009-11-24 Thread Rajeev Dayal
It depends on your OS. What OS are you using?

2009/11/19 ipsonic 

> I am getting the same error when running in GWT hosted mode.  The app
> (GXT 2.0.1) runs fine on firefox.  Where is this cookie file exactly,
> I've looked around at the suggested location in this thread and cannot
> find it?
>
> -John
>
> On Nov 16, 8:16 am, Rajeev Dayal  wrote:
> > @Stephen: What platform are you on?
> >
> > @Rodrigo: That sounds like a GXT-specific bug. Have you tried posting on
> > their forum?
> >
> > 2009/11/15 Stephen Graham 
> >
> > > I am getting a similar error:
> > > Nov 15, 2009 7:24:24 PM com.google.apphosting.utils.jetty.JettyLogger
> > > info
> > > INFO: jetty-6.1.x
> > > Nov 15, 2009 7:24:25 PM com.google.apphosting.utils.jetty.JettyLogger
> > > info
> > > INFO: Started selectchannelconnec...@0.0.0.0:8080
> > > The server is running athttp://localhost:8080/
> > > 2009-11-15 14:24:25.396 java[58372:80f] [Java CocoaComponent
> > > compatibility mode]: Enabled
> > > 2009-11-15 14:24:25.400 java[58372:80f] [Java CocoaComponent
> > > compatibility mode]: Setting timeout for SWT to 0.10
> > > Nov 15, 2009 7:24:25 PM
> > > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext
> > > disableTransportGuarantee
> > > INFO: Ignoring  for /* as the SDK does not
> > > support HTTPS.  It will still be used when you upload your
> > > application.
> > > Nov 15, 2009 7:24:25 PM
> > > com.google.apphosting.utils.jetty.AppEngineAuthentication
> > > $AppEngineAuthenticator authenticate
> > > INFO: Got /console.html but no one was logged in, redirecting.
> > > Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
> > > warn
> > > WARNING: handle failed
> > > java.io.IOException: FULL head
> > >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
> > >at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
> > >at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> > >at org.mortbay.io.nio.SelectChannelEndPoint.run
> > > (SelectChannelEndPoint.java:396)
> > >at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> > > (BoundedThreadPool.java:442)
> > > Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
> > > warn
> > > WARNING: handle failed
> > > java.io.IOException: FULL head
> > >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
> > >at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
> > >at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> > >at org.mortbay.io.nio.SelectChannelEndPoint.run
> > > (SelectChannelEndPoint.java:396)
> > >at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> > > (BoundedThreadPool.java:442)
> >
> > > I am running from Eclipse Galileo, on a Mac, GWT 1.7.1, GXT 2.0.1.
> >
> > > Does anyone know the name of the file that is keeping the cookies for
> > > the hosted mode browser?
> >
> > > On Nov 2, 11:45 pm, Rodrigo  wrote:
> > > > Hi,
> >
> > > > Same here.
> >
> > > > GXT does use cookies for storing theme related things.
> >
> > > > See:
> > >http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/state/Sta.
> ..
> >
> > > > It seems it is writing the cookies many times on the file
> > > > @localhost[1].txt.
> >
> > > > After deleting this file my application seems to work. I say "seems"
> > > > because there
> > > > is another error that looks like has nothing to do with the original
> > > > post.
> >
> > > > [ERROR] Unable to load module entry point class com.xxx.App (see
> > > > associated exception for details)
> > > > com.google.gwt.core.client.JavaScriptException: (TypeError):
> > > > '$doc.defaultView' is null or not an object
> > > >  number: -2146823281
> > > >  description: '$doc.defaultView' is null or not an object
> > > > at
> > > > com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getComputedStyle
> > > > (Native Method)
> > > > at
> > > > com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getStyleAttribute
> > > > (ComputedStyleImpl.java:27)
> > > > at
> > > com.extjs.gxt.ui.client.core.El.getStyleAttribute(El.java:1236)
> > > > at com.extjs.gxt.ui.client.util.IconHelper.createStyle
> > > > (IconHelper.java:77)
> > > > at
> > > com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:
> > > > 107)
> > > > at
> > > com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:93)
> > > > at com.extjs.gxt.ui.client.widget.button.Button.setIconStyle
> > > > (Button.java:357)
> > > > at com.xxx.App.Editor.(Editor.java:104)
> > > > at com.xxx.App.onModuleLoad(App.java:27)
> >
> > > > R.
> >
> > > > On Oct 28, 1:12 pm, Rajeev Dayal  wrote:
> >
> > > > > Hm, I would have expected that to work. Can you verify that when
> this
> > > > > problem happens, you have large cookies in the directories that you
> > > tried to
> > > > > clear?
> >
> > > > > I believe that the Vista cookies directory 

Re: Where can I find GWT download for 64 bit Window 7?

2009-11-24 Thread Sripathi Krishnan
The new GWT 2.0 is cross platform, and works on 64 bit machines. GWT 1.7
release also work on 64 bit machines, though you'd have to install a 32 bit
JVM to get Hosted Mode working.

--Sri


2009/11/24 rfiroz 

> Hello,
> I'm looking for 64-bit gwt download for window 7. Can someone point me
> where to download from? Quick google did not return any favorable
> results.
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Hosted mode hangs on closing on linux

2009-11-24 Thread Michael Vogt
Hi all.

When I try to quit a GWT application running in hosted mode, the
corresponding java process seems to crash, so I have to kill it with
the process viewer. This happens both when closing the windows of the
hosted browser or stopping the application through the IDE (IntelliJ
IDEA).

This happens on Ubuntu 9.10, GWT 1.7.1 (I believe this happened also
with older versions of GWT, can't check right now), Java 1.6u16.

Any idea how to get rid of this problem?


Thanks,
Michael Vogt

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




ScrollPanel - how to alter scrolling behavior

2009-11-24 Thread Bruce Petro
I have a scroll panel that I fill with several lines of text, but I only
display one line at a time.
Currently if I click on the down arrow, it scrolls a pixel or two at a time
requiring 8-10 clicks to get to the next text line.

Is there a way to tie into the scrolling nature and have it scroll (either
up or down) by the number of pixels (let's say 20 px) that equate to each
line of 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Where can I find GWT download for 64 bit Window 7?

2009-11-24 Thread rfiroz
Hello,
I'm looking for 64-bit gwt download for window 7. Can someone point me
where to download from? Quick google did not return any favorable
results.

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




[ERROR] 500 - POST on hosted mode

2009-11-24 Thread Fon Vitale
Hi there,

i'm building a GWT project that recolect information about weather
from Google Api Weather using a servelt. This servlet connects with
Google and parses the XML given. All this works fine, but the
comunication. The callback execute onFailre method instead of
onSucces. I get this in hosted mode:

500 - POST /tourismmultiagent/weather (127.0.0.1) 57 bytes

I think this error is an internal error. I have follow the tutorials
and documentation to make this project so I don't know how can I solve
the problem. Any idea?

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-24 Thread Miguel Méndez
There is a known issue with RC1 that might be the cause of this.
 Specifically the last one listed in known issue section of
http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC.  Even though
your app does not use App Engine, the issue is really that a GC pass before
the browser load request comes across can invalidate some weak refs.  This
has been fixed in the trunk and 2.0 branches.

On Tue, Nov 24, 2009 at 2:27 AM, Julien Ortega  wrote:

> I suspect a problem between SpringMVC and GWT 2.0 rc1. Within the same
> projet, same class path, if I load my app from a static html file it
> works but if I load my app with a generated html from freemarker and
> springMVC I've got a "[ERROR] [gwtdemo] Unable to find
> 'gwtdemo.gwt.xml' on your classpath; could be a typo, or maybe you
> forgot to include a classpath entry for source?".
> Looks like the moduleloader is not the same.
> Any Idea ?
>
> On Nov 23, 5:29 pm, Youen  wrote:
> > The main difference with my  2 project is that the main html file is a
> > Velocity template managed with spring MVC (so there is no main HTML
> > file in my war folder).
> >
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Miguel

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: How i can localize the FileUpload item in GWT

2009-11-24 Thread Thomas Broyer


On Nov 24, 2:03 pm, Parasuraman 
wrote:
> Hi All,
>
> I want to change the browse.. button option available in the
> FileUpload of GWT. Browse button option should be localized in the
> FileUpload.. How do i localized??

The same as you localize an  in HTML; i.e. you just
can't (this is seen as a security feature: you can't mislead the user;
there's also the argument that not all browsers render an  as a textbox or label –to display the selected file's name
and/or path– and a "browse" button, a browser could actually –per
spec– render it the way it wants)

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT appears to be overriding my css

2009-11-24 Thread Steve C
If  you use a stylesheet linked in from your html code, it will get
loaded before the theme stylesheet is loaded, so your styles will get
overwritten.  If you put the stylesheet and associated images in a
public folder of your module and reference it in the gwt.xml file (a
la GWT 1.5), it will be added after the theme stylesheet, and thus
override the GWT theme styling.

Another approach is to make your styles more specific than the GWT
styles, for example, html body .gwtDecoratorPanel .topLeft { ... }.
This seems to work in IE7 and FF 3.5.  I have seen rules starting with
html>body in various posts, but this does not work in IE for me.  My
dissatisfaction with this is that I can see a browser deciding that
the html body doesn't add any specificity to the rule, since that
combination is guaranteed to happen.

Yet another approach is to rely on the implementation of a widget,
with a rule like .gwtDecoratorPanel tr td.topLeft { ... }  The problem
with this is that conceivably some day GWT could decide that
positioned divs are better than a table for the DecoratorPanel
implementation.

Perhaps the best approach would be to give the body an id, or use an
id'd div as the RootPanel, and start the css rule with the id.

On Nov 5, 6:23 pm, Rob Tanner  wrote:
> Hi,
>
> I just upgraded Eclipse to Galileo and downloaded the GWT plugin and
> started a new project.  I added a customized stylesheet (just adding a
> link in the html) that I use to affect a standardized look and feel.
> At this point (besides the root panel) all I've added is a single
> panel that contains a logo and in my custom stylesheet I define an
> image for the background in a body tag.  In hosted mode, it all
> displays correctly.  However, when I click on "compile" in the hosted
> display window, what ultimately gets displayed in a regular browser
> does not include the background image.
>
> From the browser, I checked to make sure the link to my custom sheet
> was good and I also used the link in the style sheet to make sure I
> could see the background image.  Also, just for grins, I commented out
> the body tag in the standard.cssthat GWT provides.  Not only did that
> not make a difference, the act of compiling replaced the standard.css
> file, thus effectively uncommenting the body tag.  And finally, I
> tried adding the body tag to the defaultcssfile in the WEB-INF
> folder and it made no difference.  The bottom line, it looks like mycssfile 
> is being overridden behind the scenes.  That doesn't make a
> lot of sense, but that's what it looks like.
>
> Any ideas.
>
> -- Rob

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: New to GWT - Suggestion Required

2009-11-24 Thread Abdullah Shaikh
Thanks for the info. Andreas.

Glad to finally see my message on the ML, I had posted it 2 days back, due
to spam prevention (which is necessary) activity it got stuck ..

Thanks to Sudeep & Chris

On Tue, Nov 24, 2009 at 6:08 PM, Andreas Mueller wrote:

> Hi Abdullah,
>
> first of all you should notice that GWT is not at all a framework but
> a toolkit.
> If you need a framework look GWT based frameworks e.g. gwt-dispatch+
> gwt-presenter.
>
> If you are searching for a good example look at
> http://james.apache.org/hupa/index.html
>
> to 1) easiest way is to use the session handling of your application
> server
> to 2) if you use java on server side, gwt-rpc is the first choice. By
> the way, all communication will be based on http or https, even if you
> use xml-rpc
> to 3) as usual
>
>
> Kind regards,
>
> Andreas
> On 22 Nov., 16:41, Abdullah  wrote:
> > Hi All,
> >
> > I am new to GWT infact new to AJAX itself, I was wandering for an ajax
> > framework and came across GWT, I went through the articles, docs etc
> > etc on GWT and found it to be interesting infact cool.
> >
> > Now that I have decided to use GWT, I require some suggestion/advice
> > from you guys.
> >
> > We have an ERP system, which I would like to Ajaxify, there are few
> > doubts which I would like to clear before I delve into this :
> >
> > 1) How do we manage sessions when using Ajax ? I have gone through
> > many articles on this, but I would like to know your thoughts on this.
> >
> > 2) Keeping in mind the 1 question, should I use xml-rpc or http ? I
> > gues xml-rpc would be better.
> >
> > 3) How to handle https ?
> >
> > Hmm .. that's it for now .. this should get me started on GWT :)
> >
> > Thanks,
> > Abdullah
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: no border on a dialogBox (macosx,netbeans)

2009-11-24 Thread loveley
yes, that was the problem.


thank you anyway,

olivier.

Dominik Steiner a écrit :
> Did you try to use css to format your dialog box?
>
> Formulaire fenetreAjout = new Formulaire();
> fenetreAjout.addStyleName('my-dialog-box');
>
> and then in the css file
>
> .my-dialog-box{
>   border:1px solid black;
> }
>
>
> HTH
>
> Dominik
> On 22 Nov., 07:29, lolveley  wrote:
>   
>> hi,
>>
>> I copied a program from a magazine with the purpose of learn GWT, and
>> all run fine except the dialog box has no border, as shown in this
>> picture 
>> :http://serv3.upndl.com/raw/6be0cb4a4b30f0e1eee2d4bede59/capture-d...
>> .
>> I use netbeans with the plugin GWT4NB, I use macosx 10.6, I downloaded
>> GWT (the last one), and the application container is tomcat 6.0 .
>> can you tell me why the dialogbox has no border?
>>
>> here is the code of the dialogBox :
>> *
>> public class Formulaire extends DialogBox{
>>
>> public TextBox saisieUrl=new TextBox();
>> public TextBox saisieTitre=new TextBox();
>>
>> public Formulaire(){
>>
>> super();
>> setText("Ajouter une nouvelle image");
>> Grid grid=new Grid(3, 2);
>> grid.setWidget(0, 0, new Label("url"));
>> grid.setWidget(0, 1, saisieUrl);
>> grid.setWidget(1, 0, new Label("titre"));
>> grid.setWidget(1, 1, saisieTitre);
>> Button boutonAjouter=new Button("Ajouter");
>> grid.setWidget(2, 1, boutonAjouter);
>> boutonAjouter.addClickHandler(new ClickHandler() {
>>
>> public void onClick(ClickEvent event) {
>> Formulaire.this.hide();
>> }
>> });
>> add(grid);
>> center();
>> }
>>
>> }
>>
>> *
>> and here is the code for the calling of the dialogBox :
>> *
>> public void onClick(ClickEvent event) {
>>
>> if (event.getSource()==boutonAjouter){
>>
>> Formulaire fenetreAjout = new Formulaire();
>> fenetreAjout.addCloseHandler(this);
>> fenetreAjout.show();
>>
>> }
>> *
>>
>> can you help me?
>>
>> olivier.
>> 
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>   





___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: no border on a dialogBox (macosx,netbeans)

2009-11-24 Thread Dominik Steiner
Did you try to use css to format your dialog box?

Formulaire fenetreAjout = new Formulaire();
fenetreAjout.addStyleName('my-dialog-box');

and then in the css file

.my-dialog-box{
  border:1px solid black;
}


HTH

Dominik
On 22 Nov., 07:29, lolveley  wrote:
> hi,
>
> I copied a program from a magazine with the purpose of learn GWT, and
> all run fine except the dialog box has no border, as shown in this
> picture 
> :http://serv3.upndl.com/raw/6be0cb4a4b30f0e1eee2d4bede59/capture-d...
> .
> I use netbeans with the plugin GWT4NB, I use macosx 10.6, I downloaded
> GWT (the last one), and the application container is tomcat 6.0 .
> can you tell me why the dialogbox has no border?
>
> here is the code of the dialogBox :
> *
> public class Formulaire extends DialogBox{
>
>     public TextBox saisieUrl=new TextBox();
>     public TextBox saisieTitre=new TextBox();
>
>     public Formulaire(){
>
>         super();
>         setText("Ajouter une nouvelle image");
>         Grid grid=new Grid(3, 2);
>         grid.setWidget(0, 0, new Label("url"));
>         grid.setWidget(0, 1, saisieUrl);
>         grid.setWidget(1, 0, new Label("titre"));
>         grid.setWidget(1, 1, saisieTitre);
>         Button boutonAjouter=new Button("Ajouter");
>         grid.setWidget(2, 1, boutonAjouter);
>         boutonAjouter.addClickHandler(new ClickHandler() {
>
>             public void onClick(ClickEvent event) {
>                 Formulaire.this.hide();
>             }
>         });
>         add(grid);
>         center();
>     }
>
> }
>
> *
> and here is the code for the calling of the dialogBox :
> *
> public void onClick(ClickEvent event) {
>
>         if (event.getSource()==boutonAjouter){
>
>             Formulaire fenetreAjout = new Formulaire();
>             fenetreAjout.addCloseHandler(this);
>             fenetreAjout.show();
>
>         }
> *
>
> can you help me?
>
> olivier.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Gilead + Guice + Gwt-Dispatch

2009-11-24 Thread philippe
I Marcos,

I posted on a blog a simple exemple to configuered Gilead in GWT /
Spring context with annotations.

the post is in french but the exemples are in English, comments too.

http://ultrafil.tuxfamily.org/index.php?2009/11/24/145-integrer-gilead-dans-une-application-gwt

Enjoy,
Philippe

On 24 nov, 10:16, Andreas Mueller  wrote:
> Hi Marcos,
> yes, and I love it.
>
> You need to extend DisptachServiceServlet and add the following code
> to your constructor:
>
>                 net.sf.gilead.core.hibernate.HibernateUtil
> hibernateUtil = new net.sf.gilead.core.hibernate.HibernateUtil();
>                 
> hibernateUtil.setSessionFactory(YourHibernateUtil.getSessionFactory
> ());
>                 net.sf.gilead.core.PersistentBeanManager
> persistentBeanManager = new net.sf.gilead.core.PersistentBeanManager
> ();
>                 persistentBeanManager.setPersistenceUtil(hibernateUtil);
>                 persistentBeanManager.setProxyStore(new
> net.sf.gilead.core.store.stateless.StatelessProxyStore());
>                 setBeanManager(persistentBeanManager);
>
> Everything else you have to do is described in the gilead tutorial.
>
> Hope this helps,
>
> Andreas

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




No source code is available for type..., did you forget to inherit a required module?

2009-11-24 Thread Ajit
Hi All,
I am new to GWT.
I m trying to create menu using GWT. This menu will be generated by
parsing the xml file and upon parsing the ArrayList object containing
menu details will be created.
I have included source for menu and parsing XML file in client package
but i m getting following error "No source code is available for
type..., did you forget to inherit a required module?"

Kindly help me out.
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Adwords conversion tracking

2009-11-24 Thread Manu
Hi,

we have our core business application in GWT and are using adwords.

We can't make adwords conversion tracking work with GWT.

=> Has anyone faced this issue and found a solution ?

Regards
Emmanuel

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Dynamically add dropdowns to the page

2009-11-24 Thread noob_boy
Hi,

I am trying to draw a page with 2 drop downs next to each other and a
PLUS button. When user clicks PLUS, I want to add two more drop downs
in the next row,

I have drawn all that, but when I click plus, the additional drop
downs dont show. I even called repaint(). But if I go to some other
page and then come back, I see them.

Any help?

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-24 Thread Julien Ortega
I suspect a problem between SpringMVC and GWT 2.0 rc1. Within the same
projet, same class path, if I load my app from a static html file it
works but if I load my app with a generated html from freemarker and
springMVC I've got a "[ERROR] [gwtdemo] Unable to find
'gwtdemo.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?".
Looks like the moduleloader is not the same.
Any Idea ?

On Nov 23, 5:29 pm, Youen  wrote:
> The main difference with my  2 project is that the main html file is a
> Velocity template managed with spring MVC (so there is no main HTML
> file in my war folder).
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Keyboard navigation & shortcut

2009-11-24 Thread Chrisnofneur
Thank you Thomas.

I've tried those two tricks.

The second one didn't work because I have a button in each cell of my
grid and I don't feel to subclass Button to handle this case.
The first one worked perfectly, I just had to check if my Menu and the
subMenus it contains are target of the event.

I think I'll try to build someting around this.

Chris

On 24 nov, 00:00, Thomas Broyer  wrote:
> On 23 nov, 18:42, Chrisnofneur  wrote:
>
>
>
> > Hi,
>
> > I am building a GWt app which has the following layout:
>
> > - FlowPanel
> >      * Menu Bar
> >       * Grid (2,x)
>
> > I want to add keyboard navigation to the Grid (UP, DOWN & DELETE)
>
> > I call the following code in the constructor of my Widget:
>
> >         // EVENTS
> >         Event.addNativePreviewHandler(new NativePreviewHandler() {
>
> >             @Override
> >             public void onPreviewNativeEvent(final NativePreviewEvent
> > event) {
>
> >                 // Key pressed
> >                 if (event.getTypeInt() == Event.ONKEYDOWN) {
> >                         // Update Grid status (up, down, delete)
> >                 }
> >             }
> >         });
>
> > When I press UP & DOWN keys, no problem I get the events.
> > The problem is that navigation in the MenuBar also fires key events
> > which are catched by this code.
> > So when I select the MenuBar I have a double navigation: in my MenuBar
> > and in my Grid
>
> > The questions are :
> > - How can I prevent my code to catch events which target elements like
> > MenuBar & TextField ?
>
> You'd have to test whether MenuBar.getElement().isOrHasChild(Element.as
> (event.getNativeEvent().getEventTarget()))
>
> > - Is there another way to deal with my problem ?
>
> Why not use event bubbling (aka event delegation) instead of event
> capture? i.e. either:
>  - put the Grid into a FocusPanel and addKeyDownHandler(...)
>  - extend Grid and addDomHandler(..., KeyDownEvent.getType())
> (eventually implementing HasKeyDownHandlers if you don't want to
> handle the KeyDown within the Grid but in the widget that uses the
> Grid)
>
> The user would "just" have to click the Grid (or FocusPanel) to have
> her keyboard interact with the grid (i.e. as soon as she clicks the
> MenuBar or anywhere outside the grid, the handler is no longer called)

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Deployed GWT on ubuntu tomcat is now read-only for sql.

2009-11-24 Thread Samuel Larkin
Problem solved!
Tomcat was overriding catalina.policy upon restart which erased the needed

grant codeBase "file:${catalina.home}/webapps/-" {
  permission java.security.AllPermission;
};

This must be added under policy.d/yourPolicy at leat under Ubuntu in order
to work properly.

On Sun, Nov 22, 2009 at 9:14 PM, Samuel  wrote:

> Hi,
>  I'm building a GWT apps which works as expected from the hosted mode
> in Eclipse.  I require an access to mysql in my which is hosted on my
> server.  To make hosted mode work, I make an ssh tunnel to my server
> and like I said, I can select and update my mysql db.  When I deploy
> my app on my server, the same that hosts mysql, I can read my db
> (select) but I can't update it anymore.  Looks like it's read-only.
>
> Here's what I'm getting.
>
> 23-Nov-2009 2:07:47 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: Exception while dispatching incoming RPC call
> java.security.AccessControlException: access denied
> (java.lang.reflect.ReflectPermission suppressAccessChecks) ^Iat
> java.security.AccessControlContext.checkPermission
> (AccessControlContext.java:323) 
>
> I added those lines to catalina.policy:
> grant codeBase "file:${catalina.home}/webapps/-" {
>   permission java.net.SocketPermission "192.168.36.9:3306",
> "connect";
>   permission java.net.SocketPermission "localhost:3306", "connect";
> };
>
>
> Using GWT1.7, ubuntu 8.04, tomcat, mysql.
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Full GWT Website with MS SQL Server 2008

2009-11-24 Thread Joe
Hello Everyone, Please check this website and any comments or reviews
are welcomed!

http://www.property.com.lb

A Website fully developed in GWT and connected to MS SQL Server 2008

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT 2.0 RC1 developer mode, macosx, eclipse plugin 1.2 RC

2009-11-24 Thread P.G.Taboada
Hi,

I tried to run my project under gwt 2.0 rc1 - but I can't get it up
and running. The Safari browser complains it cannot find the plugin
(and yes, I have downloaded the dmg and installed the safari plugin)
and firefox complains it cannot connect to the hosted mode server.

Since the browser does not connect to the server I can't see anything
on the log.

Any help?

brgds,

Papick

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




How i can localize the FileUpload item in GWT

2009-11-24 Thread Parasuraman
Hi All,

I want to change the browse.. button option available in the
FileUpload of GWT. Browse button option should be localized in the
FileUpload.. How do i localized??

Regards
Parasuraman

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: After compilation of StockWatcher example, GWT 2.0

2009-11-24 Thread Andreas Mueller
Hi Zamy,

what do you want to see? Stockwatcher in action or the generated
javascript files?

To see the application in action in web mode open StockWatcher.html
instead of hosted.html. To see it in hosted mode run the build script:
ant hosted
If you like to see the generated javascript files look in the
stockwatcher directory for the ??.cache.html files

Kind regards,

Andreas

On 23 Nov., 15:28, Zamy  wrote:
> Hi all!
> Initially, excuse me if you will find my questions a bit stupid, i'm
> very noob :D
> After the compilation of the example named StockWatcher, done
> successfully, i saw all the correct file in the directory generated.
>
> But, i have a dubt, and the tutorial isn't so clear at this point:
> i want to see the compiled project, what i have to done?
> I tryed to open the "hosted.html" page (both locally and remote), but
> i only see that:
> "This html file is for hosted mode support."
>
> What i don't know?
>
> thank for you help :)

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




XML from Google API Weather

2009-11-24 Thread Fon Vitale
Hi there,

I'm trying to build a GWT project that consult weather information
from Google API Weather. To do this, i'm working with a servlet which
obtain the information in XML format and JDOM. The fact is that Google
API Weather must give:


-

-









-








-







-







-







-










But when my servlet reads:




Any idea why not is the node expand? This is a part of teh code:

public WeatherInformation getWeather(String location) {
try {
//Declaración de constructor de parseador
SAXBuilder builder = new SAXBuilder();
builder.setExpandEntities(true);

//URL de conexión de servicio climático de Google
String url = new 
String("http://www.google.com/ig/api?weather"; +
location.toLowerCase().trim() + "&hl=es");
URL googleWeatherService = new URL (url);

//Construcción de árbol jerárquico XML
Document doc = builder.build(googleWeatherService);

XMLOutputter out = new XMLOutputter();
System.out.println(out.outputString(doc));

//Raíz del XML
Element root = doc.getRootElement();

//Extracción de las condiciones meteorológicas actuales
Element xmlElement = 
root.getChild("forecast_information");

data.setLoc(xmlElement.getChild("city").getAttributeValue("data"));

xmlElement = root.getChild("current_conditions");
[]

Thank you very much.

FoN

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: New to GWT - Suggestion Required

2009-11-24 Thread Andreas Mueller
Hi Abdullah,

first of all you should notice that GWT is not at all a framework but
a toolkit.
If you need a framework look GWT based frameworks e.g. gwt-dispatch+
gwt-presenter.

If you are searching for a good example look at 
http://james.apache.org/hupa/index.html

to 1) easiest way is to use the session handling of your application
server
to 2) if you use java on server side, gwt-rpc is the first choice. By
the way, all communication will be based on http or https, even if you
use xml-rpc
to 3) as usual


Kind regards,

Andreas
On 22 Nov., 16:41, Abdullah  wrote:
> Hi All,
>
> I am new to GWT infact new to AJAX itself, I was wandering for an ajax
> framework and came across GWT, I went through the articles, docs etc
> etc on GWT and found it to be interesting infact cool.
>
> Now that I have decided to use GWT, I require some suggestion/advice
> from you guys.
>
> We have an ERP system, which I would like to Ajaxify, there are few
> doubts which I would like to clear before I delve into this :
>
> 1) How do we manage sessions when using Ajax ? I have gone through
> many articles on this, but I would like to know your thoughts on this.
>
> 2) Keeping in mind the 1 question, should I use xml-rpc or http ? I
> gues xml-rpc would be better.
>
> 3) How to handle https ?
>
> Hmm .. that's it for now .. this should get me started on GWT :)
>
> Thanks,
> Abdullah

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: OOPHM problem in gwt 2.0.0-rc1

2009-11-24 Thread emir
Unfortunately it did not made any difference :-(

On Nov 24, 1:32 pm, "bch...@gmail.com"  wrote:
> I have the same problem.
>
> For me, adding the following to the call to com.google.gwt.dev.DevMode
> removes this error.
>
>                         
>                         
>
> I don't know why.
>
> Let me know if it works for you.
>
> On Nov 24, 6:35 pm, emir  wrote:
>
>
>
> > Hi, I have some trouble using OOPHM, gwt 2.0.0-rc1 on Windows
> > It is a sample application that contains two GWT modules, namely
> > com.foo.Login and com.foo.Main.
>
> > When run in hosted mode we first open the login.html using the 
> > urlhttp://localhost:/login.html?gwt.codesvr=127.0.0.1:9997
> > after successfully entering username and password it redirects 
> > tohttp://localhost:/main.html?gwt.codesvr=127.0.0.1:9997
>
> > In the hosted mode log messages it says cannot load "main.gwt.xml",
> > not found in classpath etc.
> > This error occurs even we manually visit first the login page then the
> > main page.
>
> > If we run the hosted mode on a linux server it works without error.
> > It seems that on windows in hosted mode we cannot test two different
> > modules from single hosted mode run.
>
> > Regards.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: OOPHM problem in gwt 2.0.0-rc1

2009-11-24 Thread bch...@gmail.com
I have the same problem.

For me, adding the following to the call to com.google.gwt.dev.DevMode
removes this error.




I don't know why.

Let me know if it works for you.

On Nov 24, 6:35 pm, emir  wrote:
> Hi, I have some trouble using OOPHM, gwt 2.0.0-rc1 on Windows
> It is a sample application that contains two GWT modules, namely
> com.foo.Login and com.foo.Main.
>
> When run in hosted mode we first open the login.html using the 
> urlhttp://localhost:/login.html?gwt.codesvr=127.0.0.1:9997
> after successfully entering username and password it redirects 
> tohttp://localhost:/main.html?gwt.codesvr=127.0.0.1:9997
>
> In the hosted mode log messages it says cannot load "main.gwt.xml",
> not found in classpath etc.
> This error occurs even we manually visit first the login page then the
> main page.
>
> If we run the hosted mode on a linux server it works without error.
> It seems that on windows in hosted mode we cannot test two different
> modules from single hosted mode run.
>
> Regards.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




OOPHM problem in gwt 2.0.0-rc1

2009-11-24 Thread emir
Hi, I have some trouble using OOPHM, gwt 2.0.0-rc1 on Windows
It is a sample application that contains two GWT modules, namely
com.foo.Login and com.foo.Main.

When run in hosted mode we first open the login.html using the url
http://localhost:/login.html?gwt.codesvr=127.0.0.1:9997
after successfully entering username and password it redirects to
http://localhost:/main.html?gwt.codesvr=127.0.0.1:9997

In the hosted mode log messages it says cannot load "main.gwt.xml",
not found in classpath etc.
This error occurs even we manually visit first the login page then the
main page.

If we run the hosted mode on a linux server it works without error.
It seems that on windows in hosted mode we cannot test two different
modules from single hosted mode run.

Regards.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Removing long classnames from RPC messages

2009-11-24 Thread Andreas Mueller
Hi,

one possibility would be to use a source code obfuscator before
gwtcompile.

Kind Regards,

Andreas

On 20 Nov., 10:57, inventor  wrote:
> Hi,
>
> I would like to optimize RPC comminication of my GWT application. If I
> look into the  RPC messages I am seeing many classnames from
> serialized objects and I think the uncompressed message could be
> nearly the half size if these classnames would be replaced by short
> identifiers. Is there a way to achieve this?
>
> Kind regards,

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Design Patterns

2009-11-24 Thread Andreas Mueller
Hi Lúcio,

Composite in GWT is indeed the composite pattern as described in
Wikipedia:...the composite pattern is a partitioning design pattern.
Composite allows a group of objects to be treated in the same way as a
single instance of an object.

Using com.google.gwt.user.client.ui.Composite you can treat a group of
e.g. Widgets as a single instance of an object.

Regards,

Andreas

On 23 Nov., 15:31, Lúcio Camilo  wrote:
> The Command I understand, but and the Composite? Does not seems the same
> than the pattern.
> There are others design Patterns in GWT?
>
> 2009/11/23 Martin Trummer 
>
>
>
> > maybe you should ask a more detailed question
>
> > the GWT stuff is just an implementation of the corresponding pattern
> > with the same name
> > you'll find plenty of explanations for the patterns when you google
> > for them
> > or look it up in wiki
> >http://en.wikipedia.org/wiki/Command_pattern
>
> > I don't know what more one could say about this..
>
> > On 21 Nov., 23:58, Lúcio Camilo  wrote:
> > > But someone can xplain what?
>
> > > 2009/11/20 Martin Trummer 
>
> > > > yes
>
> > > > On 19 Nov., 21:08, Lúcio Camilo  wrote:
> > > > > The component Composite and the object Command have something in
> > common
> > > > with
> > > > > the design patterns with same name?
>
> > > > --
>
> > > > 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-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> >  > nsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> > --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: cache.html file is not cached with JBoss(Tomcat) and Internet Explorer 6-7

2009-11-24 Thread pepgrifell
request headers:
***
GET /AnthemaWeb/com.nte.anthema.gwt.AnthemaGWT/
3A139A4DB7E5BFE75C879FD9A4250603.cache.html HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-
shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument,
application/x-ms-xbap, application/x-ms-application, application/
vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: 
https://localhost/AnthemaWeb/com.nte.anthema.gwt.AnthemaGWT/AnthemaGWT.jsp
Accept-Language: es
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
MDDR; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)
Accept-Encoding: gzip, deflate
Host: localhost
Connection: Keep-Alive
Cookie: x-auto-8=m%3Asize%7Cf%3A194;
JSESSIONID=82E0B4DCE5D822C0CAA7A764214FC97C
***

Response headers:
***
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: public
Cache-Control: max-age=3600
Expires: Wed, 24 Nov 2010 09:42:57 GMT
X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build:
SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0
ETag: W/"7046511-125864000"
Last-Modified: Mon, 23 Nov 2009 18:12:44 GMT
Content-Encoding: gzip
Content-Type: text/html
Content-Length: 7046511
Date: Tue, 24 Nov 2009 09:42:56 GMT
***


On 23 nov, 15:41, "buz...@gmail.com"  wrote:
> Hi,
>
> Please share your HTTP headers forcache.html.
> Also check your GZIP filter if it is not overriding some of the
> settings already set by cache filter.
>
> Dmitry
>
> On Nov 23, 1:04 pm, pepgrifell  wrote:
>
>
>
> > Hi,
>
> > the problem is that *.css,*.js and images are cached but the only file
> > that is not cached is mycache.htmlfile ... The file is about 3MB and
> > each time the users enter in the application, this file is downladed.
> > The only different thing fromcache.htmlfile and the others
> > (css,js,images...) is thatcache.htmlfile is gzipped before sending
> > it to the client.
>
> > I tried to add :
> > 
> >  > disableProxyCaching="false" />
> > 
>
> > in META-INF/context.xml file (WAR) but it's not working either. (we
> > use JAAS. I tried with FormAuthenticator and SSLAuthenticator)
>
> > Any idea whycache.htmlfile is not cached ?
>
> > Thanks !
>
> > On 20 nov, 20:15, Yozons Support on Gmail  wrote:
>
> > > For Tomcat, if you have this in your META-INF/context.html:
>
> > > 
> > >          > > className="org.apache.catalina.authenticator.NonLoginAuthenticator"
> > >                 disableProxyCaching="false" />
> > > 
>
> > > This will prevent it from doing the caching.  If you have any other type 
> > > of
> > > Authenticator in use already, you can probably just add the
> > > disableProxyCaching="false" attribute to it.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: event for detecting DOM.createElement() is completed

2009-11-24 Thread Thomas Broyer


On Nov 24, 3:37 am, bhomass  wrote:
> I need to know when a widget is finished rendering in order to adjust
> its size. I see a javascript method
> element.addEventListener(eventType, handler, capture);
>
> can someone tell me what eventType I can use to detect the completion
> of DOM.createElement()?

createElement is synchronous/blocking; it doesn't return before
completion, so there's no need for an event.
You might need to attach the widget (or at least its element) to the
document though to have its size computed so you can later adjust it.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: How to set the format for a DateBox?

2009-11-24 Thread Thomas Broyer


On Nov 24, 5:28 am, Stevko  wrote:
> Thanks Thomas,
> I missed that ctor when looking at the interface spec.
>
> The final syntax is a bit twisted...
>
> myDateBox.setFormat( new DateBox.DefaultFormat( myDateTimeFormat ) );
>
> Care to guess what timezone GWT's java.util.Date and DateBox are
> using?
> Perhaps the browser's timezone, server's timezone, GMT, or something
> else?

Dates are in the client (browser) timezone.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Gilead + Guice + Gwt-Dispatch

2009-11-24 Thread Andreas Mueller
Hi Marcos,
yes, and I love it.

You need to extend DisptachServiceServlet and add the following code
to your constructor:

net.sf.gilead.core.hibernate.HibernateUtil
hibernateUtil = new net.sf.gilead.core.hibernate.HibernateUtil();

hibernateUtil.setSessionFactory(YourHibernateUtil.getSessionFactory
());
net.sf.gilead.core.PersistentBeanManager
persistentBeanManager = new net.sf.gilead.core.PersistentBeanManager
();
persistentBeanManager.setPersistenceUtil(hibernateUtil);
persistentBeanManager.setProxyStore(new
net.sf.gilead.core.store.stateless.StatelessProxyStore());
setBeanManager(persistentBeanManager);

Everything else you have to do is described in the gilead tutorial.

Hope this helps,

Andreas

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT and FlowPlayer

2009-11-24 Thread nacho
I maded a native method to initialize Flow Player when the HTMLPanel
is rendered. I hope it helps you.

protected static native void play() /*-{
$wnd.flowPlayerInit("player", 
"flowplayer/flowplayer-3.1.1.swf");
}-*/;

On Nov 21, 4:26 am, bmattar  wrote:
> I am trying to replace JW Player with Flow Player in my web page.
> My page used JW player via GWT2SWF widget, which works great. Flow
> player however, needs to call a JS function to initialize properly.
>
> Is there any way to get Flow Player to work with GWT2SWF?
>
> The problem is that I want the player embedded in an HTMLPanel widget.
> When I embed the Flow Player initialization JS code within the HTML
> Panel widget text, it doesn't work at all. But when I embed the JS
> init function in the static HTML page used by my GWT app, it works
> fine!

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: java.util.List

2009-11-24 Thread ben fenster
10x u saved me :)

On 24 נובמבר, 07:43, Jason Morris  wrote:
> Eclipse fills in methods based on the JDK installed, not the GWT emulated 
> JRE. GWT's implementation
> of the JRE sits in the package com.google.gwt.emul.java, not java.
>
> ben fenster wrote:
> > thanks i removed the override and it worked can you please tell me why
> >  did act like that since the eclipse filled out the implementation
> > acording to the interface and if the method is not suppored  how did
> > it got into the imlementation in the first place
>
> > On 23 נובמבר, 16:52, Jason Morris  wrote:
> >> Hi ben,
>
> >> If you are using a version of GWT < 2.0 this error appears because the 
> >> standard GWT List interface
> >> doesn't have the subList method. You can either remove the @Override 
> >> annotation from that method, or
> >> extend AbstractList instead of implementing List directly (generally 
> >> considered a better option
> >> anyways).
>
> >> You could also upgrade to GWT 2.0-rc, which has the subList method 
> >> included in the interface definition.
>
> >> Hope that helps.
> >> //Jason
>
> >> ben fenster wrote:
> >>> import java.util.Collection;
> >>> import java.util.Iterator;
> >>> import java.util.List;
> >>> import java.util.ListIterator;
> >>> public class bla implements List {
> >>>   �...@override
> >>>    public boolean add(String e) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public void add(int index, String element) {
> >>>            // TODO Auto-generated method stub
> >>>    }
> >>>   �...@override
> >>>    public boolean addAll(Collection c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public boolean addAll(int index, Collection c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public void clear() {
> >>>            // TODO Auto-generated method stub
> >>>    }
> >>>   �...@override
> >>>    public boolean contains(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public boolean containsAll(Collection c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public String get(int index) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public int indexOf(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return 0;
> >>>    }
> >>>   �...@override
> >>>    public boolean isEmpty() {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public Iterator iterator() {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public int lastIndexOf(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return 0;
> >>>    }
> >>>   �...@override
> >>>    public ListIterator listIterator() {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public ListIterator listIterator(int index) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public boolean remove(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public String remove(int index) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public boolean removeAll(Collection c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public boolean retainAll(Collection c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public String set(int index, String element) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public int size() {
> >>>            // TODO Auto-generated method stub
> >>>            return 0;
> >>>    }
> >>>   �...@override
> >>>    public List subList(int fromIndex, int toIndex) {
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public Object[] toArray() {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public  T[] toArray(T[] a) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>> }
> >>>  i am did the exact same thing and got
> >>> [ERROR] Line 131: The method subList(int, int) of type bla must
> >>> override or i