Re: DateTimeFormat - format month bug

2009-09-21 Thread MiSt

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



Re: MySQL Connection

2009-09-21 Thread Akash

Hey,
You are going on wrong way! You can only use java.util and java.lang
on client side code ... for everything else you will have to use
server side code which returns results to you client.


On Sep 3, 4:21 am, GumbyGWTBeginner  wrote:
> Hi Guys,
>
> Was wondering if anyone could answer a small question?
>
>  I have created a class called DBFlow  (Code below) which connects to
> a MySQL DB and retrieve the number of rows in a DB.
>
> I am new at this could anyone throw some light on the subject.
>
> Error Message
>
> [ERROR] Line 51: The method forName(String) is undefined for the type
> Class
>
> Code to Call Class
>
>                   DBFlow TestTheDB = new DBFlow();
>                   TestTheDB.main();
>
> Class Code
>
> import java.sql.Connection;
> import java.sql.DriverManager;
> import java.sql.ResultSet;
> import java.sql.SQLException;
> import java.sql.Statement;
> import java.lang.Class;
> import com.google.gwt.user.client.Window;
>
> public class DBFlow {
>
>         public void onModuleLoad() {
>                 //sdsd
>
>         }
>
>         public DBFlow() {
>                 //sdsd
>
>         }
>
>         public void main() {
>                 Connection conn = null;
>                 try {
>                         conn = getConnection();
>                         String tableName = "family";
>                         Window.alert("tableName=" + tableName);
>                         Window.alert("conn=" + conn);
>                         Window.alert("rowCount=" + countRows(conn, 
> tableName));
>                 } catch (Exception e) {
>                         Window.alert("No Connect");
>                         e.printStackTrace();
>                         //System.exit(1);  // Edit out as it is an erro
>                 } finally {
>                         // release database resources
>                         try {
>                                 conn.close();
>                         } catch (SQLException e) {
>                                 e.printStackTrace();
>                         }
>                 }
>         }
>
>         public Connection getConnection() throws Exception {
>                 String driver = "com.mysql.jdbc.Driver";
>                 String url = "jdbc:mysql://localhost:3306/dogs";
>                 String username = "root";
>                 String password = "mypass";
>
>                 Class.forName(driver); // load MySQL driver
> ***Error here apprantly
>                 Connection conn = DriverManager.getConnection(url, username,
> password);
>                 return conn;
>         }
>
>         public int countRows(Connection conn, String tableName) throws
> SQLException {
>            // select the number of rows in the table
>                 Statement stmt = null;
>                 ResultSet rs = null;
>                 int rowCount = -1;
>                 try {
>                         stmt = conn.createStatement();
>                         rs = stmt.executeQuery("SELECT COUNT(*) FROM " + 
> tableName);
>                         // get the number of rows from the result set
>                         rs.next();
>                    rowCount = rs.getInt(1);
>                 } finally {
>                         rs.close();
>                         stmt.close();
>                 }
>                 return rowCount;
>         }
>
> }

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



Apache tomcat

2009-09-21 Thread ak

What is the Apache Tomcat Version used by GWT 1.6.4?

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



Re: oophm - how to?

2009-09-21 Thread Paul Robinson

On my linux box, a trunk or snapshot build puts it into
build/lib/gwt-dev-oophm.jar
and
build/staging/gwt-linux-0.0.0/gwt-dev-oophm.jar

otismo wrote:
> Where's gwt-dev-oophm.jar?
>
> The instructions on oophm (http://code.google.com/p/google-web-toolkit/
> wiki/UsingOOPHM) say that jar must be included to run oophm.  I've
> built gwt from the trunk and I've built branches/oophm.  Both builds
> completed successfully but I still can't find a gwt-dev-oophm.jar.
>
> I've read a couple of the blogs about how to run oophm but still can't
> get it going.
>
> Can anyone give me some pointers?
>
> Thanks,
> Peter
> >
>
>   

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



Re: Suddenly getting exceptions during compile in TypeOracle annotation processing

2009-09-21 Thread martijn.spr...@gmail.com

I actually were not able to solve it.

I'm starting work on this again, and am tempted to switch back to
using Hibernate xml instead of annotations, since that seemed to be
the thing that caused these sudden issues for me to happen.

Have you been able to find a solution?

Cheers,
Martijn

On Sep 6, 5:56 am, Youlian  wrote:
> Hello martijn!
>
> I have the exact same problem. Were you able to solve 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



oophm - how to?

2009-09-21 Thread otismo

Where's gwt-dev-oophm.jar?

The instructions on oophm (http://code.google.com/p/google-web-toolkit/
wiki/UsingOOPHM) say that jar must be included to run oophm.  I've
built gwt from the trunk and I've built branches/oophm.  Both builds
completed successfully but I still can't find a gwt-dev-oophm.jar.

I've read a couple of the blogs about how to run oophm but still can't
get it going.

Can anyone give me some pointers?

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



Re: [ERROR] : Unable to find 'ntm/Correction.gwt.xml' on your classpath; ...

2009-09-21 Thread Sripathi Krishnan
* 2) each external class used in the app must be explicitly entered with
the "inherits" tag in the App.gwt.xml file.
*
That is incorrect.

If you want to use external classes, this is what you have to do -

   1. Create a jar file containing both java source files and the
   corresponding classes. GWTC needs the *.java files, while Eclipse would need
   the *.class files.
   Typical structure of your jar file is -
   com
   --ntm
   -correction
   Correction.gwt.xml
   client
   
   2. You need to create a gwt.xml file for your module. It need not have a
   Entry point class, but all other things remain same.
   3. Then, in your second module, you put an inherits tag and specify the
   module name, not the class name. In this case, you will specifiy
   com.ntm.correction.Correction - because that is where you have the .gwt.xml
   file


--Sri


2009/9/21 thc 

>
> Hi, I am having difficulty trying to compile to javascript ("ant
> build" - web mode)  my GWT app with externally-include jar files (that
> is, non google, non gwt jar files).
>
> My understanding of the process for these jar files is that:
>
> 1) you ensure they are on your classpath (in my case, my eclipse build
> path since I use eclipse for IDE).
> 2) each external class used in the app must be explicitly entered with
> the "inherits" tag in the App.gwt.xml file.
>
> However, I get the following error for any external class I capture in
> the inherits tag in the gwt.xml file:
>
> [java]Loading inherited module 'ntm.Correction'
> [java]   [ERROR] Unable to find 'ntm/Correction/gwt.xml' on
> your classpath; could be a typo, or maybe you forgot to include a
> classpath entry for source?
>
> [java][ERROR] Line 15: Unexpected exception while processing
> element 'inherits'
> [java] com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>
> etc..
>
> Here is the actual entire gwt.xml file:
>
> 
>  EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
> source/core/src/gwt-module.dtd
> ">
> 
>  
>  
>
>  
>  
>  
>  
>  
>  
>
>  
> 
>
>  
> 
>
>
> Furthermore, it makes no difference which required external class I
> put there, the error also has the same ambiguous format. In other
> words, I can include anything as:
>
> 
>
> , and the error is always the same, and dependably:
>
> [java]Loading inherited module 'foo.Bar'
> [java]   [ERROR] Unable to find 'foo/Bar/gwt.xml' on your
> classpath; could be a typo, or maybe you forgot to include a classpath
> entry for source?
>
> [java][ERROR] Line 15: Unexpected exception while processing
> element 'inherits'
> [java] com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>
> etc..
>
> I do not understand how to interpret this message nor how to correct
> and would be grateful for any insights. Thanks
> >
>

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



Re: MySQL Connection

2009-09-21 Thread Sripathi Krishnan
If you are using Google App Engine (separate from GWT), you *cannot* use an
external database. App Engine doesn't allow you to open socket connections,
and that is exactly what the getConnection() method does.

--Sri


2009/9/21 Chamira Fernando 

>
> Hi All,
>
> I have the same problem when I connect to MySQL database,
>
> What I understand from the GWT doc, whatever server side scripts we
> have to in .server package and this will be on server side on host
> mode when we debug the application.
>
> here is the scenario
>
> I can get the data from the server side if there is no database
> connection, everything works fine, the moment I run database
> connection method
>
> I get errors! narrowing the problem i tried to load the class
> (Class.forName(DRIVER)) only.. it seems class is loaded (i get no
> errors) but the moment I run
> connection = DriverManager.getConnection(URL,USER,PASS); method will
> cause the problem .. if this is an sql error, should be caught ??
>
> mind you
> my mysql connector is in proper dirs (otherwise I can't load DRIVER ).
>
> Do I need to set $catalina.home for hosted mode? then can someone help
> to do it (im using eclipse plugin)
>
> Can someone come up with an answer, prefer small script to
> understand...
>
> here is the stack trace I got
>
> Sep 21, 2009 12:05:02 PM
> com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: [1253534702085000] javax.servlet.ServletContext log: Exception
> while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.lang.String
> com.pro.student.client.GreetingService.greetServer(java.lang.String)'
> threw an unexpected exception: java.lang.ExceptionInInitializerError
>at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:360)
>at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:546)
>at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:166)
>at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:313)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at org.mortbay.jetty.Server.handle(Server.java:313)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>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)
> Caused by: java.lang.ExceptionInInitializerError
>at com.mysql.jdbc.NonRegisteringDriver.connect
> (NonRegisteringDriver.java:283)
>at java.sql.DriverManager.getConnection(DriverManager.java:525)
>at java.sql.DriverManager.getConnection(DriverManager.java:171)
>at com.pro.student.server.GreetingServiceImpl.db
> (GreetingServiceImpl.java:52)
>at com.pro.student.server.GreetingServiceImpl.greetServer
> (GreetingServiceImpl.java:23)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.refle

Re: jvm crash

2009-09-21 Thread Sripathi Krishnan
No .. that's not the way it is supposed to be. I work on ubuntu linux, and
am able to work without resorting to sudo (and I am not a super user).

Perhaps you installed GWT in a folder to which you don't have access?


--Sri


2009/9/21 lam lam 

>
> I did a "ant build" under samples/Mail with the errors:
>
> gwtc:
> [java] Compiling module com.google.gwt.sample.mail.Mail
> [java] #
> [java] # An unexpected error has been detected by Java Runtime
> Environment:
> [java] #
> [java] #  SIGSEGV (0xb) at pc=0x0625665c, pid=7535,
> tid=2690198416
> [java] #
> [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode
> linux-x86)
> [java] # Problematic frame:
> [java] # V  [libjvm.so+0x25665c]
> [java] #
> [java] # An error report file with more information is saved as:
> [java] # /home/falam/Downloads/google ajax/gwt-linux-1.7.0/
> samples/Mail/hs_err_pid7535.log
> [java] #
> [java] # If you would like to submit a bug report, please visit:
> [java] #   http://java.sun.com/webapps/bugreport/crash.jsp
> [java] # The crash happened outside the Java Virtual Machine in
> native code.
> [java] # See problematic frame for where to report the bug.
> [java] #
>
> BUILD FAILED
>
> I found the solutions was "sudo ant build".
>
> Seems only super users can compile it under Linux. Wonder if this is
> expected result?
>
> >
>

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



Re: What to inherit for ScrollTable (and other widgets)?

2009-09-21 Thread Venkatesh Babu
Hi Brandon,

You might want to check your HTML DOM once. If all works fine, then you'll
have the table in DOM but the table won't get displayed until the width &
height are not explicitly specified (through CSS or by calling the
scrolltable methods).

So, try setting width & height for your table.

-Venkatesh


On Mon, Sep 21, 2009 at 2:32 PM, Starchy Grant wrote:

>
> Hi Brandon,
>
> Try replacing the ScrollTable line with this one:
>
> 
>
> Also, if you're using the Gen2 version, you can elide the WidgetIdeas
> include.
>
> Regards,
> Starchy
>
> On Sep 18, 5:10 pm, bnedwek  wrote:
> > Hi everybody,
> >
> > Sorry for what must be a ridiculously simplistic question, but:
> >
> > What do I include in my project's include XML file to get ScrollTable
> > to work?  I have the incubator jar file in the project, I'm importing
> > all the classes I need, but I'm not sure which of the .gwt.xml files I
> > need.  I've tried
> >
> >   
> >   
> >   
> >
> > and that will load in hosted without errors, but the table doesn't
> > actually show up.
> >
> > Thanks for your help,
> >
> > - Brandon
>
> >
>

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



Re: Problem compiling & deploying GWT-Fx

2009-09-21 Thread Carlos Niebla

Hi Adam,

I've encontered two problems: first, the GWT had to be updated (I've
done so for v1.7 / Linux). I'm using Galileo 3.5 and it encountered no
updates for the IDE. The second, there was a warning: "The following
classpath entry '...' will not be available on the server's
classpath" (for the GWT Fx .jar file), I've applied the QuickFix
Eclipse suggested (copy to war/WEB-INF/lib and actualize the class
path) and the warning vanished.

Then, I recompiled & deployed (it worked fine on hosted mode, on
Eclipse). It's not working. The only error I get on Firefox error
console is:

Error: a is null
Source File: 
http://localhost/naya/nayaweb/A1131B9A61762EF28226E382A7719C2B.cache.html
Line: 614

_=tN.prototype=new tM();_.tI=91;function oO(c,a,b){var d;d=c.d+b*(c.a-
c.d);if(c.c){a.style[ad]=De+d/100}else{a.style[c.e]=d+c.f}}

but the same error apears on any other project using only GWT.

I'm working on the simpliest of GWT-Fx example, here's my source code:

NewGWTFx.gwt.fx
--

http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
source/core/src/gwt-module.dtd">

  
  

  
  
  
  
  
  

  
  
  
  


NewGWTFx.html
-


  

NewGWTFx Test


  

  

  


FIRPanel.java
-
package com.naya.newgwtfx.client;

import org.adamtacy.client.ui.NEffectPanel;
import org.adamtacy.client.ui.effects.NEffect;
import org.adamtacy.client.ui.effects.events.EffectCompletedEvent;
import org.adamtacy.client.ui.effects.events.EffectCompletedHandler;

import com.google.gwt.event.dom.client.LoadEvent;
import com.google.gwt.event.dom.client.LoadHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;

public class FIRPanel extends Composite {

private boolean forward = false;
String newImageUrl;
private NEffect swapEffect;
private NEffectPanel swapPanel;
private Image visImage;

public FIRPanel(String firstImageUrl, NEffect swapApproach) {
visImage = new Image(firstImageUrl);
swapEffect = swapApproach;
swapPanel = new NEffectPanel();
swapEffect.addEffectCompletedHandler(new
EffectCompletedHandler(){
public void onEffectCompleted
(EffectCompletedEvent handler) {
if (forward) {
visImage.setUrl(newImageUrl);
forward = false;
} else {
forward = true;
}
}
});
swapPanel.add(visImage);
swapPanel.addEffect(swapEffect);

visImage.addLoadHandler(new LoadHandler() {
public void onLoad(LoadEvent event) {
runEffect
();
}
});
initWidget(swapPanel);
swapEffect.setPosition(1);
}

private void runEffect() {
if (forward)
swapEffect.play(0, 1);
else
swapEffect.play(1, 0);
}

public void swapImage(String newImageUrl) {
this.newImageUrl = newImageUrl;
runEffect();
}
}

NewGWTFx.java
-
package com.naya.newgwtfx.client;

import org.adamtacy.client.ui.effects.NEffect;
import org.adamtacy.client.ui.effects.impl.Fade;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.naya.newgwtfx.client.FIRPanel;

public class NewGWTFx implements EntryPoint {

NEffect fd = new Fade();
FIRPanel f = new FIRPanel("http://www.google.com/images/logo.gif";,
fd);

public void onModuleLoad() {
f.swapImage("http://www.naya.com.mx/img/logo_NAYA_c.jpg";);
RootPanel.get().add(f);
}
}

Many thanks in advance!

On Sep 19, 4:24 am, Adam T  wrote:
> Hi Carlos,
>
> You shouldn't see anything in the war file, the code for gwt-fx gets
> compiled into JavaScript by the GWT compiler - just adding the jar
> file as you have to a lib directory and is enough (assuming your
> classpaths are set up ok).
>
> I'd suggest checking the log of the compile to make sure your code has
> compiled, and if so, then using an inspection tool on your browser to
> see what is happening (e.g. Firebug or similar).
>
> Hope that helps,
>
> Adam
>
> On 12 Sep, 02:15, Carlos Niebla  wrote:
>
> > Hi,
>
> > I've been working with some examples ofGWT-Fx, they run fine in
> > hosted mode within Eclipse, but when I compile and deply to web server
> > they show nothing at all.
>
> > I've inspected the resulting war dir, and there's not a "org/adam*"
> > set of directories.
>
> > As I said, in my setup I have added the jar filegwt-fxv4.0.0.jar to
> > a "lib" 

Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Pion

Unfortunately, there is no .metadata folder.

There are .settings, .classpath and .project.

On Sep 21, 2:29 pm, Jason Parekh  wrote:
> No problem!
> If you open your Eclipse workspace folder, there should be a folder called
> ".metadata".  Inside that, there should be a file called ".log".
>
> I believe Windows hides these files by default, so you may need to use the
> command prompt to find this file (either that, or turn on the setting to
> show hidden files -- 
> seehttp://windowshelp.microsoft.com/Windows/en-US/help/27e9a81a-fac7-457...)
>
> If neither the file nor folder are present, then there may not be any
> detailed error logs.
>
> jason
>
> On Mon, Sep 21, 2009 at 5:20 PM, Pion  wrote:
>
> > Sorry for the late reply. I just returned to my desk.
>
> > Where can I find those info? Can you give me more specific examples? I
> > can't seem to find them.
>
> > On Sep 21, 12:11 pm, Jason Parekh  wrote:
> > > Strange!  Could you send us the contents of your WORKSPACE/.metadata/.log
> > > file?  It might have more detailed information about the error.
> > > Thanks
> > > jason
>
> > > On Mon, Sep 21, 2009 at 1:51 PM, Pion  wrote:
>
> > > > I right-click on my java test file and select "Run As -> GWT Junit
> > > > Test". Then, I got the following error: "The input type of the launch
> > > > configuration does not exist".
>
> > > > On Sep 21, 10:27 am, Jason Parekh  wrote:
> > > > > On Mon, Sep 21, 2009 at 1:21 PM, Pion  wrote:
>
> > > > > > I got the error when following the instructions on
> > > > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
>
> > > > > > Followinghttp://code.google.com/eclipse/docs/gwt_junit.htmldidnot
> > > > > > give me any error. I went to Eclipse "Run -> Run Configurations ...
> > "
> > > > > > which display a dialog box. But the "Run" button (on the dialog
> > box)
> > > > > > has been disabled so I cannot run it.
>
> > > > > Could you try right-clicking on your test class and choosing Run as
> > ->
> > > > GWT
> > > > > Test case?
>
> > > > > Thanks,
> > > > > jason
>
> > > > > > On Sep 21, 9:41 am, Jason Parekh  wrote:
> > > > > > > Hi Pion,
>
> > > > > > > Did the error you described ("The input type of the launch
> > > > configuration
> > > > > > > does not exist") come when you were following the StockWatcher
> > test
> > > > > > > instructions or the Google Plugin for Eclipse test instructions?
>
> > > > > > > What error did you run into when you tried the Google Plugin for
> > > > Eclipse
> > > > > > > test instructions (the second URL you mentioned)?
>
> > > > > > > Thanks
> > > > > > > jason
>
> > > > > > > On Mon, Sep 21, 2009 at 11:53 AM, Pion 
> > wrote:
>
> > > > > > > > I am following the instructions on
> > > > > > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > > > > > > I can run the junit successfully using command line. My
> > > > environments
> > > > > > > > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
>
> > > > > > > > However, I am having problem when trying to run it on Eclipse.
> > > > Eclipse
> > > > > > > > gave me the following error message: "The input type of the
> > launch
> > > > > > > > configuration does not exist".
>
> > > > > > > > I tried to follow the instructions on
> > > > > > > >http://code.google.com/eclipse/docs/gwt_junit.html.
> > > > > > > > My Eclipse "Run" button is disabled -- I can not click it.
>
> > > > > > > > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



[ERROR] : Unable to find 'ntm/Correction.gwt.xml' on your classpath; ...

2009-09-21 Thread thc

Hi, I am having difficulty trying to compile to javascript ("ant
build" - web mode)  my GWT app with externally-include jar files (that
is, non google, non gwt jar files).

My understanding of the process for these jar files is that:

1) you ensure they are on your classpath (in my case, my eclipse build
path since I use eclipse for IDE).
2) each external class used in the app must be explicitly entered with
the "inherits" tag in the App.gwt.xml file.

However, I get the following error for any external class I capture in
the inherits tag in the gwt.xml file:

 [java]Loading inherited module 'ntm.Correction'
 [java]   [ERROR] Unable to find 'ntm/Correction/gwt.xml' on
your classpath; could be a typo, or maybe you forgot to include a
classpath entry for source?

 [java][ERROR] Line 15: Unexpected exception while processing
element 'inherits'
 [java] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)

etc..

Here is the actual entire gwt.xml file:


http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
source/core/src/gwt-module.dtd">

  
  

  
  
  
  
  
  

  


  



Furthermore, it makes no difference which required external class I
put there, the error also has the same ambiguous format. In other
words, I can include anything as:



, and the error is always the same, and dependably:

 [java]Loading inherited module 'foo.Bar'
 [java]   [ERROR] Unable to find 'foo/Bar/gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?

 [java][ERROR] Line 15: Unexpected exception while processing
element 'inherits'
 [java] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)

etc..

I do not understand how to interpret this message nor how to correct
and would be grateful for any insights. Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Google Map for GWT 's exception

2009-09-21 Thread Sumit Chandel
Hi ヒトリ,
It seems like you have conflicting JARs on your hosted mode launch
configuration or project classpath. Which JDK are you using for development
and for launching the hosted mode process? From the exception message you
received, it's possible that the specific JDK you're using is rebundling
some SWT bindings and causing the class lookup to
sun.plugin2.main.server.IExplorerPlugin to occur and fail. If you could post
up the classpath you're using plus some details about the JDK, it should
help figure out what's going on.

Hope that helps,
-Sumit Chandel

On Thu, Sep 17, 2009 at 7:09 AM, ヒトリ  wrote:

>
> i added the google map to my gwt project,when i run  the host browser
> first time,the page  is ok,but when i  refresh the browser ,it throws
> exception like this:
>  [ERROR] sun/plugin2/main/server/IExplorerPlugin
> java.lang.NoClassDefFoundError: sun/plugin2/main/server/
> IExplorerPlugin
>at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>at com.google.gwt.dev.SwtHostedModeBase.processEvents
> (SwtHostedModeBase.java:235)
>at com.google.gwt.dev.HostedModeBase.pumpEventLoop
> (HostedModeBase.java:558)
>at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
>at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
> Caused by: java.lang.ClassNotFoundException:
> sun.plugin2.main.server.IExplorerPlugin
>at java.net.URLClassLoader$1.run(Unknown Source)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findClass(Unknown Source)
>at java.lang.ClassLoader.loadClass(Unknown Source)
>at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>at java.lang.ClassLoader.loadClass(Unknown Source)
>at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>at com.google.gwt.dev.SwtHostedModeBase.processEvents
> (SwtHostedModeBase.java:235)
>at com.google.gwt.dev.HostedModeBase.pumpEventLoop
> (HostedModeBase.java:558)
>at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
>at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
>
>
> who can help me?
>
> >
>

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



Re: How do you set/get host page form values from GWT?

2009-09-21 Thread rb

Found it:

InputElement inputElement = ((InputElement)Document.get
().getElementById("stateId"));

inputElement.setValue("CO");

On Sep 21, 3:22 pm, rb  wrote:
> How do you set/get host page form values from GWT?
>
> For example:
>
>   
>   
>    
>
> From GWT, how do I set/get the state value?
>
> I tried:
>   native String getState() /*-{
>      return orderForm.state.value;
>    }-*/;
>
> but got the error "'orderForm' is undefined".
>
> Thanks for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Server-only functions

2009-09-21 Thread Sumit Chandel
Hi all,
Thanks for expressing use cases for an @ServerOnly type annotation. I've
updated Issue # and forwarded it over to Scott Blum for further review. Feel
free to star the issue to keep track of updates.

Issue #3769:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3769

Cheers,
-Sumit Chandel

On Thu, Sep 17, 2009 at 5:25 AM, David Given  wrote:

>
> Sripathi Krishnan wrote:
> [...]
> > And supposing you end up guaranteeing the above, it means you have two
> > sets of functions in your class which don't speak to each other. Which
> > means they have no business being together in the same class. You could
> > just make a ServerSideDTO that extends from your ClientSideDTO and add
> > the extra methods.
>
> That's not always possible. I have much the same situation, except my
> DTOs themselves have a class structure. I end up having this:
>
> CObject
>   CThing
> COtherThing
>
> SObject
>   SThing
> SOtherThing
>
> ...where S classes exist on the server and C classes on the client. I
> can't have SOtherThing inherit from COtherThing because it needs to
> inherit from SThing and Java only supports single inheritance.
>
> As a result I'm having to duplicate quite a lot of logic that's needed
> in both class hierarchies. There are solutions to this --- but most of
> them involve creating a *third* complete class hierarchy containing the
> common logic and delegating functionality to that from the S and C classes.
>
> This isn't a situation where the proposed @ServerOnly annotation would
> help --- although I could certainly use it elsewhere --- but you should
> be aware that things aren't always as simple as they first seem. You
> can't make a programmer's life easier by taking tools away from them.
>
> --
> ┌─── dg@cowlark.com ─ http://www.cowlark.com ─
> │
> │ "They laughed at Newton. They laughed at Einstein. Of course, they
> │ also laughed at Bozo the Clown." --- Carl Sagan
>
> >
>

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



Re: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken

Thanks Venkatesh.
--Ken

On Sep 21, 4:02 pm, Venkatesh Babu  wrote:
> java.net package is not supported by GWT.
>
> You can find the list of supported java packages 
> here:http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html
>
> -Venkatesh
>
> On Mon, Sep 21, 2009 at 2:35 PM, kbowe...@gmail.com wrote:
>
>
>
>
>
> > Hi Guys,
>
> > I first posted about this problem (full details below) on the
> > AppEngine/Java list; a response there from Jason Parekh (also added
> > here at end) suggested that there may be problems with GWT, so I'm
> > here to check that out.  Here's what I've run into:
> > -
> > I seem to have an issue with the Google Plugin Hosted Mode and
> > java.net on a Mac OS X 10.5.8.
> > I have Eclipse Galilio with:
> >    Google App Engine Java SDK 1.2.5
> >    Google Plugin for Eclipse 3.5
> >    Google Web Toolkit SDK 1.7.0
>
> > I created a new default GWT/AppEngine project (both checked) named
> > TestOne with package minman.
> > I set out to try to add a simple URL Fetch call to the generated entry
> > point class TestOne.java.
> > In the class TestOne.java, the only added code is these additional
>
> > imports at the top:
> > import java.io.BufferedReader;
> > import java.io.IOException;
> > import java.io.InputStreamReader;
> > import java.net.MalformedURLException;
> > import java.net.URL;
>
> > The Eclipse editor does NOT complain about these.
> > I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse.
>
> > However, when I try to Debug or Run the TestOne app, the Google Web
> > Tookit Hosted Mode panel shows the following (in red after the
> > first):
>
> > Initializing AppEngine server
> > Loading an instance of module 'testone'
> >   Refreshing module from source
> >      Validating new compiled units
> >         Removing Units with errors
> >            Errors in 'file:/blah...blah/TestOne/src/minman/client/
> > TestOne.java
> >               Line 6: The import java.net cannot be resolved
> >               Line 7: The import java.net cannot be resolved
> > .etc
> > [Of course, the app works ok without the 2 'import java.net.*'  lines
> > listed above.]
> > Also, I have code in other Java projects including those two import
> > lines and which compiles and runs fine under Eclipse 3.3; ( GWT 1.5
> > was used for that )
> > 
> > Here's Jason Parekh's response on AppEngine/Java:
>
> >http://groups.google.com/group/google-appengine-java/browse_thread/th...
>
> > Seems like there are two separate issues you're pointing out:
> > (1) The Eclipse validation is missing some classes that GWT really
> > doesn't allow, and
> > (2) java.net used to work in GWT, but not anymore?
> > If that breakdown is accurate, would you mind opening a bug for (1)?
> > Someone from the GWT team can give you an answer for (2).
>
> > Can this be resolved??
> > Thanks in advance,
> > Ken Bowen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Jason Parekh
No problem!
If you open your Eclipse workspace folder, there should be a folder called
".metadata".  Inside that, there should be a file called ".log".

I believe Windows hides these files by default, so you may need to use the
command prompt to find this file (either that, or turn on the setting to
show hidden files -- see
http://windowshelp.microsoft.com/Windows/en-US/help/27e9a81a-fac7-457f-896b-e0017a04a59f1033.mspx)

If neither the file nor folder are present, then there may not be any
detailed error logs.

jason

On Mon, Sep 21, 2009 at 5:20 PM, Pion  wrote:

>
> Sorry for the late reply. I just returned to my desk.
>
> Where can I find those info? Can you give me more specific examples? I
> can't seem to find them.
>
> On Sep 21, 12:11 pm, Jason Parekh  wrote:
> > Strange!  Could you send us the contents of your WORKSPACE/.metadata/.log
> > file?  It might have more detailed information about the error.
> > Thanks
> > jason
> >
> > On Mon, Sep 21, 2009 at 1:51 PM, Pion  wrote:
> >
> > > I right-click on my java test file and select "Run As -> GWT Junit
> > > Test". Then, I got the following error: "The input type of the launch
> > > configuration does not exist".
> >
> > > On Sep 21, 10:27 am, Jason Parekh  wrote:
> > > > On Mon, Sep 21, 2009 at 1:21 PM, Pion  wrote:
> >
> > > > > I got the error when following the instructions on
> > > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> >
> > > > > Followinghttp://code.google.com/eclipse/docs/gwt_junit.htmldidnot
> > > > > give me any error. I went to Eclipse "Run -> Run Configurations ...
> "
> > > > > which display a dialog box. But the "Run" button (on the dialog
> box)
> > > > > has been disabled so I cannot run it.
> >
> > > > Could you try right-clicking on your test class and choosing Run as
> ->
> > > GWT
> > > > Test case?
> >
> > > > Thanks,
> > > > jason
> >
> > > > > On Sep 21, 9:41 am, Jason Parekh  wrote:
> > > > > > Hi Pion,
> >
> > > > > > Did the error you described ("The input type of the launch
> > > configuration
> > > > > > does not exist") come when you were following the StockWatcher
> test
> > > > > > instructions or the Google Plugin for Eclipse test instructions?
> >
> > > > > > What error did you run into when you tried the Google Plugin for
> > > Eclipse
> > > > > > test instructions (the second URL you mentioned)?
> >
> > > > > > Thanks
> > > > > > jason
> >
> > > > > > On Mon, Sep 21, 2009 at 11:53 AM, Pion 
> wrote:
> >
> > > > > > > I am following the instructions on
> > > > > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > > > > > I can run the junit successfully using command line. My
> > > environments
> > > > > > > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
> >
> > > > > > > However, I am having problem when trying to run it on Eclipse.
> > > Eclipse
> > > > > > > gave me the following error message: "The input type of the
> launch
> > > > > > > configuration does not exist".
> >
> > > > > > > I tried to follow the instructions on
> > > > > > >http://code.google.com/eclipse/docs/gwt_junit.html.
> > > > > > > My Eclipse "Run" button is disabled -- I can not click it.
> >
> > > > > > > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: translate DateTimeFormat output

2009-09-21 Thread PH

someone??

On Internacionalization documents they don't describe how to translate
Dateformat outputs to others languages. I mean, is it determined by
browser client, since javascript runs on client?

tnx in advance.


On Sep 3, 11:06 pm, PH  wrote:
> Hi Dominik,
>
>  tnx for your reply!!
>
>  Actually I was looking for some solution where I could determine at
> run time in which language I should display my date information (ie.
> portuguese, english, spanich, etc).
>
>  Maybe this is determined by the client browser? Since the JS will
> execute on the client, it will print using the client system
> language?!
>
>  Tnx once more!
>
>  Best regards
>
>  PH
>
> On Sep 2, 6:53 pm, Dominik Steiner 
> wrote:
>
>
>
> > Hi PH,
>
> > you mean how you can set the locale for a specific language?
>
> > I added this line to the modules gwt.xml file
>
> >         
>
> > This one will set the locale for the language of spanish.
>
> > HTH
>
> > Dominik
>
> > On 2 Sep., 14:34, PH  wrote:
>
> > > Hi guys,
>
> > >  sorry if this question looks stupid, but I didn't find an answer for
> > > it.
>
> > >  How could I translate the DateTimeFormat.getFormat().format() output?
> > > ie.:
>
> > >  DateTimeFormat.getFormat(" ").format(dateobject);
>
> > >  from: "October 2009" to "Outubro 2009"
>
> > >  Tnx in advance.
>
> > >  Best regards,
>
> > >  PH
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Anchor.wrap question

2009-09-21 Thread myapplicationquestions

Hi All,

This is my requirement  i have a grid with where i need to

1) show an approve anchor tag foir each row
2) clicking on which will open up a dialog box.

The way i am doing it is instead of using a Anchor widget i am doing
an inline html

dataTable.setHTML(liRows, liColumnIndex, "Approve1");

I have added a listener to this

Event.addNativePreviewHandler(new newHandler(this))

within this handler i will


  Element loAnchor = DOM.getElementById("approve_"+fiDataIndex);
Anchor loAnchorWidget =Anchor.wrap(loAnchor);

The Anchor.wrap files with the following message " A widget that has
an an existing parent widget may not be added to the detach list".

which is coming from RootElements detachOnWindowClose method. The
question is

1) Am i doing anything wrtong here? I should be able to create a
widget by using Wrap method correct?


If i change this code and instead of setHtml do this

Anchor loAnchor =new Anchor("Approve");
loAnchor.setHref("javascript:{}");


loAnchor.getElement().setAttribute("id","approve_"+liRows);
loAnchor.getElement().setAttribute
("gridtype",""+APPROVE_WORKLIST);

loAnchor.getElement().setAttribute("dataindex",""+liRows);
dataTable.setWidget(liRows, 
liColumnIndex, loAnchor);

It works fine, meaning the .wrap does not give me any issues.

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



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Pion

Sorry for the late reply. I just returned to my desk.

Where can I find those info? Can you give me more specific examples? I
can't seem to find them.

On Sep 21, 12:11 pm, Jason Parekh  wrote:
> Strange!  Could you send us the contents of your WORKSPACE/.metadata/.log
> file?  It might have more detailed information about the error.
> Thanks
> jason
>
> On Mon, Sep 21, 2009 at 1:51 PM, Pion  wrote:
>
> > I right-click on my java test file and select "Run As -> GWT Junit
> > Test". Then, I got the following error: "The input type of the launch
> > configuration does not exist".
>
> > On Sep 21, 10:27 am, Jason Parekh  wrote:
> > > On Mon, Sep 21, 2009 at 1:21 PM, Pion  wrote:
>
> > > > I got the error when following the instructions on
> > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
>
> > > > Followinghttp://code.google.com/eclipse/docs/gwt_junit.htmldidnot
> > > > give me any error. I went to Eclipse "Run -> Run Configurations ... "
> > > > which display a dialog box. But the "Run" button (on the dialog box)
> > > > has been disabled so I cannot run it.
>
> > > Could you try right-clicking on your test class and choosing Run as ->
> > GWT
> > > Test case?
>
> > > Thanks,
> > > jason
>
> > > > On Sep 21, 9:41 am, Jason Parekh  wrote:
> > > > > Hi Pion,
>
> > > > > Did the error you described ("The input type of the launch
> > configuration
> > > > > does not exist") come when you were following the StockWatcher test
> > > > > instructions or the Google Plugin for Eclipse test instructions?
>
> > > > > What error did you run into when you tried the Google Plugin for
> > Eclipse
> > > > > test instructions (the second URL you mentioned)?
>
> > > > > Thanks
> > > > > jason
>
> > > > > On Mon, Sep 21, 2009 at 11:53 AM, Pion  wrote:
>
> > > > > > I am following the instructions on
> > > > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > > > > I can run the junit successfully using command line. My
> > environments
> > > > > > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
>
> > > > > > However, I am having problem when trying to run it on Eclipse.
> > Eclipse
> > > > > > gave me the following error message: "The input type of the launch
> > > > > > configuration does not exist".
>
> > > > > > I tried to follow the instructions on
> > > > > >http://code.google.com/eclipse/docs/gwt_junit.html.
> > > > > > My Eclipse "Run" button is disabled -- I can not click it.
>
> > > > > > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Very! basis question: Call from JavaScript to Java

2009-09-21 Thread Rakesh

look into jsni:
http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html

On Sep 21, 9:48 am, "kuri...@googlemail.com" 
wrote:
> Hi,
>
> i have a pretty simple problem i guess, and i cant get the solution
> because i cant all the examples available in the web work.
>
> I have a HTMLPanel with the following content:
>
>  (th...@com.meinskat.client.content.components.msloginpage::getLink()
> ());\">> hier
>
> my method in the class: MSLoginPage is: getLink(){ return "test"}
>
> Nothing is working...
> can anybody give me a hint or the solution how i can call a Java
> Method through javascript?
>
> Thanks alot,
>
> Christian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread Venkatesh Babu
java.net package is not supported by GWT.

You can find the list of supported java packages here:
http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html

-Venkatesh


On Mon, Sep 21, 2009 at 2:35 PM, kbowe...@gmail.com wrote:

>
> Hi Guys,
>
> I first posted about this problem (full details below) on the
> AppEngine/Java list; a response there from Jason Parekh (also added
> here at end) suggested that there may be problems with GWT, so I'm
> here to check that out.  Here's what I've run into:
> -
> I seem to have an issue with the Google Plugin Hosted Mode and
> java.net on a Mac OS X 10.5.8.
> I have Eclipse Galilio with:
>Google App Engine Java SDK 1.2.5
>Google Plugin for Eclipse 3.5
>Google Web Toolkit SDK 1.7.0
>
> I created a new default GWT/AppEngine project (both checked) named
> TestOne with package minman.
> I set out to try to add a simple URL Fetch call to the generated entry
> point class TestOne.java.
> In the class TestOne.java, the only added code is these additional
>
> imports at the top:
> import java.io.BufferedReader;
> import java.io.IOException;
> import java.io.InputStreamReader;
> import java.net.MalformedURLException;
> import java.net.URL;
>
> The Eclipse editor does NOT complain about these.
> I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse.
>
> However, when I try to Debug or Run the TestOne app, the Google Web
> Tookit Hosted Mode panel shows the following (in red after the
> first):
>
> Initializing AppEngine server
> Loading an instance of module 'testone'
>   Refreshing module from source
>  Validating new compiled units
> Removing Units with errors
>Errors in 'file:/blah...blah/TestOne/src/minman/client/
> TestOne.java
>   Line 6: The import java.net cannot be resolved
>   Line 7: The import java.net cannot be resolved
> .etc
> [Of course, the app works ok without the 2 'import java.net.*'  lines
> listed above.]
> Also, I have code in other Java projects including those two import
> lines and which compiles and runs fine under Eclipse 3.3; ( GWT 1.5
> was used for that )
> 
> Here's Jason Parekh's response on AppEngine/Java:
>
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/30341c2ecc7671a1
>
> Seems like there are two separate issues you're pointing out:
> (1) The Eclipse validation is missing some classes that GWT really
> doesn't allow, and
> (2) java.net used to work in GWT, but not anymore?
> If that breakdown is accurate, would you mind opening a bug for (1)?
> Someone from the GWT team can give you an answer for (2).
>
>
> Can this be resolved??
> Thanks in advance,
> Ken Bowen
>
>
> >
>

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



How do you set/get host page form values from GWT?

2009-09-21 Thread rb

How do you set/get host page form values from GWT?

For example:

  
  
   


>From GWT, how do I set/get the state value?

I tried:
  native String getState() /*-{
 return orderForm.state.value;
   }-*/;

but got the error "'orderForm' is undefined".


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



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Jason Parekh
Strange!  Could you send us the contents of your WORKSPACE/.metadata/.log
file?  It might have more detailed information about the error.
Thanks
jason

On Mon, Sep 21, 2009 at 1:51 PM, Pion  wrote:

>
> I right-click on my java test file and select "Run As -> GWT Junit
> Test". Then, I got the following error: "The input type of the launch
> configuration does not exist".
>
>
> On Sep 21, 10:27 am, Jason Parekh  wrote:
> > On Mon, Sep 21, 2009 at 1:21 PM, Pion  wrote:
> >
> > > I got the error when following the instructions on
> > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> >
> > > Followinghttp://code.google.com/eclipse/docs/gwt_junit.htmldid not
> > > give me any error. I went to Eclipse "Run -> Run Configurations ... "
> > > which display a dialog box. But the "Run" button (on the dialog box)
> > > has been disabled so I cannot run it.
> >
> > Could you try right-clicking on your test class and choosing Run as ->
> GWT
> > Test case?
> >
> > Thanks,
> > jason
> >
> >
> >
> > > On Sep 21, 9:41 am, Jason Parekh  wrote:
> > > > Hi Pion,
> >
> > > > Did the error you described ("The input type of the launch
> configuration
> > > > does not exist") come when you were following the StockWatcher test
> > > > instructions or the Google Plugin for Eclipse test instructions?
> >
> > > > What error did you run into when you tried the Google Plugin for
> Eclipse
> > > > test instructions (the second URL you mentioned)?
> >
> > > > Thanks
> > > > jason
> >
> > > > On Mon, Sep 21, 2009 at 11:53 AM, Pion  wrote:
> >
> > > > > I am following the instructions on
> > > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > > > I can run the junit successfully using command line. My
> environments
> > > > > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
> >
> > > > > However, I am having problem when trying to run it on Eclipse.
> Eclipse
> > > > > gave me the following error message: "The input type of the launch
> > > > > configuration does not exist".
> >
> > > > > I tried to follow the instructions on
> > > > >http://code.google.com/eclipse/docs/gwt_junit.html.
> > > > > My Eclipse "Run" button is disabled -- I can not click it.
> >
> > > > > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + SPRING

2009-09-21 Thread Sumit Chandel
Hi osquitranki,
I believe many developers have had success using the GWT-SL project, however
you can also integrate GWT with Spring with a manual project setup, as
described in the blog post below (a little outdate, but should still be
helpful).

Integrating GWT with Spring:
http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/

Hope that helps,
-Sumit Chandel

On Thu, Sep 17, 2009 at 4:59 AM, osquitranki  wrote:

>
> Hi,
> I wan introduce spring in my app gwt.
> Is a good idea use a 'GWT Server Library' or ther are other's libraris
> better than that?
>
> Thans!!!
> >
>

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



Re: Trying out StockWatcher tutorial

2009-09-21 Thread Venkatesh Babu
Think if you have your project setup using webAppCreator, you will get an
ant task called "war". That task will create a war file for you.

Hope this helps.

-Venkatesh


On Mon, Sep 21, 2009 at 5:33 AM, f2009 bee  wrote:

>
> Hi,
>
> I am trying out the GWT using ecilipse. I have complied the
> StockWatcher tutorial  successfully.
>
> Now I am trying to deploy the WAR file to Tomcat 6.0  on localhost.
>
> I noticed that the compilation generated files in stockwatcher/war
> directory but not a .WAR file which I will need in order to deploy
> from Tomcat Manager.
>
> Any advice is appreciated . Thank you 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: What to inherit for ScrollTable (and other widgets)?

2009-09-21 Thread Starchy Grant

Hi Brandon,

Try replacing the ScrollTable line with this one:



Also, if you're using the Gen2 version, you can elide the WidgetIdeas
include.

Regards,
Starchy

On Sep 18, 5:10 pm, bnedwek  wrote:
> Hi everybody,
>
> Sorry for what must be a ridiculously simplistic question, but:
>
> What do I include in my project's include XML file to get ScrollTable
> to work?  I have the incubator jar file in the project, I'm importing
> all the classes I need, but I'm not sure which of the .gwt.xml files I
> need.  I've tried
>
>   
>   
>   
>
> and that will load in hosted without errors, but the table doesn't
> actually show up.
>
> Thanks for your help,
>
> - Brandon

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



Re: gwt rpc client side serialization

2009-09-21 Thread Sumit Chandel
Sorry, I just re-read your question and noticed that you're actually asking
about something else, namely using the RPC serialization mechanism manually
in your client-side code.
Unfortunately, this isn't currently possible, at least not directly. The GWT
RPC serialization mechanism is asymmetric. That is, code that is serialized
from the server-side can only be deserialized on the client, and code that
is serialized on the client-side can only be deserialized on the server.
That said, you could try to reproduce a logical equivalent to the
serialization logic used on the server in the client, but that would require
some considerable overhead since GWT RPC server-side serialization uses
reflection, which is not supported and would have to be emulated in the
client.

However, you could take a look at Protocol Buffers in order to accomplish
your goal. These provide a symmetric means for encoding structured data that
you could share between your server-side and client-side and persist to the
Gears database. Although you can implement your own solution, Protocol
Buffer support isn't currently available in GWT proper, but is planned (see
Issue #2649 linked below).

Protocol Buffers:
http://code.google.com/p/protobuf/

Issue # 2649:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2649

Hope that helps,
-Sumit Chandel

On Mon, Sep 21, 2009 at 9:58 AM, Sumit Chandel wrote:

> Hi akhil,
> You should be able to accomplish what you're looking to do using the GWT
> Gears library, as Etienne pointed out above. I recommend downloading the
> library from the link below and checking out the DatabaseDemo packaged in
> the samples directory once you extract the archive. The demo covers
> persisting and retrieving objects back into widgets, or in your case, POJOs
> for objects that you want to store and retrieve from the Gears client-side
> database.
>
> GWT Gears download page:
> http://code.google.com/p/gwt-google-apis/wiki/Downloads
>
>  Hope that
> helps,
> -Sumit Chandel
>
>
> On Thu, Sep 17, 2009 at 3:19 AM, akhil  wrote:
>
>>
>> Hi,
>>
>> My intent is to use gears, but I have very complex objects (about 100
>> attributes).
>> I don't want to create columns of all the 100 attributes (or prepare
>> ORM).
>> I just want to store 5 columns in the DB and serialize the object and
>> store it as a string or blob.
>>
>>
>> On Sep 16, 8:50 pm, Etienne Neveu  wrote:
>> > Hi,
>> >
>> > I am not using Gears, but I heard of this project:
>> >
>> > http://code.google.com/p/gwt-google-apis/
>> >
>> > You will mainly be interested in the Gears Library. Here is the
>> > documentation:
>> >
>> > http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis.
>> ..
>> >
>> > Regards,
>> >
>> > Etienne
>> >
>> > On 16 sep, 13:15,akhil wrote:
>> >
>> > > Hi,
>> >
>> > > I am trying to serialize a gwt pojo on the client side and store in
>> > > the DB of gears.
>> > > Is there any way/api to do the serialization/deserialization?
>> >
>> > > Is is possible to invoke serialization api cleanly?
>> >
>> > >Akhil
>> >>
>>
>

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



Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread kbowe...@gmail.com

Hi Guys,

I first posted about this problem (full details below) on the
AppEngine/Java list; a response there from Jason Parekh (also added
here at end) suggested that there may be problems with GWT, so I'm
here to check that out.  Here's what I've run into:
-
I seem to have an issue with the Google Plugin Hosted Mode and
java.net on a Mac OS X 10.5.8.
I have Eclipse Galilio with:
Google App Engine Java SDK 1.2.5
Google Plugin for Eclipse 3.5
Google Web Toolkit SDK 1.7.0

I created a new default GWT/AppEngine project (both checked) named
TestOne with package minman.
I set out to try to add a simple URL Fetch call to the generated entry
point class TestOne.java.
In the class TestOne.java, the only added code is these additional

imports at the top:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

The Eclipse editor does NOT complain about these.
I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse.

However, when I try to Debug or Run the TestOne app, the Google Web
Tookit Hosted Mode panel shows the following (in red after the
first):

Initializing AppEngine server
Loading an instance of module 'testone'
   Refreshing module from source
  Validating new compiled units
 Removing Units with errors
Errors in 'file:/blah...blah/TestOne/src/minman/client/
TestOne.java
   Line 6: The import java.net cannot be resolved
   Line 7: The import java.net cannot be resolved
.etc
[Of course, the app works ok without the 2 'import java.net.*'  lines
listed above.]
Also, I have code in other Java projects including those two import
lines and which compiles and runs fine under Eclipse 3.3; ( GWT 1.5
was used for that )

Here's Jason Parekh's response on AppEngine/Java:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/30341c2ecc7671a1

Seems like there are two separate issues you're pointing out:
(1) The Eclipse validation is missing some classes that GWT really
doesn't allow, and
(2) java.net used to work in GWT, but not anymore?
If that breakdown is accurate, would you mind opening a bug for (1)?
Someone from the GWT team can give you an answer for (2).


Can this be resolved??
Thanks in advance,
Ken Bowen


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



Re: Advice for bundling RPC calls in ONE HTTP request

2009-09-21 Thread Sripathi Krishnan
We had a similar problem, but couldn't find an easy way to extend
RemoteServiceProxy. Instead, we created custom a RpcRequestBuilder class and
inserted it using the setRpcRequestBuilder() just after calling GWT.create()
to get the service proxy.

MyServiceAsync async = GWT.create(MyService.class);
((ServiceDefTarget)
async).setRpcRequestBuilder(MyCustomRpcRequestBuilder());

In your custom RpcRequestBuilder, you can create your own modified
RequestBuilder class do any central bookkeeping.

--Sri


2009/9/21 maku 

>
> Would it be a solution to change the generator in that sense that the
> generated proxy classes extends from our own RemoteServiceProxy class?
>
> The extended RemoteServiceProxy class would override the doInvoke
> method to collect information (payload and so on) until I certain end
> of the "unit of work" is reached. Then we could use the collected data
> to perform an RPC to a generic method which can handle the
> information.
>
> How can we achieve this? Is it possible to configure it from which
> class the generated proxy classes are inherit?
>
> What do you think?
>
> TIA
>
>
>
> On 21 Sep., 16:14, Thomas Broyer  wrote:
> > On 21 sep, 11:14, maku  wrote:
> >
> > > > If you use a "command pattern" (i.e. have your RPC have only one
> > > > method and use different Command/Action classes to determine which
> > > > action shuld be performed), then batching is just a matter of sending
> > > > a "super-action" whose "parameters" are a list of commands/actions.
> >
> > > From my point of view we could NOT use this approach because we have
> > > an existing application with hundreds or "classical" RPC methods.
> >
> > > So I search a way around where I'm able to collect the needed data and
> > > call a generic RPC method which can handle it
> >
> > If you use some kind of dependency injection, it should be quite easy
> > to inject your own implementations of the serviceAsync that'd call
> > your generic RPC method.
> > Otherwise, you'd have to copy and tweak the generator to generate a
> > serviceAsync implementation (stub) that calls your generic RPC instead
> > of the "normal" RequestBuilder/serialization behavior; and you'd have
> > to find a way to call your own generator for all but your generic RPC
> > service (if you intend to use GWT-RPC for this one as well) (pretty
> > easy actually: give all RemoteService except MyGenericRemoteService to
> > your own generator, and give MyGenericRemoteService to the "normal"
> > generator)
> >
> > HTH
> >
>

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



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Pion

I right-click on my java test file and select "Run As -> GWT Junit
Test". Then, I got the following error: "The input type of the launch
configuration does not exist".


On Sep 21, 10:27 am, Jason Parekh  wrote:
> On Mon, Sep 21, 2009 at 1:21 PM, Pion  wrote:
>
> > I got the error when following the instructions on
> >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
>
> > Followinghttp://code.google.com/eclipse/docs/gwt_junit.htmldid not
> > give me any error. I went to Eclipse "Run -> Run Configurations ... "
> > which display a dialog box. But the "Run" button (on the dialog box)
> > has been disabled so I cannot run it.
>
> Could you try right-clicking on your test class and choosing Run as -> GWT
> Test case?
>
> Thanks,
> jason
>
>
>
> > On Sep 21, 9:41 am, Jason Parekh  wrote:
> > > Hi Pion,
>
> > > Did the error you described ("The input type of the launch configuration
> > > does not exist") come when you were following the StockWatcher test
> > > instructions or the Google Plugin for Eclipse test instructions?
>
> > > What error did you run into when you tried the Google Plugin for Eclipse
> > > test instructions (the second URL you mentioned)?
>
> > > Thanks
> > > jason
>
> > > On Mon, Sep 21, 2009 at 11:53 AM, Pion  wrote:
>
> > > > I am following the instructions on
> > > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > > I can run the junit successfully using command line. My environments
> > > > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
>
> > > > However, I am having problem when trying to run it on Eclipse. Eclipse
> > > > gave me the following error message: "The input type of the launch
> > > > configuration does not exist".
>
> > > > I tried to follow the instructions on
> > > >http://code.google.com/eclipse/docs/gwt_junit.html.
> > > > My Eclipse "Run" button is disabled -- I can not click it.
>
> > > > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Jason Parekh
On Mon, Sep 21, 2009 at 1:21 PM, Pion  wrote:

>
> I got the error when following the instructions on
> http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
>
> Following http://code.google.com/eclipse/docs/gwt_junit.html did not
> give me any error. I went to Eclipse "Run -> Run Configurations ... "
> which display a dialog box. But the "Run" button (on the dialog box)
> has been disabled so I cannot run it.
>

Could you try right-clicking on your test class and choosing Run as -> GWT
Test case?

Thanks,
jason



>
> On Sep 21, 9:41 am, Jason Parekh  wrote:
> > Hi Pion,
> >
> > Did the error you described ("The input type of the launch configuration
> > does not exist") come when you were following the StockWatcher test
> > instructions or the Google Plugin for Eclipse test instructions?
> >
> > What error did you run into when you tried the Google Plugin for Eclipse
> > test instructions (the second URL you mentioned)?
> >
> > Thanks
> > jason
> >
> > On Mon, Sep 21, 2009 at 11:53 AM, Pion  wrote:
> >
> > > I am following the instructions on
> > >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > > I can run the junit successfully using command line. My environments
> > > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
> >
> > > However, I am having problem when trying to run it on Eclipse. Eclipse
> > > gave me the following error message: "The input type of the launch
> > > configuration does not exist".
> >
> > > I tried to follow the instructions on
> > >http://code.google.com/eclipse/docs/gwt_junit.html.
> > > My Eclipse "Run" button is disabled -- I can not click it.
> >
> > > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Pion

I got the error when following the instructions on
http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.

Following http://code.google.com/eclipse/docs/gwt_junit.html did not
give me any error. I went to Eclipse "Run -> Run Configurations ... "
which display a dialog box. But the "Run" button (on the dialog box)
has been disabled so I cannot run it.

On Sep 21, 9:41 am, Jason Parekh  wrote:
> Hi Pion,
>
> Did the error you described ("The input type of the launch configuration
> does not exist") come when you were following the StockWatcher test
> instructions or the Google Plugin for Eclipse test instructions?
>
> What error did you run into when you tried the Google Plugin for Eclipse
> test instructions (the second URL you mentioned)?
>
> Thanks
> jason
>
> On Mon, Sep 21, 2009 at 11:53 AM, Pion  wrote:
>
> > I am following the instructions on
> >http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> > I can run the junit successfully using command line. My environments
> > are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
>
> > However, I am having problem when trying to run it on Eclipse. Eclipse
> > gave me the following error message: "The input type of the launch
> > configuration does not exist".
>
> > I tried to follow the instructions on
> >http://code.google.com/eclipse/docs/gwt_junit.html.
> > My Eclipse "Run" button is disabled -- I can not click it.
>
> > Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt rpc client side serialization

2009-09-21 Thread Sumit Chandel
Hi akhil,
You should be able to accomplish what you're looking to do using the GWT
Gears library, as Etienne pointed out above. I recommend downloading the
library from the link below and checking out the DatabaseDemo packaged in
the samples directory once you extract the archive. The demo covers
persisting and retrieving objects back into widgets, or in your case, POJOs
for objects that you want to store and retrieve from the Gears client-side
database.

GWT Gears download page:
http://code.google.com/p/gwt-google-apis/wiki/Downloads

Hope that
helps,
-Sumit Chandel

On Thu, Sep 17, 2009 at 3:19 AM, akhil  wrote:

>
> Hi,
>
> My intent is to use gears, but I have very complex objects (about 100
> attributes).
> I don't want to create columns of all the 100 attributes (or prepare
> ORM).
> I just want to store 5 columns in the DB and serialize the object and
> store it as a string or blob.
>
>
> On Sep 16, 8:50 pm, Etienne Neveu  wrote:
> > Hi,
> >
> > I am not using Gears, but I heard of this project:
> >
> > http://code.google.com/p/gwt-google-apis/
> >
> > You will mainly be interested in the Gears Library. Here is the
> > documentation:
> >
> > http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
> >
> > Regards,
> >
> > Etienne
> >
> > On 16 sep, 13:15,akhil wrote:
> >
> > > Hi,
> >
> > > I am trying to serialize a gwt pojo on the client side and store in
> > > the DB of gears.
> > > Is there any way/api to do the serialization/deserialization?
> >
> > > Is is possible to invoke serialization api cleanly?
> >
> > >Akhil
> >
>

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



protected getAttr()

2009-09-21 Thread Senshi

how can I access, the protected method setattr ()
HTMLTable.CellFormatter class?

I need to add some attributes to a FlexTable td.

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



Re: Running GWT JUnit on Eclipse

2009-09-21 Thread Jason Parekh
Hi Pion,

Did the error you described ("The input type of the launch configuration
does not exist") come when you were following the StockWatcher test
instructions or the Google Plugin for Eclipse test instructions?

What error did you run into when you tried the Google Plugin for Eclipse
test instructions (the second URL you mentioned)?

Thanks
jason

On Mon, Sep 21, 2009 at 11:53 AM, Pion  wrote:

>
> I am following the instructions on
> http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
> I can run the junit successfully using command line. My environments
> are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.
>
> However, I am having problem when trying to run it on Eclipse. Eclipse
> gave me the following error message: "The input type of the launch
> configuration does not exist".
>
> I tried to follow the instructions on
> http://code.google.com/eclipse/docs/gwt_junit.html.
> My Eclipse "Run" button is disabled -- I can not click it.
>
> Thanks in advance for your 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can I set an alternative URL?

2009-09-21 Thread BobM

I still need to figure out how ro run a piece of my application by
http://www.myApp.com/subApp

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



Re: GWT Host page EntryPoint switch

2009-09-21 Thread chris

I solved the problem, but it isn't as clean as I'd like it to be. I
manage the switch myself by putting a meta tag in the head and
selecting my view widget by the class name. Consequently, I have to
maintain a global list of available views. It works for now until I
can find a solution that leverages functionality native to GWT.



Global.java
public static void init()
{
NodeList nodes = XDOM.getHead().getElementsByTagName
( "meta" );

for( int i = 0, il = nodes.getLength(); i < il; ++i )
{
Element el = nodes.getItem( i );
String name = el.getAttribute( "name" );

if( name.equals( "View" ) )
{
String content = el.getAttribute( "content" );

if( content.equals( Global.Views.INDEX ) )  
Global.VIEW = new
IndexView();
else if( content.equals( Global.Views.DASHBOARD ) ) 
Global.VIEW =
new DashboardView();
else if( content.equals( Global.Views.SIGNUP ) )
Global.VIEW = new SignupView();

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



Re: GWT Host page EntryPoint switch

2009-09-21 Thread BobM

Very similar to my need - and at least one other - to be able to run
more than one entry point.  In my case I would like to run a second as
a "subApp" under the main app URL.  I don't have an answer to your
problem but maybe by responding we can move your question (and mine)
back up to the front of the line so someone will pay attention to it
and get us an answer.

On Sep 18, 10:23 am, terribleInstinct  wrote:
> Being fairly new with GWT (1.7.0), I'm struggling with compiling many
> EntryPoint objects into a single JS file and in the HTML host page
> selecting precisely which EntryPoint I want to execute for that host
> page. I'm under the impression that this can work, but maybe I'm
> misinterpreting the various blogs and docs I've read that touch on
> this topic. Just so you know, I am not restricted to switching my
> rendering logic by this method; if there is a more elegant technique
> (i.e. not using the path of the host page) for achieving this switch
> in a single EntryPoint, I'm open to that as well.
>
> Here is my GWT.XML configuration:
>
> 
> 
> 
> 
>
> 
> 
> 
>
> I don't really know the structure of the  tag in the host page
> to choose between these EntryPoints.
> 
>
> I've seen some examples of what this should be, but I can't get them
> to work. Depending upon what I'm reading they take the form of:
>
> 
> or
> 
>
> Any suggestions? Thanks for the 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Running GWT JUnit on Eclipse

2009-09-21 Thread Pion

I am following the instructions on 
http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html.
I can run the junit successfully using command line. My environments
are: Eclipse-Galileo, GWT SDK 1.7 on Windows Vista.

However, I am having problem when trying to run it on Eclipse. Eclipse
gave me the following error message: "The input type of the launch
configuration does not exist".

I tried to follow the instructions on 
http://code.google.com/eclipse/docs/gwt_junit.html.
My Eclipse "Run" button is disabled -- I can not click it.

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



Re: How to put multiple apps in one project

2009-09-21 Thread BobM

Exactly my problem, also.  I will be watching your posts to see if you
or somkeone else comes in with the answer to this.  Thanks for posting
you question.  See my post about How do I create an altenate URL.

On Sep 20, 6:16 am, Jaap  wrote:
> Hi,
>
> I'm working on a web app that actually consist of multiple apps. One
> for users and one for administration. How should I handle this. Can
> anyone point me to an example?
>
> Thanks
>
> Jaap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: OOPHM and Mac OSX

2009-09-21 Thread Jason Parekh
Hi Papick,

Where does it exactly break when you start from Eclipse?  Do you have any
logs?  (One place to check is WORKSPACE/.metadata/.log)

thanks
jason


On Mon, Sep 21, 2009 at 8:02 AM, P.G.Taboada wrote:

>
> Hi,
>
> it's working on my Mac Snow Leopard as long as I don't start the shell
> from Eclipse.  I have seen some posts about doing this and that but it
> looks like they are all out of date.
>
> Any help/ tips here for the current trunk?
>
> 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Auto rebuild servlet Issues of GWT working with GAE

2009-09-21 Thread Jason Parekh
Hi Ziyu Huang,

You actually do need to "restart" the server after a servlet code change
(even in the GWT-only environment.)  Perhaps a source of confusion is the
definition of "restart"?  GWT 1.6 added a new "restart" button to the hosted
mode window, which allows you to restart the jetty server running behind the
scenes without having to restart hosted mode itself.

jason


On Sun, Sep 20, 2009 at 2:47 AM, ziyu_huang  wrote:

>
> Hi All,
>
> I don't know if this issues is better be here or in GAE.
> Anyway, my issue is according to GWT, when you change the source of
> servlet in host mode, you shouldn't need to restart server to see the
> change.
>
> But it seem not work at my environment.
>
> Eclipse Gallio with GWT toolkit.
>
> GWT 1.7
> GAE 1.2.5
> OS: Snow Leopard
> Java: Default Java VM 1.6 (32bit mode)
>
> Anybody have happened to same problem and find solution?
>
> >
>

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



Re: GWT Presenter and PlaceManager/History

2009-09-21 Thread Sascha

Thanks, I did not realize there is such a group! I will check there
first, before reposting... :-)

On Sep 21, 5:31 pm, Chris Lowe  wrote:
> Can you repost this to the gwt-presenter group?
>
> http://groups.google.com/group/gwt-presenter
>
> Cheers,
>
> Chris.
>
> On Sep 21, 4:31 am, Sascha  wrote:
>
> > Hi All,
>
> > I am using the GWT Presenter library (http://code.google.com/p/gwt-
> > presenter/), and currently trying to figure out how to correctly use
> > the PlaceManager. I am a bit confused about the behavior as to when
> > exactly the onPlaceRequest and the revealDisplay Methods for a
> > Presenter that extends the WidgetPresenter are executed.
>
> > Suppose I have two Presenters. An 'AdminPresenter' and a
> > 'UserPresenter'. I also have a MenuPresenter and a View, which
> > contains two Hyperlinks like this:
> > public class MenuView extends Composite implements
> > MenuPresenter.Display {
>
> >   private Hyperlink userHyperlink;
> >   private Hyperlink adminHyperlink;
>
> >   public MenuView() {
> >     final VerticalPanel panel = new VerticalPanel();
> >     panel.setStyleName("menu");
> >     initWidget(panel);
>
> >     userHyperlink = new Hyperlink("User", "user");
> >     adminHyperlink = new Hyperlink("Admin", "admin");
>
> >     panel.add(learnHyperlink);
> >     panel.add(adminHyperlink);
> >   }
> > ... additional things
>
> > }
>
> > I am also binding the above two hyperlinks to a ClickEvent, and my
> > UserPresenter defines a PLACE called 'user', and my AdminPresenter
> > defines a PLACE called 'admin'.
>
> > Now here is what I don't understand: When I Click either of the links,
> > then I can see that a PlaceRequestEvent is fired and the
> > onPlaceRequest and revealDisplay methods of the respective Presenter
> > are executed. However, when I click the the Back button of the browser
> > (suppose I clicked the Admin link first, then the User link, or the
> > other way around), I can see that a PlaceRequestEvent is fired too,
> > but the onPlaceRequest and revealDisplay methods of the Presenter are
> > not executed. I also found that if I do not bind the Hyperlinks to a
> > ClickHandler, then the onPlaceRequest and revealDisplay methods are
> > also not executed, which I also don't understand why :-)
>
> > Is someone able to explain, how exactly in the GWT Presenter library
> > the PlaceManager and all its components works, or maybe point me to
> > where I might have a problem in my code?
>
> > Cheers,
> > Sascha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



[help] New in GWT is considering the tecnology

2009-09-21 Thread Manuel

Hi all, i write here after reading some materials, i need to start a
new project to realize an application able to be run, in windows,
linux, as web application or windows application.
I read about hosted mode, i'd like to know if is possible using gwt,
to deploy an applicationas a normal windows application, so if
installing an application i can use it il local also if i'm not in LAN
or Internet.

I would crate a sort of image editor, where i'd like to zoom and pan
the image (zooming using the mouse scroll), and i need to create some
polygon on the image, poligons that i'd like to fill using hatch or
uniform color, and using trasparency. I've seen the SVG and GWT
integration is not mature and i don't really know if is SVG standard
what i need to make my drawings.

Tanks for help and sorry for my bad english
Manuel

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



Help with Datasource with GWTshell or HostedMode or tomcat

2009-09-21 Thread Flyzone

Hello, I'm trying to make a connection without DriverManager, of
course
I'm a newbieI'm using gwt 1.7 with Eclipse 3.5

With GWTshell:
import javax.naming.InitialContext;
import javax.naming.Context;
Context context = new InitialContext();
javax.sql.DataSource ds =(javax.sql.DataSource)context.lookup
("java:comp/env/jdbc/mydb");
Connection connection = ds.getConnection();

I have also defined the
webapps\ROOT\WEB-INF\web.xml with this:

  
 Mysql Connection
 jdbc/tableappcheck
 javax.sql.DataSource
 Container
   

But I continue to get the:
javax.naming.NamingException: Cannot create resource instance

Well...I don't know where to put the context xml part :-(
With DriverManager no problem, so I would like how to put the context
part.

I tried also to convert to HostedMode ... too many problem, so...

I would like also to understand how to setup a local tomcat
installation that I have made.
Trying to add a new resource to Server listed in Eclipse I get the
error message
"There are no resource that can be added or removed from the server".
My problem was that I begun to add code and resourse to an existing
project
found on gwt-eample: com.tribling.gwt.test.mysqlconn.

Of course I have already searching on the web, but many examples have
made into
me just more confusion...

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



Language detector application

2009-09-21 Thread Utkarsh

Hi

I am new to GWT and came across it after lot of google on topics.

I am working on a application where in :-

1) A program will read URls from a file (Static list).
2 ) Retrieves its content .
3) Checks in which language the content is in ? and returns and saves
the language against  the URL in a file.

I was working on JSP and Java  tried to use Google language API
but i only helps in translation does not return the language the text
is written in. (Hope I didnt missed something).

Then tried to Use Ajax with Google language detection. But how can i
integrate the ajax page with my  desktop application so that they  can
process and pass information wtih each other ?

Or is there any other suggection ? Please advice.

Thanks

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



Re: MySQL Connection

2009-09-21 Thread Chamira Fernando

Hi All,

I have the same problem when I connect to MySQL database,

What I understand from the GWT doc, whatever server side scripts we
have to in .server package and this will be on server side on host
mode when we debug the application.

here is the scenario

I can get the data from the server side if there is no database
connection, everything works fine, the moment I run database
connection method

I get errors! narrowing the problem i tried to load the class
(Class.forName(DRIVER)) only.. it seems class is loaded (i get no
errors) but the moment I run
connection = DriverManager.getConnection(URL,USER,PASS); method will
cause the problem .. if this is an sql error, should be caught ??

mind you
my mysql connector is in proper dirs (otherwise I can't load DRIVER ).

Do I need to set $catalina.home for hosted mode? then can someone help
to do it (im using eclipse plugin)

Can someone come up with an answer, prefer small script to
understand...

here is the stack trace I got

Sep 21, 2009 12:05:02 PM
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1253534702085000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.pro.student.client.GreetingService.greetServer(java.lang.String)'
threw an unexpected exception: java.lang.ExceptionInInitializerError
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
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)
Caused by: java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:283)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.pro.student.server.GreetingServiceImpl.db
(GreetingServiceImpl.java:52)
at com.pro.student.server.GreetingServiceImpl.greetServer
(GreetingServiceImpl.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
... 27 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimeP

Trying out StockWatcher tutorial

2009-09-21 Thread f2009 bee

Hi,

I am trying out the GWT using ecilipse. I have complied the
StockWatcher tutorial  successfully.

Now I am trying to deploy the WAR file to Tomcat 6.0  on localhost.

I noticed that the compilation generated files in stockwatcher/war
directory but not a .WAR file which I will need in order to deploy
from Tomcat Manager.

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



Client side validation

2009-09-21 Thread Sachin Kanade

Hi,
How can i validate different widget at a time.
i.e. I want the multifield validator for differnet widget.
How can i display the error messages on the client side

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



jvm crash

2009-09-21 Thread lam lam

I did a "ant build" under samples/Mail with the errors:

gwtc:
 [java] Compiling module com.google.gwt.sample.mail.Mail
 [java] #
 [java] # An unexpected error has been detected by Java Runtime
Environment:
 [java] #
 [java] #  SIGSEGV (0xb) at pc=0x0625665c, pid=7535,
tid=2690198416
 [java] #
 [java] # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode
linux-x86)
 [java] # Problematic frame:
 [java] # V  [libjvm.so+0x25665c]
 [java] #
 [java] # An error report file with more information is saved as:
 [java] # /home/falam/Downloads/google ajax/gwt-linux-1.7.0/
samples/Mail/hs_err_pid7535.log
 [java] #
 [java] # If you would like to submit a bug report, please visit:
 [java] #   http://java.sun.com/webapps/bugreport/crash.jsp
 [java] # The crash happened outside the Java Virtual Machine in
native code.
 [java] # See problematic frame for where to report the bug.
 [java] #

BUILD FAILED

I found the solutions was "sudo ant build".

Seems only super users can compile it under Linux. Wonder if this is
expected result?

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



tree-grid

2009-09-21 Thread Senshi

how can I build a tree-grid with totals by group or father??? ... some
example please = (
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Advice for bundling RPC calls in ONE HTTP request

2009-09-21 Thread maku

Would it be a solution to change the generator in that sense that the
generated proxy classes extends from our own RemoteServiceProxy class?

The extended RemoteServiceProxy class would override the doInvoke
method to collect information (payload and so on) until I certain end
of the "unit of work" is reached. Then we could use the collected data
to perform an RPC to a generic method which can handle the
information.

How can we achieve this? Is it possible to configure it from which
class the generated proxy classes are inherit?

What do you think?

TIA



On 21 Sep., 16:14, Thomas Broyer  wrote:
> On 21 sep, 11:14, maku  wrote:
>
> > > If you use a "command pattern" (i.e. have your RPC have only one
> > > method and use different Command/Action classes to determine which
> > > action shuld be performed), then batching is just a matter of sending
> > > a "super-action" whose "parameters" are a list of commands/actions.
>
> > From my point of view we could NOT use this approach because we have
> > an existing application with hundreds or "classical" RPC methods.
>
> > So I search a way around where I'm able to collect the needed data and
> > call a generic RPC method which can handle it
>
> If you use some kind of dependency injection, it should be quite easy
> to inject your own implementations of the serviceAsync that'd call
> your generic RPC method.
> Otherwise, you'd have to copy and tweak the generator to generate a
> serviceAsync implementation (stub) that calls your generic RPC instead
> of the "normal" RequestBuilder/serialization behavior; and you'd have
> to find a way to call your own generator for all but your generic RPC
> service (if you intend to use GWT-RPC for this one as well) (pretty
> easy actually: give all RemoteService except MyGenericRemoteService to
> your own generator, and give MyGenericRemoteService to the "normal"
> generator)
>
> HTH
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How I can call a javascript function???

2009-09-21 Thread Senshi

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



Very! basis question: Call from JavaScript to Java

2009-09-21 Thread kuri...@googlemail.com

Hi,

i have a pretty simple problem i guess, and i cant get the solution
because i cant all the examples available in the web work.

I have a HTMLPanel with the following content:

> hier

my method in the class: MSLoginPage is: getLink(){ return "test"}

Nothing is working...
can anybody give me a hint or the solution how i can call a Java
Method through javascript?

Thanks alot,

Christian

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



Re: one Composite widget with multiple valueChangeHandlers of different types

2009-09-21 Thread Dean Karres

Thank you.  Exactly what I was looking for.

Cheers,



On Fri, Sep 18, 2009 at 9:42 PM, Chad  wrote:
>
> dk,
>
> There are a few ways you can accomplish this. One way to do it is to
> use inner classes to handle your events:
>
> public class MyCoolWidget {
>  private class DateHandler implements ValueChangeHandler {
>    public void onFailure(Throwable caught) { ... }
>    public void onSuccess(ValueChangeEvent event) { ... }
>  }
>  private class StringHandler implements ValueChangeHandler {
>    public void onFailure(Throwable caught) { ... }
>    public void onSuccess(ValueChangeEvent event) { ... }
>  }
> }
>
> Then, when you add the value change handlers, instead of passing the
> this object reference, you pass either new DateHandler() or new
> StringHandler().
>
> Another way would be to use anonymous inner classes:
>
> myDateControl.addHandler(new ValueChangeHandler() {
>  public onFailure(Throwable caught) { ... }
>  public onSuccess(ValueChangeEvent event) { ... }
> });
>
> It just depends on if your preference and how many times you'd need to
> add them.
>
> You could probably also just implement the ValueChangeHandler
> generically without the type at your class level. You'd probably need
> to suppress the unchecked warning. Then, you'd have one onFailure
> method and one onSuccess method. The difference is that your onSuccess
> will received an Object and you'd have to check for the type of
> instance and cast it as necessary. I know that works with
> AsyncCallbacks, but I've never tried it with ValueChangeHandlers.
>
> HTH,
> Chad
>
> On Sep 18, 4:00 pm, dk  wrote:
>> Ok, I am back to not knowing what I am doing.  Before I wrote the last
>> note I am sure there were no warnings/errors on what I was doing but I
>> have the Can not implement ValueChange with different types message
>> again.
>>
>> ideas are welcome
> >
>



-- 
Dean Karres

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



Re: Recommendations for a server-side Java framework to use with GWT?

2009-09-21 Thread D Peters

I'd say that the comments here about using the server-side of a GWT
app for data storage only are a bit naive.  First off -- GWT client
side code is limited to java.util and java.lang packages.  There may
be several third-party libraries that you need to interact with (i.e;
an XML parser) on the server-side to do what you need -- and calling
these all from a GWT servlet can be a mess without a proper framework.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with call function external javascript

2009-09-21 Thread Senshi

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



Re: Advice for bundling RPC calls in ONE HTTP request

2009-09-21 Thread Thomas Broyer



On 21 sep, 11:14, maku  wrote:
> > If you use a "command pattern" (i.e. have your RPC have only one
> > method and use different Command/Action classes to determine which
> > action shuld be performed), then batching is just a matter of sending
> > a "super-action" whose "parameters" are a list of commands/actions.
>
> From my point of view we could NOT use this approach because we have
> an existing application with hundreds or "classical" RPC methods.
>
> So I search a way around where I'm able to collect the needed data and
> call a generic RPC method which can handle it

If you use some kind of dependency injection, it should be quite easy
to inject your own implementations of the serviceAsync that'd call
your generic RPC method.
Otherwise, you'd have to copy and tweak the generator to generate a
serviceAsync implementation (stub) that calls your generic RPC instead
of the "normal" RequestBuilder/serialization behavior; and you'd have
to find a way to call your own generator for all but your generic RPC
service (if you intend to use GWT-RPC for this one as well) (pretty
easy actually: give all RemoteService except MyGenericRemoteService to
your own generator, and give MyGenericRemoteService to the "normal"
generator)

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



Re: Hint: Previous compiler errors may have made this type unavailable

2009-09-21 Thread Thomas Broyer



On 21 sep, 11:06, BMax  wrote:
> Hi dougx,
> thanks a lot for your message!
> Sorry if I reply only at this time!
> I checked my code and its setting... I saw that it's already like you
> told me... and now? What can I do?

And you don't have any other error before that one?

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



Re: file download option in GWT

2009-09-21 Thread Ian Bambury
http://en.wikipedia.org/wiki/Path_(computing)
Ian

http://examples.roughian.com


2009/9/21 sathya 

>
>
> for eg, if d:/nas/local/results/xml_5.6_46.2.xls is absolute path,
> Then what will equivalent relative path that I can use in my code to
> where the link can pick it up.
>
> On Sep 21, 5:22 pm, sathya  wrote:
> > Hi Ian,
> >  I am not able to relate absolute path and relative path.
> >
> > Can you give example of both absolute path and its equivalent relative
> > path whih I can use it in my code.
> >
> > On Sep 21, 3:21 pm, Ian Bambury  wrote:
> >
> >
> >
> > > When you create thefile, you can use an absolute path (with a drive
> letter)
> > > to where the link is picking it up with the relative path.
> > > Ian
> >
> > >http://examples.roughian.com- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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



DateTimeFormat - format month bug

2009-09-21 Thread MiSt

DateTimeFormat takes always DateTimeConstants.standaloneMonths() for
formatting months this produce wrong date format in languages where
DateTimeConstants.standaloneMonths()!=DateTimeConstants.months()

Form example in polish locale ("pl")


String s = DateTimeFormat.getLongDateFormat()
.format(new Date());

s = "21 wrzesień 2009" - incorrect !! should be "21 września 2009"

I think this is a bug, method

private void formatMonth(StringBuffer buf, int count, Date date)

from DateTimeFormat should take DateTimeConstants.months() not
DateTimeConstants.standaloneMonths()

Could someone confirm this ?

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



Re: GWT Good file upload exmaple

2009-09-21 Thread GumbyGWTBeginner

The the Upload Submit form works a treat.

Not really sure what to research in the way of transmitting data from
the SUBMIT form to the server and how the server processes this file
for me to pass to a class that reads the text file.  (which I have
created so to speak)

Unfortunately I cam from a VB back ground and this is very different.

Any suggestions?

Stephan

On Sep 21, 4:13 am, Manuel Carrasco Moñino
 wrote:
> You can take a look to gwtupload. 
>
> Manolo
>
>
>
> On Sun, Sep 20, 2009 at 2:58 PM, Ian Bambury  wrote:
> > Hi,
>
> > Thishttp://examples.roughian.com/#Widgets~FileUpload
> >  will
> > give you the basics of the GWT code - what you do on the server depends on
> > what you use on the server, of course, and isn't really a GWT problem
>
> > Ian
>
> > 2009/9/20 GumbyGWTBeginner 
>
> >> Hi Guys
>
> >> I was wondering is anyone could point me in the right direction for a
> >> File Upload to a Server example.
>
> >> I want to upload a text file to the server for some Server Side code
> >> to read and use the data with in.
>
> >> Thanks
>
> >> Stephan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: file download option in GWT

2009-09-21 Thread sathya


for eg, if d:/nas/local/results/xml_5.6_46.2.xls is absolute path,
Then what will equivalent relative path that I can use in my code to
where the link can pick it up.

On Sep 21, 5:22 pm, sathya  wrote:
> Hi Ian,
>          I am not able to relate absolute path and relative path.
>
> Can you give example of both absolute path and its equivalent relative
> path whih I can use it in my code.
>
> On Sep 21, 3:21 pm, Ian Bambury  wrote:
>
>
>
> > When you create thefile, you can use an absolute path (with a drive letter)
> > to where the link is picking it up with the relative path.
> > Ian
>
> >http://examples.roughian.com- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: file download option in GWT

2009-09-21 Thread sathya

Hi Ian,
 I am not able to relate absolute path and relative path.

Can you give example of both absolute path and its equivalent relative
path whih I can use it in my code.


On Sep 21, 3:21 pm, Ian Bambury  wrote:
> When you create the file, you can use an absolute path (with a drive letter)
> to where the link is picking it up with the relative path.
> Ian
>
> http://examples.roughian.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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



OOPHM and Mac OSX

2009-09-21 Thread P.G.Taboada

Hi,

it's working on my Mac Snow Leopard as long as I don't start the shell
from Eclipse.  I have seen some posts about doing this and that but it
looks like they are all out of date.

Any help/ tips here for the current trunk?

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



Re: HttpSession NullPointerException

2009-09-21 Thread Dariusz

Thanks Lothar, but I allow Cockies and still the session is not
there...

Dariusz



On Sep 21, 10:35 am, Lothar Kimmeringer  wrote:
> Dariusz schrieb:
>
> > - User logs in
> > - User in database, save user object in HttpSession (works)
> > - Forward to page /account and read the HttpSession (not working)
>
> The session is found by a cookie. If the browser forbids the
> use of cookies, the server is screwed.
>
> > The weird part is here. If I run it on my local machine (http://
> > localhost:8080/myApp) it's working fine and I can set and read the
> > session through my entire application.
>
> Localhost is running within a different security setting, so
> the use of cookies might be allowed.
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Emulated java class serialization issues

2009-09-21 Thread Andrius Juozapaitis

Ok, I think I figured this out. In addition to what I have described
above, I did need a custom serializer. Provided, I don't have too many
classes to serialize in a custom way, I guess that's the way to go.

[code]
package dao;

import com.google.gwt.user.client.rpc.SerializationStreamWriter;
import com.google.gwt.user.client.rpc.SerializationException;
import com.google.gwt.user.client.rpc.SerializationStreamReader;
import java.util.List;
public class EntityWithObjectReference_CustomFieldSerializer {
public static void serialize(SerializationStreamWriter writer,
EntityWithObjectReference entity) throws SerializationException {
writer.writeObject(entity.getSerializableEntities());
writer.writeString(entity.getText());
}

public static void deserialize(SerializationStreamReader reader,
EntityWithObjectReference entity) throws SerializationException {
entity.setSerializableEntities((List)
reader.readObject());
entity.setText( reader.readString());
}
}
[/code]


Note, I did extend the original class a little to make the test
somewhat more complete:

[code]
public class EntityWithObjectReference {
public Object objReference;
private String text;
private List serializableEntities;
public EntityWithObjectReference() {
}

public List getSerializableEntities() {
return serializableEntities;
}

public void setSerializableEntities(List
serializableEntities) {
this.serializableEntities = serializableEntities;
}

public String getText() {
return text;
}

public void setText(String text) {
this.text = text;
}
}
[/code]

On Sep 21, 1:22 pm, Andrius Juozapaitis  wrote:
> > Use wrapper-classes containing only the values you need in your
> > GWT-application. The server creates these objects out of the
> > server-side instances and set the values when received from the
> > client. It's more or less the same as you already did but with
> > the difference that you don't rely on the "intelligence" of
> > the compiler but take that into your own hands.
>
> I am reluctant to maintaining another layer of essentially duplicate
> classes, as well as creating all the data copying logic (I guess this
> could be accomplished by an aspect, as I am using Spring in the
> backend). I've considered using a custom Serializer/Deserializer, but
> was hoping there's a way to avoid it. Oh well, back to drawing board.
>
> Unless somebody comes up with a better idea, of course - I am open for
> suggestions :)
>
> regards,
> Andrius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HttpSession NullPointerException

2009-09-21 Thread Dariusz Borowski
OK, I think it is related to my vhosts settings.

The problem is, that I'm using a vhost to forward from port 80 to my
internal webapp directory. I'm using ProxyPass and probably this causes the
problem.

My settings are:

*
Servername my.url.com
DocumentRoot "/home/me/webapps/myApp/WebContent"

ProxyRequest Off

 Options FollowSymLinks Indexes
 AllowOverride All
 Order allow,deny
 Allow from al


ProxyPass / http://localhost:8080/myApp/
ProxyPassReverse / http://localhost:8080/myApp/
*

Does anyone know what I need to change, so I can use the HttpSession on the
server side through my entire application?

Thanks!




On Mon, Sep 21, 2009 at 10:24 AM, Dariusz  wrote:

> Hi!
>
> A simple scenario.
>
> - User logs in
> - User in database, save user object in HttpSession (works)
> - Forward to page /account and read the HttpSession (not working)
>
> Saving the user object in session works fine, but when I try to read
> it, I get a "NullPointerException". The session is not there.
>
> The weird part is here. If I run it on my local machine (http://
> localhost:8080/myApp) it's working fine and I can set and read the
> session through my entire application. If I deploy it on our server
> (Linux), I can set the session and read it with the same Impl class,
> but if I try to execute a different service (like AccountServiceImpl),
> then the session is not there anymore.
>
> My code looks like this:
> ...
> HttpServletRequest request = this.getThreadLocalRequest();
> HttpSession session = request.getSession();
> session.setAttribute( "user", userObject );
>
> User u = ( User )session.getAttribute( "user" );
> // here it is working
> System.out.println( "User name is: " +u.getName() );
>
> Now if I try to get the session in my AccountServiceImpl, I'm getting
> an exception???
>
> I'm wondering if it's a server setting issue or something with my
> code? (or maybe with my libraries)
>
> I would appreciate 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Emulated java class serialization issues

2009-09-21 Thread Andrius Juozapaitis

> Use wrapper-classes containing only the values you need in your
> GWT-application. The server creates these objects out of the
> server-side instances and set the values when received from the
> client. It's more or less the same as you already did but with
> the difference that you don't rely on the "intelligence" of
> the compiler but take that into your own hands.

I am reluctant to maintaining another layer of essentially duplicate
classes, as well as creating all the data copying logic (I guess this
could be accomplished by an aspect, as I am using Spring in the
backend). I've considered using a custom Serializer/Deserializer, but
was hoping there's a way to avoid it. Oh well, back to drawing board.

Unless somebody comes up with a better idea, of course - I am open for
suggestions :)

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



Re: file download option in GWT

2009-09-21 Thread Ian Bambury
When you create the file, you can use an absolute path (with a drive letter)
to where the link is picking it up with the relative path.
Ian

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



Re: Discussion on security-for-gwt-applications

2009-09-21 Thread mars1412

On Sep 19, 2:39 pm, Sripathi Krishnan 
wrote:
> The problem you mention has nothing to do with an unsecured browser. You
> just need to secure your services on the server side, and every servlet
> container has something which lets you do that.
>
> --Sri

I fully agree.
You must also consider that evil users may not use a browser at all -
there
are other ways to issue get/post requests. And even if they use a
"secure"
browser (what ever that means), they could alter the requests/
responses
before they are sent.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Presenter and PlaceManager/History

2009-09-21 Thread Chris Lowe

Can you repost this to the gwt-presenter group?

http://groups.google.com/group/gwt-presenter

Cheers,

Chris.


On Sep 21, 4:31 am, Sascha  wrote:
> Hi All,
>
> I am using the GWT Presenter library (http://code.google.com/p/gwt-
> presenter/), and currently trying to figure out how to correctly use
> the PlaceManager. I am a bit confused about the behavior as to when
> exactly the onPlaceRequest and the revealDisplay Methods for a
> Presenter that extends the WidgetPresenter are executed.
>
> Suppose I have two Presenters. An 'AdminPresenter' and a
> 'UserPresenter'. I also have a MenuPresenter and a View, which
> contains two Hyperlinks like this:
> public class MenuView extends Composite implements
> MenuPresenter.Display {
>
>   private Hyperlink userHyperlink;
>   private Hyperlink adminHyperlink;
>
>   public MenuView() {
>     final VerticalPanel panel = new VerticalPanel();
>     panel.setStyleName("menu");
>     initWidget(panel);
>
>     userHyperlink = new Hyperlink("User", "user");
>     adminHyperlink = new Hyperlink("Admin", "admin");
>
>     panel.add(learnHyperlink);
>     panel.add(adminHyperlink);
>   }
> ... additional things
>
> }
>
> I am also binding the above two hyperlinks to a ClickEvent, and my
> UserPresenter defines a PLACE called 'user', and my AdminPresenter
> defines a PLACE called 'admin'.
>
> Now here is what I don't understand: When I Click either of the links,
> then I can see that a PlaceRequestEvent is fired and the
> onPlaceRequest and revealDisplay methods of the respective Presenter
> are executed. However, when I click the the Back button of the browser
> (suppose I clicked the Admin link first, then the User link, or the
> other way around), I can see that a PlaceRequestEvent is fired too,
> but the onPlaceRequest and revealDisplay methods of the Presenter are
> not executed. I also found that if I do not bind the Hyperlinks to a
> ClickHandler, then the onPlaceRequest and revealDisplay methods are
> also not executed, which I also don't understand why :-)
>
> Is someone able to explain, how exactly in the GWT Presenter library
> the PlaceManager and all its components works, or maybe point me to
> where I might have a problem in my code?
>
> Cheers,
> Sascha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Tables, scrolling, FocusPanel and Safari

2009-09-21 Thread George Georgovassilis

Recently I run into a problem with the following setup:



...


FocusPanel


...



When the table becomes longer than the page can accomodate, the
scrollpanel should normally display scrollbars and contain the entire
table. Which it does for all browsers except Safari.

In Safari (3 & 4, Windows) the  will display scrollbars,
but the page will also display them. It appears that the table is
rendered to its full height and occupies that space on the page, but
is just graphically clipped after the .

After a brief search [1] I found the problem to be a bug in Safari,
where absolutely positioned elements inside tables inside ScrollPanels
will display this behaviour. With my app, this was caused by the
FocusImplSafari which adds a hidden 1x1 input with absolute
positioning to the table.

When reverting to the default FocusImpl the problem went away.

I think the relevant issue might be 1313.

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



Re: Advice for bundling RPC calls in ONE HTTP request

2009-09-21 Thread maku


> If you use a "command pattern" (i.e. have your RPC have only one
> method and use different Command/Action classes to determine which
> action shuld be performed), then batching is just a matter of sending
> a "super-action" whose "parameters" are a list of commands/actions.

>From my point of view we could NOT use this approach because we have
an existing application with hundreds or "classical" RPC methods.

So I search a way around where I'm able to collect the needed data and
call a generic RPC method which can handle 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Hint: Previous compiler errors may have made this type unavailable

2009-09-21 Thread BMax

Hi dougx,
thanks a lot for your message!
Sorry if I reply only at this time!
I checked my code and its setting... I saw that it's already like you
told me... and now? What can I do?

Bye, Max

On 27 Lug, 13:45, dougx  wrote:
> I don't know if this will help, but check your paths.
>
> If you have a source path like this:
> C:\Workspace\App\src\com\me\app:
> - App.gwt.xml
> - App.java
>
> Where App.gwt.xml reads:
> 
>  EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
> source/core/src/gwt-module.dtd">
> 
>   
>   
>   
> 
>
> You will get an error like this:
> Compiling module com.me.app.App
>    Computing all possible rebind results for 'com.me.app.App'
>       Rebinding com.me.app.App
>          Checking rule  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
>             [ERROR] Unable to find type 'com.me.app.App'
>                [ERROR] Hint: Previous compiler errors may have made
> this type unavailable
>
> This is because GWT is (very) not smart, and cannot locate classes in
> the small path as the gwt.xml file (notice how the template projects
> always have a client and server directory).
>
> So fix this, change the class path of App.java to:
> C:\Workspace\App\src\com\me\app\client
>
> And the entry point to:
> 
>
> This may not be the problem you have, but it sounds quite similar.
>
> Don't worry. It's not just you. I've never come across a good
> explanation of why this happens.
>
> ~
> Doug.
>
> On Jul 24, 6:44 pm, BMax  wrote:
>
> > Thanks mirceade!
> > Now, after your post, I'm really so happy! Fortunately you exist!!!
>
> > However, there is someone (smarter than mirceade) who can help me?
>
> > Bye, Max
>
> > On 24 Lug, 10:20, mirceade  wrote:
>
> > > Read the manual, read the errors, learn English, get a life.
>
> > > On Jul 23, 2:46 pm, BMax  wrote:
>
> > > > Hi, I post here my module xml code:
>
> > > > 
>
> > > >         
>
> > > >         
>
> > > >         
>
> > > >         
> > > >         
> > > >         
>
> > > >         
>
> > > >          > > > class="org.xlab.semantic.gwtext.server.SismaServiceImpl"/>
>
> > > >         
>
> > > > 
>
> > > > I think that it's good...!
> > > > Bye, Max
>
> > > > On 23 Lug, 13:27, Norman Maurer  wrote:
>
> > > > > Hi,
>
> > > > > like stated in the error message... Do you have am inherits statment
> > > > > for "org.xlab.semantic.gwtext.client.Sisma" ?
>
> > > > > Bye,
> > > > > Norman
>
> > > > > 2009/7/23 BMax :
>
> > > > > > Hi guys,
> > > > > > please help me! I have to finish an important work but now my 
> > > > > > project
> > > > > > is blocked by this error:
>
> > > > > > Checking rule  > > > > > class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
> > > > > >            [ERROR]Unabletofindtype
> > > > > > 'org.xlab.semantic.gwtext.client.Sisma'
> > > > > >               [ERROR] Hint: Previous compiler errors may have made
> > > > > > thistypeunavailable
> > > > > >               [ERROR] Hint: Check the inheritance chain from your
> > > > > > module; it may not be inheriting a required module or a module may 
> > > > > > not
> > > > > > be adding its source path entries properly
>
> > > > > > I readed other post about this problem but I didn'tfinda solution!
>
> > > > > > Thanks, Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Advice for bundling RPC calls in ONE HTTP request

2009-09-21 Thread Thomas Broyer



On 21 sep, 10:37, maku  wrote:
> Hi,
>
> I would like to bundle different RPC calls into one physical http
> call.
>
> The idea is to use GWT serialization mechanism and generic
> functionality to handle this. I could imagine a generic RPC method
> with has a DTO as paramter and the DTO contains n chunks of
> information where every chunk contains the method information and the
> parameters for the method. The server process uses the information to
> call several methods (via reflection) and then sends back n results to
> the client
>
> The direction from the server to the client seems rather clear:
>
> RPC.encodeResponseForSuccess(...) returns a String which can be passed
> back to the client. This String could than be processed with
> SerializationStreamReader.readObject
>
> But the direction from the client is not so obvious...
>
> Could anybody of you give me a hint how to do this?

If you use a "command pattern" (i.e. have your RPC have only one
method and use different Command/Action classes to determine which
action shuld be performed), then batching is just a matter of sending
a "super-action" whose "parameters" are a list of commands/actions.

Have a look at 
http://code.google.com/events/io/sessions/GoogleWebToolkitBestPractices.html
about the command pattern for RPC, and http://code.google.com/p/gwt-dispatch/
for a sample implementation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Advice for bundling RPC calls in ONE HTTP request

2009-09-21 Thread maku

Hi,

I would like to bundle different RPC calls into one physical http
call.

The idea is to use GWT serialization mechanism and generic
functionality to handle this. I could imagine a generic RPC method
with has a DTO as paramter and the DTO contains n chunks of
information where every chunk contains the method information and the
parameters for the method. The server process uses the information to
call several methods (via reflection) and then sends back n results to
the client

The direction from the server to the client seems rather clear:

RPC.encodeResponseForSuccess(...) returns a String which can be passed
back to the client. This String could than be processed with
SerializationStreamReader.readObject

But the direction from the client is not so obvious...

Could anybody of you give me a hint how to do this?

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



Re: HttpSession NullPointerException

2009-09-21 Thread Lothar Kimmeringer

Dariusz schrieb:
> - User logs in
> - User in database, save user object in HttpSession (works)
> - Forward to page /account and read the HttpSession (not working)

The session is found by a cookie. If the browser forbids the
use of cookies, the server is screwed.

> The weird part is here. If I run it on my local machine (http://
> localhost:8080/myApp) it's working fine and I can set and read the
> session through my entire application.

Localhost is running within a different security setting, so
the use of cookies might be allowed.


Regards, Lothar

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



HttpSession NullPointerException

2009-09-21 Thread Dariusz

Hi!

A simple scenario.

- User logs in
- User in database, save user object in HttpSession (works)
- Forward to page /account and read the HttpSession (not working)

Saving the user object in session works fine, but when I try to read
it, I get a "NullPointerException". The session is not there.

The weird part is here. If I run it on my local machine (http://
localhost:8080/myApp) it's working fine and I can set and read the
session through my entire application. If I deploy it on our server
(Linux), I can set the session and read it with the same Impl class,
but if I try to execute a different service (like AccountServiceImpl),
then the session is not there anymore.

My code looks like this:
...
HttpServletRequest request = this.getThreadLocalRequest();
HttpSession session = request.getSession();
session.setAttribute( "user", userObject );

User u = ( User )session.getAttribute( "user" );
// here it is working
System.out.println( "User name is: " +u.getName() );

Now if I try to get the session in my AccountServiceImpl, I'm getting
an exception???

I'm wondering if it's a server setting issue or something with my
code? (or maybe with my libraries)

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



Re: Emulated java class serialization issues

2009-09-21 Thread Lothar Kimmeringer

Andrius Juozapaitis schrieb:

> I have a crawling suspicion, the server tries to serialize the
> original class, and the client gets additional object reference int
> the stream, that it doesn't know how to handle. What is the correct
> way to solve this problem, apart from rewriting the library in
> question to get rid of object references?

Use wrapper-classes containing only the values you need in your
GWT-application. The server creates these objects out of the
server-side instances and set the values when received from the
client. It's more or less the same as you already did but with
the difference that you don't rely on the "intelligence" of
the compiler but take that into your own hands.

Alternatively you might check out the ability to use your own
Serializer/Deserializer. But that I haven't done, yet so I
can't tell you more about that.


Regards, Lothar

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



Emulated java class serialization issues

2009-09-21 Thread Andrius Juozapaitis

Hey,

I stumbled upon a problem when trying to use CouchDB with GWT (the
JCouchDB framework has unserializable fields in the lists they return,
that are not really relevant in GWT clientside). So I created a simple
test case (maven project) that tries to emulate the non-serializable
class using  in gwt module. Everything compiles without
warnings, but I am getting an error when returning the emulated class
from the server side ('This application is out of date, please click
the refresh button on your browser.'). The classes in question are:

[code]
package dao;
public class EntityWithObjectReference {
public Object objReference;
private String text;
public EntityWithObjectReference() {
}

public String getText() {
return text;
}

public void setText(String text) {
this.text = text;
}
}
[/code]

emulated class is defined as follows:

[code]
package dao;
import java.io.Serializable;
public class EntityWithObjectReference implements Serializable {
private String text;
public EntityWithObjectReference() {}

public String getText() {
return text;
}

public void setText(String text) {
this.text = text;
}
}
[/code]

note the lack of Object reference. The module descriptor I use is:

[code]
http://google-web-toolkit.googlecode.com/svn/releases/1.7/
distro-source/core/src/gwt-module.dtd">







[/code]

I have a crawling suspicion, the server tries to serialize the
original class, and the client gets additional object reference int
the stream, that it doesn't know how to handle. What is the correct
way to solve this problem, apart from rewriting the library in
question to get rid of object references?

thanks in advance,
Andrius



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



what is best way to display an image slider in GWT?

2009-09-21 Thread balachandra maddina
Hi There,

  Im trying to code a slider using GWT which displays lists of images. my
approach here is to load few images like first 10, and display them to user
when user scrolls the sidebar ill hit the server for the rest of the images
and display them(much like the way flash does while listing). and also im
wondering what is the quickest way to display the images(since displaying
images is always heavy) its a 250X300 size image when user clicks on the
image it will zoom in on the screen for better view. i have heard that using
a css approach like defining a background image is much quicker than
displaying the image using  tag is this correct? did any one come
across a slider component in GWT? if so could you share those details
please?

also is there a image tagging example available using GWT?

any help on this would be very much appreciated.

Thank you,
bala.

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