Re: Is it possible to consturct CellTree form database via rpc

2011-01-04 Thread Y2i
updateRowData()/updateRowCount() needs to be called on the data
provider, not on the cell tree.

- You first create a cell tree, passing a tree model to the cell tree
constructor.
- The tree model will be creating node info nodes in
TreeViewModel.getNodeInfo()
- DefaultNodeInfo takes an instance of a data provider for its
constructor
- The data provider initiates an RPC call
- When the data provider receives results back, it updates ITSELF, not
the tree

Take a look at the showcase code for more details
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree


On Jan 3, 11:30 pm, yeti superi...@gmail.com wrote:
 Thank you Y2i, Your messages are greatly help to me

 But there is an another problem stuck in... updataRowCount() and
 updataRowData should work with hasData, but cellTree doesnt implement
 it, so my requestion is, as to cellTree,  how do both functions above
 work?

 On 2010年12月30日, 下午12时39分, Y2i yur...@gmail.com wrote:







  It can be populated dynamically.  Please take a look at this post:

 http://groups.google.com/group/google-web-toolkit/msg/6a8f18668f046cc6

  When the data provider receives results back it needs to populate
  itself by calling

  updateRowCount()
  updateRowData()

  On Dec 29, 7:12 pm, yeti superi...@gmail.com wrote:

   Hi ,

   I wonder if celltree can be built dynamically... getNodeInfo is
   synchronous, so how  to work with a asynchronous, that is , get node
   info via a request?

   Someone said,

   pass a ListDataProvider or AsyncDataProvider into DefaultNodeInfo.
   Then you can return the NodeInfo synchronously, but populate the data
   provider asynchronously. 

   Is it right when I return defaultNodeinfo , it will wait me to
   populate the dataprovider?

   if not, could anyone show me more details?

   thanks in advance

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



Re: Is it possible to consturct CellTree form database via rpc

2011-01-04 Thread yeti
perfect, thank you very much

On 1月4日, 下午4时22分, Y2i yur...@gmail.com wrote:
 updateRowData()/updateRowCount() needs to be called on the data
 provider, not on the cell tree.

 - You first create a cell tree, passing a tree model to the cell tree
 constructor.
 - The tree model will be creating node info nodes in
 TreeViewModel.getNodeInfo()
 - DefaultNodeInfo takes an instance of a data provider for its
 constructor
 - The data provider initiates an RPC call
 - When the data provider receives results back, it updates ITSELF, not
 the tree

 Take a look at the showcase code for more 
 detailshttp://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree

 On Jan 3, 11:30 pm, yeti superi...@gmail.com wrote:







  Thank you Y2i, Your messages are greatly help to me

  But there is an another problem stuck in... updataRowCount() and
  updataRowData should work with hasData, but cellTree doesnt implement
  it, so my requestion is, as to cellTree,  how do both functions above
  work?

  On 2010年12月30日, 下午12时39分, Y2i yur...@gmail.com wrote:

   It can be populated dynamically.  Please take a look at this post:

  http://groups.google.com/group/google-web-toolkit/msg/6a8f18668f046cc6

   When the data provider receives results back it needs to populate
   itself by calling

   updateRowCount()
   updateRowData()

   On Dec 29, 7:12 pm, yeti superi...@gmail.com wrote:

Hi ,

I wonder if celltree can be built dynamically... getNodeInfo is
synchronous, so how  to work with a asynchronous, that is , get node
info via a request?

Someone said,

pass a ListDataProvider or AsyncDataProvider into DefaultNodeInfo.
Then you can return the NodeInfo synchronously, but populate the data
provider asynchronously. 

Is it right when I return defaultNodeinfo , it will wait me to
populate the dataprovider?

if not, could anyone show me more details?

thanks in advance

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



Re: CellTable - redrawing only one column (not all)

2011-01-04 Thread manstis

This is not possible (in 2.1 at least).

Have a look at the source, overridden renderRowValues() iterates all
columns.

On Dec 30 2010, 7:50 am, Janko janko.sla...@gmail.com wrote:
 Hi!

 I am using the CellTable and I would like to redraw only a particular
 column (or exclude one from redrawing)

 Is this possible?

 Please help:)
 janko
 ---
 Thank you google guys for GWT!

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



Re: How to write file with GWT?

2011-01-04 Thread Sebe
Sorry, but if I disable GAE from Eclipse, I do not run the
application. Possible solutions? Where did I go wrong in the code?

Thanks to all

Regards

Sebe



On Jan 3, 11:43 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 This one is pretty interesting - I'll look into it further.

 Thanks agai

 Alan

 On 1/3/2011 2:37 PM, A. Stevko wrote:



  I bookmarked this blog entry a while ago which has a recipe for posting 
  into the blobstore from
  app engine.
 http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobs...

  One other note - I suspect using the ByteArrayOutputStream for hundreds of 
  megabytes is going to
  run into the java runtime memory limit. I'm not sure what the limit is. The 
  error logs show
  Exceeded soft memory limit with...

  On Mon, Jan 3, 2011 at 2:29 PM, A. Stevko andy.ste...@gmail.com 
  mailto:andy.ste...@gmail.com
  wrote:

      Can you use com.google.appengine.api.datastore.Text ?
      |Text| wraps around a string of unlimited size.
     http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

      On Mon, Jan 3, 2011 at 2:12 PM, a...@mechnicality.com 
  mailto:a...@mechnicality.com
      a...@mechnicality.com mailto:a...@mechnicality.com wrote:

          On 1/3/2011 2:05 PM, Matthew Hill wrote:
          Can't you store it in the DB? --

          According to the GAE docs:

          maximum entity size        1 megabyte

          Most of my entities *start* at 1 MB and go up to maybe 500+ (its 3D 
  data)

          So, I assumed that, no, I couldn't store it in the DB :-)

          Alan

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

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

      --
      -- A. Stevko
      ===
      If everything seems under control, you're just not going fast enough. 
  M. Andretti

  --
  -- A. Stevko
  ===
  If everything seems under control, you're just not going fast enough. M. 
  Andretti

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

 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.www.mechnicality.com

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



How align Cneter widget in dock layout panel

2011-01-04 Thread newbee
Hi All,

I have created my main Panel using DockLayoutPanel where I have added
MenuBar on North side and subMenu on west side and Cell table on
center.

Now the issue is that my cell table on default set to middle aligned
(vertical) and whenever the height of the table changes then it is
realigning to the middle.

I have tried to set this to top alignment in CSS using vertical-
align :top but no success.

Please let me know how to freeze the table to the top.

Thanks for your time.
Satish

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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread agi
and how do you exactly run your application? can you paste whole
command?

I am using -noserver argument from eclipse and it works just fine..

On Jan 4, 2:44 am, Srividhya Ramachandran svr...@gmail.com wrote:
 I want to run the appln in Websphere server and trying to explore the
 -noserver option. However I get the following error:

 gwtc:
      [java] Unknown argument: -noserver
      [java] Google Web Toolkit 2.1.0

 has anybody tried this successfully?

 thanks

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



deploy new server version - how to inform clients?

2011-01-04 Thread Magnus
Hi,

when I install a new server version, I redirect my URL to a under
construction page beforehand. Then I undeploy the app and redeploy
it.

However, during this process the clients often still have the old app
in their browsers. When the new app is deployed they may receive
incompatible errors. When the new app is still not deployed, they
receive not available errors. In both cases, a browser reload will
help, either by serving the new app or by serving the under
construction page.

My problem is that even if I do the redirect, the clients do not see
the under construction page, because the app is still in the
browsers and struggles with errors.

Is there a mechanism, so that the apps in the browsers inform the user
that a reload is required when a) the app is not available or b) the
server's app is newer than the browser's version?

Or how do you deal with this problem?

Thanks
Magnus

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



How to style check boxes, radio buttons etc. with GWT?

2011-01-04 Thread sythiar
Hello everyone.

I have the following question: We are looking to change the look of
the check boxes, radio buttons and combo boxes on our site, similar to
this solution:
http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/

This is of course not possible with pure CSS - meaning Javascript or
any kind of other crude or advanced programming language always has to
be employed. So I wanted to know, it there a way to implement this
over GWT? Is there a GWT widget or widget library or maybe even custom
widget that would support making styled check boxes, radio buttons and
combo boxes?

Additional info:
I'm a designer working together with a programmer on a website and I
have been charged with everything concerning the visuals of the site.
Even though I have HTML, CSS and PHP skills, my Java skills are really
very limited to non existent. We are using GWT with Eclipse.

Actions so far:
- Search on the internet
I found that Smart GWT supports check boxes and combo boxes, but not
radio buttons, and it is not at this time an option to purchase a
Smart GWT license, so this is not a solution.

I hope that this question has not been posted before. I will continue
my search on the net, looking for answers, but I'm somewhat at a loss
here...

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



Re: How to write file with GWT?

2011-01-04 Thread Sebe
Hi again,

GAE don't allow to use FileWriter, but I need to write an XML file!
I noticed it from here: 
http://code.google.com/intl/it-IT/appengine/docs/java/jrewhitelist.html

I can use the classes:
javax.xml.transform.Transformer
javax.xml.transform.dom.DOMSource
.

that allow writing to an XML file

So I tried to do so:

CLIENT-SIDE:
MAIN:


RPCService rpc = new RPCService();
//rpc.testRPC(rooto, callback);
 
rpc.creaXML(nickname,pass,email2,gio,mes,ann,callback);


AsyncCallback callback = new AsyncCallback()
{
public void onFailure(Throwable caught)
{
Window.alert(Failure!);
}

public void onSuccess(Object result)
{

Window.alert(Success);
System.out.println((String)result);
}
};

---
package de.vogella.gwt.helloworld.client;


import com.google.gwt.user.client.rpc.RemoteService;

public interface MyService extends RemoteService {

//public String testRPC(String message);
public void creaXML(String nickname,String pass,String email2,String
gio,String mes, String ann);

}
-
package de.vogella.gwt.helloworld.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public class RPCService implements MyServiceAsync {
 MyServiceAsync service = (MyServiceAsync)
GWT.create(MyService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;

public RPCService()
{
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() +
rpc);
}
/*
public void testRPC(String message, AsyncCallback callback)
{
service.testRPC(message, callback);

}

*/
public void creaXML(String nickname,String pass,String
email2,String gio,String mes, String ann,AsyncCallback callback)
{
service.creaXML(nickname, pass, email2, gio, mes, ann,
callback);
}


}

package de.vogella.gwt.helloworld.client;

import java.io.File;

import org.w3c.dom.Document;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface MyServiceAsync {

//void testRPC(String message, AsyncCallbackString callback);

void creaXML(String nickname,String pass,String email2,String
gio,String mes, String ann,AsyncCallbackVoid callback);

}

SERVER -SIDE:

package de.vogella.gwt.helloworld.server;


import java.io.*;
import org.w3c.dom.*;

import org.w3c.dom.Document;
import org.xml.sax.SAXException;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;

import de.vogella.gwt.helloworld.client.MyService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class MyServiceImpl extends RemoteServiceServlet implements
MyService {


public void creaXML(String nickname,String pass,String email2,String
gio,String mes, String ann){

/*
 XML format (keywords are space delimited):
   utenti --già presente
  utente
 nick.../nick
 psw.../psw
 mail.../mail
 datan
gg.../gg
mm.../mm
aa.../aa
  /datan
  /utente
  /utenti
*/

String dest = utenti.xml;
Document doc = null;
DocumentBuilder db = null;
//Istanziazione di DocumentBuilderFactory
DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
//Istanziazione di DocumentBuilder
try{
db = dbf.newDocumentBuilder();
}
catch(ParserConfigurationException pce){
System.err.println(Errore per DocumentBuilder);
}

try {
doc = db.parse(utenti.xml);
} catch (SAXException se) {
// TODO Auto-generated catch block

} catch (IOException ioe){
System.err.println(ioe);
}
Node 

Re: How to write file with GWT?

2011-01-04 Thread Sebe
I was wrong to write the code on the server-side ..


try {
DOMSource DOMSource source = new (doc);
StreamResult sr = new StreamResult (dest);
TransformerFactory tf =
TransformerFactory.newInstance ();
Transformer tf.newTransformer TRANSF = ();
transf.transform (source, sr);
}
catch (TransformerConfigurationException tce)
{
System.out.println (tce.getMessage ());
}
catch (TransformerException te)
{
System.out.println (te.getMessage ());
}


now gives me this error:
javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract void
de.vogella.gwt.helloworld.client.MyService.creaXML (java.lang.String,
java.lang.String, java.lang. String, java.lang.String,
java.lang.String, java.lang.String) 'Threw an unexpected exception:
javax.xml.transform.TransformerFactoryConfigurationError: Provider not
found org.apache.xalan.processor.TransformerFactoryImpl
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java: 378) ...

What is it?

Thank very much

On Jan 4, 11:46 am, Sebe sebethebes...@hotmail.it wrote:
 Hi again,

 GAE don't allow to use FileWriter, but I need to write an XML file!
 I noticed it from 
 here:http://code.google.com/intl/it-IT/appengine/docs/java/jrewhitelist.html

 I can use the classes:
 javax.xml.transform.Transformer
 javax.xml.transform.dom.DOMSource
 .

 that allow writing to an XML file

 So I tried to do so:

 CLIENT-SIDE:
 MAIN:

 
 RPCService rpc = new RPCService();
                                         //rpc.testRPC(rooto, callback);

 rpc.creaXML(nickname,pass,email2,gio,mes,ann,callback);

 
 AsyncCallback callback = new AsyncCallback()
     {
         public void onFailure(Throwable caught)
         {
             Window.alert(Failure!);
         }

         public void onSuccess(Object result)
         {

                 Window.alert(Success);
                 System.out.println((String)result);
         }
     };
 
 ---
 package de.vogella.gwt.helloworld.client;

 import com.google.gwt.user.client.rpc.RemoteService;

 public interface MyService extends RemoteService {

         //public String testRPC(String message);
         public void creaXML(String nickname,String pass,String email2,String
 gio,String mes, String ann);

 }

 -
 package de.vogella.gwt.helloworld.client;

 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.rpc.ServiceDefTarget;

 public class RPCService implements MyServiceAsync {
          MyServiceAsync service = (MyServiceAsync)
 GWT.create(MyService.class);
             ServiceDefTarget endpoint = (ServiceDefTarget) service;

             public RPCService()
             {
                 endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() +
 rpc);
             }
             /*
             public void testRPC(String message, AsyncCallback callback)
             {
                 service.testRPC(message, callback);

             }

             */
             public void creaXML(String nickname,String pass,String
 email2,String gio,String mes, String ann,AsyncCallback callback)
             {
                 service.creaXML(nickname, pass, email2, gio, mes, ann,
 callback);
             }

 }

 
 package de.vogella.gwt.helloworld.client;

 import java.io.File;

 import org.w3c.dom.Document;

 import com.google.gwt.user.client.rpc.AsyncCallback;

 public interface MyServiceAsync {

         //void testRPC(String message, AsyncCallbackString callback);

         void creaXML(String nickname,String pass,String email2,String
 gio,String mes, String ann,AsyncCallbackVoid callback);

 }

 
 SERVER -SIDE:

 package de.vogella.gwt.helloworld.server;

 import java.io.*;
 import org.w3c.dom.*;

 import org.w3c.dom.Document;
 import org.xml.sax.SAXException;

 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.transform.*;
 import javax.xml.transform.dom.DOMSource;
 import javax.xml.transform.stream.StreamResult;

 import de.vogella.gwt.helloworld.client.MyService;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 public class MyServiceImpl extends RemoteServiceServlet implements
 MyService {

         public void creaXML(String nickname,String pass,String email2,String
 gio,String mes, String ann){

                 /*
                  XML format (keywords are space delimited):
        utenti 

Re: deploy new server version - how to inform clients?

2011-01-04 Thread Nirmal Patel
You need to handle IncompatibleRemoteServiceException 
Read 
here: 
http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideHandlingExceptions

Regards,
Nirmal

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



Re: please Help me GWT Listbox

2011-01-04 Thread Nirmal Patel
Not sure if I understand your requirement; but are you looking to allow the 
user select multiple options from a list??

If so, there is a GWT widget: ListBox (
http://gwt.google.com/samples/Showcase/Showcase.html#!CwListBox)

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



Unit test ListBox and change event problem when attached to DOM

2011-01-04 Thread salk31
This test fails as the event handler is called twice...

public void testFoo() {
Element body = RootPanel.getBodyElement();

Element div = DOM.createDiv();
div.setId(DOM.createUniqueId());

body.appendChild(div);

ListBox lb = new ListBox();
RootPanel.get(div.getId()).add(lb);

lb.addItem(a);
lb.addItem(b);

final ListString l = new ArrayListString();

lb.addChangeHandler(new ChangeHandler() {
  @Override
  public void onChange(ChangeEvent event) {
l.add(aa);
  }
});

lb.setSelectedIndex(1);
assertEquals(0, l.size());
  }

Am I doing something stupid? I get the same result in dev and prod
modes. The stack trace is horribly complicated so I'm not that keen to
dive in and try and debug 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Tobias
I think that's not a compiler option, but an option for the GWT Hosted mode. 
I don't think you have to do anything special to the compiler to run it with 
your Websphere server. -noserver just means that the GWT Hosted Mode should 
not start up its embedded Jetty server.

Regards,
Tobias

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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Srividhya Ramachandran
I thought this was a compiler option . I am trying to use it in a ant target
and it fails.
I have the main application as a J2EE application deployed in websphere
(which is running in RAD (same as Eclipse)) using struts. So I am following
this:
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT%27s


  target name=gwtc depends=javac description=GWT compile to
JavaScript
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
  classpath
pathelement location=JavaSource/
path refid=project.class.path/
  /classpath
  !-- add jvmarg -Xss16M or similar if you see a StackOverflowError --
  jvmarg value=-Xmx256M/
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG --
  arg line=-logLevel/
  arg value=DEBUG/
  arg value=-noserver/
  arg value=-startupUrl/
  arg value=http://localhost:/Start.action/
  arg value=com.prototype.gwt.Prototype/
/java
  /target

Can you please let me know how to make this work. I am able to debug the
samples from the same environment.
thanks


On Tue, Jan 4, 2011 at 4:55 AM, agi agata.p...@gmail.com wrote:

 and how do you exactly run your application? can you paste whole
 command?

 I am using -noserver argument from eclipse and it works just fine..

 On Jan 4, 2:44 am, Srividhya Ramachandran svr...@gmail.com wrote:
  I want to run the appln in Websphere server and trying to explore the
  -noserver option. However I get the following error:
 
  gwtc:
   [java] Unknown argument: -noserver
   [java] Google Web Toolkit 2.1.0
 
  has anybody tried this successfully?
 
  thanks

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



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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Srividhya Ramachandran
That what I was wondering. But without any options or anything, I am not
able to debug the client side (GWT).

On Tue, Jan 4, 2011 at 8:18 AM, Srividhya Ramachandran svr...@gmail.comwrote:

 I thought this was a compiler option . I am trying to use it in a ant
 target and it fails.
 I have the main application as a J2EE application deployed in websphere
 (which is running in RAD (same as Eclipse)) using struts. So I am following
 this:

 http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT%27s


   target name=gwtc depends=javac description=GWT compile to
 JavaScript
 java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
   classpath
 pathelement location=JavaSource/
 path refid=project.class.path/
   /classpath
   !-- add jvmarg -Xss16M or similar if you see a StackOverflowError
 --
   jvmarg value=-Xmx256M/
   !-- Additional arguments like -style PRETTY or -logLevel DEBUG --
   arg line=-logLevel/
   arg value=DEBUG/
   arg value=-noserver/
   arg value=-startupUrl/
   arg value=http://localhost:/Start.action/
   arg value=com.prototype.gwt.Prototype/
 /java
   /target

 Can you please let me know how to make this work. I am able to debug the
 samples from the same environment.
 thanks



 On Tue, Jan 4, 2011 at 4:55 AM, agi agata.p...@gmail.com wrote:

 and how do you exactly run your application? can you paste whole
 command?

 I am using -noserver argument from eclipse and it works just fine..

 On Jan 4, 2:44 am, Srividhya Ramachandran svr...@gmail.com wrote:
  I want to run the appln in Websphere server and trying to explore the
  -noserver option. However I get the following error:
 
  gwtc:
   [java] Unknown argument: -noserver
   [java] Google Web Toolkit 2.1.0
 
  has anybody tried this successfully?
 
  thanks

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




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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Tobias
The documentation page that you mentioned has -noserver under Development 
Mode Options. If you want to debug your project using a Websphere server as 
backend, you probably don't want to run the compiler but the Development 
Mode anyway? -startupUrl is also a Development mode option. I think you 
need to use com.google.gwt.dev.HostedMode instead of 
com.google.gwt.dev.Compiler.

Regards,
Tobias

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



Re: Upgrade to GWT 2.1.1

2011-01-04 Thread Aldo Neto
Tks Chris,

I believed that this was the problem (although I disabled the Roo from my
project). But I found that the problem is actually with the Maven GWT
version. Once Maven is referencing a GWT 2.1 jar file, the errors I'm
getting are due to the incompatibility with the GWT defined in my project
(which I changed to 2.1.1). I renamed my GWT 2.1.1 jar files to be placed as
Maven 2.1 and it worked, but I saw somewhere that ROO is about to release
Roo 1.1.1 (Jan - 7th) and I assume the STS will be updated as well, so I'll
keep working with the 2.1 for now until Roo is also updated.

Thanks,
Aldo

On Mon, Jan 3, 2011 at 5:58 PM, Chris Ramsdale cramsd...@google.com wrote:

 Aldo,

 If this is a Roo-generated app, you'll need to wait to until Roo 1.1.1 is
 released to upgrade to GWT 2.1.1. For now Roo-generated apps are only
 compatible with GWT 2.1.

 -- Chris

 On Fri, Dec 31, 2010 at 11:28 AM, Aldo Neto tumo...@gmail.com wrote:

 Hi All,

 I'm using STS 2.5.1 (i.e. Eclipse 3.6) and tried to upgrade to GWT 2.1.1,
 but I'm not able to do so. I updated the plugin and the SDK, updated the
 project reference to use them and compile the project. It all worked fine,
 but when I tried to run the project I got the errors below.

 Does anybody has any idea of what I'm doing wrong here?

 Thanks


 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/client/impl/AbstractClientRequestFactory.java'
  [ERROR] [applicationScaffold] - Line 29: The constructor
 DefaultRequestTransport() is undefined
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/DefaultProxyStore.java'
  [ERROR] [applicationScaffold] - Line 37: No source code is available for
 type com.google.gwt.autobean.shared.AutoBeanT; did you forget to inherit a
 required module?
  [ERROR] [applicationScaffold] - Line 38: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 required module?
  [ERROR] [applicationScaffold] - Line 60: No source code is available for
 type com.google.gwt.autobean.shared.AutoBeanCodex; did you forget to inherit
 a required module?
  [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/ProxyStore.java'
  [ERROR] [applicationScaffold] - Line 36: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 required module?
  [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequest.java'
  [ERROR] [applicationScaffold] - Line 39: Bound mismatch: The type
 BaseProxy is not a valid substitute for the bounded parameter P extends
 EntityProxy of the type InstanceRequestP,T
  [ERROR] [applicationScaffold] - Line 113: No source code is available
 for type com.google.gwt.autobean.shared.Splittable; did you forget to
 inherit a required module?
  [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java'
  [ERROR] [applicationScaffold] - Line 19: The import
 com.google.gwt.requestfactory.shared.impl.Constants.REQUEST_CONTEXT cannot
 be resolved
 [ERROR] [applicationScaffold] - Line 63: The type AbstractRequestContext
 must implement the inherited abstract method RequestContext.create(ClassT)
  [ERROR] [applicationScaffold] - Line 63: The type AbstractRequestContext
 must implement the inherited abstract method RequestContext.edit(T)
 [ERROR] [applicationScaffold] - Line 374: Constants.VERSION_PROPERTY_B64
 cannot be resolved
  [ERROR] [applicationScaffold] - Line 411: Constants.VERSION_PROPERTY_B64
 cannot be resolved
 [ERROR] [applicationScaffold] - Line 511: REQUEST_CONTEXT cannot be
 resolved
  [ERROR] [applicationScaffold] - Line 606: The type new
 RequestTransport.TransportReceiver(){} must implement the inherited abstract
 method RequestTransport.TransportReceiver.onTransportFailure(String)
  [ERROR] [applicationScaffold] - Line 616: The constructor
 ServerFailure(String, String, String, boolean) is undefined
 [ERROR] [applicationScaffold] - Line 654: The constructor
 ServerFailure(String, String, String, boolean) is undefined
  [ERROR] [applicationScaffold] - Line 698: REQUEST_CONTEXT cannot be
 resolved
 [ERROR] [applicationScaffold] - Line 845: REQUEST_CONTEXT cannot be
 resolved
  [ERROR] 

Re: Where do KeyPress Events go?

2011-01-04 Thread jaybose
http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload

Look at the source of the ShowCase example above.
The uploadButton it uses is not a SubmitButton either.

Just make sure the handler of your EnterButton submits the form.


On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 So, now that I have an EnterButton class, I'd like to use it. :-)  I
 have a form panel with a FileUpload.  I'd like to let the user select
 a file, then hit enter to fire the form submit button (which is an
 EnterButton, not a SubmitButton).

 Unfortunately, FileUpload does not have an addKeyPressHandler
 routine.  So, who gets any key events I generate while in the text
 field part of a FileUpload?  What is the call chain for events that
 aren't captured by the Widget where the event happens?

 Sorry if this is an FAQ, and in the docs.  I took a (quick) look, and
 couldn't find anything.  Please point me to the correct docs if it is
 in there.

 Thanks!

 Greg

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



[ANN] Smart GWT 2.4 Released

2011-01-04 Thread Sanjiv Jivan
Hi,
Smart GWT 2.4 has been released.

Release Announcement :
http://www.jroller.com/sjivan/entry/smart_gwt_2_4_released
Download : http://code.google.com/p/smartgwt/downloads/list
Showcase Demo : http://www.smartclient.com/smartgwt/showcase/

The key features of this release are :

* GWT 2.1.1 compatible
* Smart GWT QuickStart Guide
* Offline support with seamless integration with the normal DataSource
request / response cycle
* User Defined data highlighting
* Advanced Hover Components
* New ultralight Simplicity theme that is virtually image free and easy to
customize
* IE Performance improvements
* ListGrid autofit support
* 24h cased Calendars
* Several new Showcase samples

Feedback welcome.

Thanks,
Sanjiv

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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Srividhya Ramachandran
Is it possible to debug in Hosted Mode?

On Tue, Jan 4, 2011 at 8:32 AM, Tobias thaberm...@gmail.com wrote:

 The documentation page that you mentioned has -noserver under Development
 Mode Options. If you want to debug your project using a Websphere server as
 backend, you probably don't want to run the compiler but the Development
 Mode anyway? -startupUrl is also a Development mode option. I think you
 need to use com.google.gwt.dev.HostedMode instead of
 com.google.gwt.dev.Compiler.

 Regards,
 Tobias

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


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



Re: please Help me GWT Listbox

2011-01-04 Thread jaybose
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/ListBox.html

Based on the javadoc, you should see what you need to add elements to
a ListBox.
If this is not what you needed, please explain further.



On Jan 3, 3:57 am, vijay gohel vijayigo...@gmail.com wrote:
 hi,

 please Help Me in Listbox widget

 i want to add option Group like Select tag's Option group  in List
 box

 How it is Possible. i don't Know.

 Please Help me on it

 thanks in advance

 Regards,
 Vijay Gohel

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



Re: deploy new server version - how to inform clients?

2011-01-04 Thread nacho
When you call to your services you can do something like this in your
AsyncCallback

public void onFailure(Throwable caught) {
if (caught instanceof IncompatibleRemoteServiceException) {
Window.Location.assign(/newUrl);
}
}

Regards.

On 4 ene, 09:22, Nirmal Patel nirmaljpa...@gmail.com wrote:
 You need to handle IncompatibleRemoteServiceException
 Read
 here:http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication...

 Regards,
 Nirmal

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



Re: org.eclipse.jdt.internal.core.JavaModel cannot be cast to org.eclipse.jdt.core.IJavaProject

2011-01-04 Thread TBirch
I have some more information on this problem. I only get this error if
my workspace in eclipse is named the same as my GWT project. In other
words, if I create a new GWT project and use the same name for the
project as the name I used for my eclipse workspace, I get the unable
to cast error. However, if I create a new GWT project with a name that
is different than the workspace name then everything works fine. This
means of course that any existing projects where the workspace and the
project name are the same will get this casting error.
Could anyone comment on this? Is it standard practice to keep the
workspace and project names different?
Thanks

On Dec 27 2010, 8:22 am, TBirch tjfbi...@bellsouth.net wrote:
 It has been several months since I first posted about this issue and
 since then I've been waiting to see if any others might also have this
 problem but I don't believe I've seen references at least in the GWT
 forum. I have seen at least one reference to this error in Helios on a
 webobjects forum but without any solution posted that I could find. My
 problem is that I can create a new GWT web project in eclipse Galileo
 with no problems. But I continue to get this error message when trying
 to create even a basic GWT web project in Helios. I've continued,
 since I first installed Helios, to get all updates available for
 Helios and for GWT hoping to solve this problem without any luck. Has
 anyone else also had this problem and if so found a solution? Or does
 anyone have any suggestions that I could try?
 Thank You

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



Re: Announcing Chrome Developer Plugin support for Mac and Linux

2011-01-04 Thread khj
It seems like Chris Conroy's suggestion was pretty complicated.  To tell the 
truth, I still don't think I understand just exactly what he was saying ... 
 sorry!

Anyway, the earlier post by Andreas Horst (changing the *system*'s default 
browser to Chrome), accomplished what I was after.

Thanks for all who replied,

-Kenneth

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



Dependant style not applied

2011-01-04 Thread John
I'm trying to apply a dependant style to an InlineLabel, and I can see
that the correct style is being set in firebug (since chrome is still
broken ...), but the style isn't actually being used.  Here's the
code:

 *.ui.xml --
ui:style ../../resources/definitions.css
@external mainNavLink-selected mainNavLink-disabled;
.mainNavLink {
font-size: 16px;
margin-left: 25px;
}

.mainNavLink:hover {
color: COLOR_SIX;
cursor: pointer;
}

.mainNavLink-selected {
color: COLOR_SIX;
}
/ui:style

--- in the presenter ---
selectedLabel.addStyleDependentName(selected);

--- in firebug HTML 
span class=EO-agt-fathom-ifathom-client-view-take2-
ContentView_ContentViewUiBinderImpl_GenCss_style-mainNavLink EO-agt-
fathom-ifathom-client-view-take2-
ContentView_ContentViewUiBinderImpl_GenCss_style-mainNavLink-
selected

--- in firebug Style tab ---
.EO-agt-fathom-ifathom-client-view-take2-
ContentView_ContentViewUiBinderImpl_GenCss_style-mainNavLink {
  font-size: 16px;
  margin-left: 25px;
}


So you can see where my dependent style has actually been applied to
the InlineLabel in the html, but for some reason it's not actually
using it.  Does anyone have any insight to why this is happening?  Any
thoughts would be appreciated

Thanks,
John

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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Srividhya Ramachandran
I tried the -noserver option with devmode and changing the startupURL, but
the debugger does not break at the breakpoint (the appln runs fine).
Any ideas? I really want to debug this app in websphere... (Note: I am able
to debug other sample applns from the same development environment.).
Any help greatly appreciated.
thanks


On Tue, Jan 4, 2011 at 9:25 AM, Srividhya Ramachandran svr...@gmail.comwrote:

 Is it possible to debug in Hosted Mode?

 On Tue, Jan 4, 2011 at 8:32 AM, Tobias thaberm...@gmail.com wrote:

 The documentation page that you mentioned has -noserver under Development
 Mode Options. If you want to debug your project using a Websphere server as
 backend, you probably don't want to run the compiler but the Development
 Mode anyway? -startupUrl is also a Development mode option. I think you
 need to use com.google.gwt.dev.HostedMode instead of
 com.google.gwt.dev.Compiler.

 Regards,
 Tobias

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




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



Re: Where do KeyPress Events go?

2011-01-04 Thread Greg Dougherty
Yes, but it doesn't do the upload when I hit Enter.  Which is what I'm
trying to figure out how to get it to do.

Greg

On Jan 4, 8:20 am, jaybose onyeje.b...@gmail.com wrote:
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload

 Look at the source of the ShowCase example above.
 The uploadButton it uses is not a SubmitButton either.

 Just make sure the handler of your EnterButton submits the form.

 On Jan 3, 8:57 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:

  So, now that I have an EnterButton class, I'd like to use it. :-)  I
  have a form panel with a FileUpload.  I'd like to let the user select
  a file, then hit enter to fire the form submit button (which is an
  EnterButton, not a SubmitButton).

  Unfortunately, FileUpload does not have an addKeyPressHandler
  routine.  So, who gets any key events I generate while in the text
  field part of a FileUpload?  What is the call chain for events that
  aren't captured by the Widget where the event happens?

  Sorry if this is an FAQ, and in the docs.  I took a (quick) look, and
  couldn't find anything.  Please point me to the correct docs if it is
  in there.

  Thanks!

  Greg

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



Re: EnterButton

2011-01-04 Thread Greg Dougherty
So why hasn't this kind of Widget made it into the GWT code base?

Greg

On Jan 3, 5:53 pm, A. Stevko andy.ste...@gmail.com wrote:
 I've used this pattern throughout my code base with no problem.

 On Mon, Jan 3, 2011 at 6:57 AM, Greg Dougherty
 dougherty.greg...@mayo.eduwrote:



  I have a couple of places where I want the user to be able to hit
  enter, and have a button clicked.  So I created the class EnterButton,
  which has all the default constructors, and the following bit of code:

         public void onKeyPress (KeyPressEvent event)
         {
                 int     keyCode = event.getNativeEvent ().getKeyCode
  ();

                 if (keyCode == KeyCodes.KEY_ENTER)
                         click ();
         }

  Is there a reason why some such class isn't part of GWT already?  Is
  there something in this code that will turn around and bite me in the
  tush?

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

 --
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough. M.
 Andretti

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



Creating a Client-Only GWT Project in Eclipse

2011-01-04 Thread khj
Basically, I would like to start by clicking Eclipse's New Web Application 
Project button (which creates a standard client/server example project). 
 Then, I want to remove everything that relates to using a server.

Though I know I can just copy the JS and other files to another machine for 
deployment, it seems that extra space and execution time is needed during 
devlopment even though I don't need server support.

So, can someone (please!) provide a list of all files that can be deleted as 
well as any config file (e.g., web.xml) changes that need to be made to 
transform the standard GWT project into a client-only version?

I would find such a list very useful!

Thanks for your comments/suggestions,

-Kenneth

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



GWT Image Bundles - Only for Small Images?

2011-01-04 Thread khj
I am creating an application that will display one of about 20 PNG images 
upon selection of a corresponding tree item.  Each image is on the order of 
200K in length.

Would it make sense to use GWT's image bundles for this?  Or, are 
bundles designed to be used more with a collection of much smaller files 
(e.g., icons).

I would guess there is some maximum data transfer size limit over which 
bundles would incur too long of a start up time.

Thanks for any ideas!

-Kenneth

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



About TreeSet usage in GWT

2011-01-04 Thread Maverick
I tried TreeSet for FlexTable Sorting, creating a table model like
this:

package chanakya.gwt.client;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.TreeSet;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlexTable;

public class BatchDetailsTableModel extends TableModel {
String[] columnModel = new String[] { SrNo, Meters, Weight,
Received Date };
Comparator comparator = new GreyBatchDetailsComparator();
TreeSetGreyBatchDetails greyBatchDetails;
ArrayListGreyBatchDetails displayDetails = null;
private int colIndex;
private FlexTable batchDetailsTable;
private Date defaultDate;
private boolean refreshed= false;

public BatchDetailsTableModel(FlexTable batchDetailsTable) {
greyBatchDetails = new TreeSetGreyBatchDetails(comparator);
this.batchDetailsTable = batchDetailsTable;

this.defaultDate = new Date();
}

@Override
public int getColumCount() {
return columnModel.length;
}

@Override
public int getRowCount() {
return greyBatchDetails.size();
}

@Override
public Object getValueAt(int rowIndex, int colIndex) {
Window.alert(Getting value at: + rowIndex);
Object result = null;
//  displayDetails = new
ArrayListGreyBatchDetails(greyBatchDetails);
switch (colIndex) {
case 0:
switch (rowIndex) {
case 0:
result = columnModel[colIndex];
break;
default:
result = rowIndex;
break;
}
break;
case 1:
switch (rowIndex) {
case 0:
result = columnModel[colIndex];
break;
default:
result = (float) displayDetails.get(rowIndex - 
1).getMeters();
break;
}
break;
case 2:
switch (rowIndex) {
case 0:
result = columnModel[colIndex];
break;
default:
result = (float) displayDetails.get(rowIndex - 
1).getWeight();
break;
}
break;
case 3:
switch (rowIndex) {
case 0:
result = columnModel[colIndex];
break;
default:
result = 
DateTimeFormat.getMediumDateTimeFormat().format(

displayDetails.get(rowIndex).getReceivedDate());
break;
}
break;
}
return result;
}

@Override
public String getColName(int colIndex) {
return columnModel[colIndex];
}

@Override
public void setValueAt(int rowIndex, int colIndex, Object value) {

if (rowIndex == 0)
return;
if (colIndex == 0)
return;
displayDetails = new 
ArrayListGreyBatchDetails(greyBatchDetails);
if (colIndex == 1) {
displayDetails.get(rowIndex - 1).setMeters((Double) 
value);
} else if (colIndex == 3) {
displayDetails.get(rowIndex - 1).setReceivedDate(

DateTimeFormat.getMediumDateFormat().parse((String) value));
}
greyBatchDetails.clear();
greyBatchDetails.addAll(displayDetails);
setRefreshed(false);
refreshDisplay();
return;
}

public void refreshTable () {
if (!isRefreshed()) {
displayDetails = new 
ArrayListGreyBatchDetails(greyBatchDetails);
setRefreshed(true);
}
}

public void refreshDisplay() {
Window.alert(refreshing screen);
for (int row = 0; row  getRowCount(); row++) {
for (int col = 0; col  getColumCount(); col++) {
batchDetailsTable.setText(row, col,
   

Defining ChangeHandler in a Hidden Widget

2011-01-04 Thread Kevin
Hello all,

I´m triying to define a ChangeHandler in a Hidden widget wrapped from
the html file. The code used to achieve this is the following:


input = Hidden.wrap( DOM.getElementById(input));

ChangeHandler handler = new ChangeHandler() {

@Override
public void onChange(ChangeEvent event) {
// TODO Auto-generated method stub
//The logic
}
};

input.addHandler(handler, new GwtEvent.TypeChangeHandler());

Then clicking on a button, the Hidden widget value is changed, but  it
seems that the change event is not being captured.

Is the event handler implementation wrong? Or I´m forgetting
something?

Thanks in advance for your help,

Kevin.

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



Re: Runtime errors after updating to 2.1.1

2011-01-04 Thread Fabio
Verify if you updated GWT version number at maven pom file.

I got a similar error, because Eclipse was with the right version
(2.1.1) but maven was configured to use 2.1.0:

dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwt.version}/version
scopeprovided/scope
/dependency

(gwt.version property was outdated at pom.xml).

Best regards,
Fábio Miranda.


On 30 dez 2010, 19:34, Gary S agilej...@earthlink.net wrote:
 I have a multi Maven module project that built and ran as a Web
 Application without error (it took 2 weeks of dumpster diving). After
 updating to GWT 2.1.1, GPE 3.6, and GWT Maven Plugin 2.1.0-1 I can
 still build and launch as a Web Application but in Eclipse Development
 Mode view there is this: (a similar problem ishttp://bit.ly/gDjlJl
 but GWT 2.1.1 is in my local repo)

 [DEBUG] [aeou] - Validating newly compiled units
         [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/
 gwt-user.jar!/com/google/gwt/view/client/CellPreviewEvent.java'
                 [ERROR] [aeou] - Line 18: The import
 com.google.gwt.cell.client.Cell.Context cannot be resolved
                 [ERROR] [aeou] - Line 66: Context cannot be resolved to a type
                 [ERROR] [aeou] - Line 88: Context cannot be resolved to a type
                 [ERROR] [aeou] - Line 107: Context cannot be resolved to a 
 type
                 [ERROR] [aeou] - Line 111: Context cannot be resolved to a 
 type
                 [ERROR] [aeou] - Line 132: Context cannot be resolved to a 
 type
                 [ERROR] [aeou] - Line 140: Context cannot be resolved to a 
 type
                 [ERROR] [aeou] - Line 141: Context cannot be resolved to a 
 type
                 [ERROR] [aeou] - Line 155: Context cannot be resolved to a 
 type
         [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/
 gwt-user.jar!/com/google/gwt/view/client/
 DefaultSelectionEventManager.java'
                 [ERROR] [aeou] - Line 336: The method clear() is undefined 
 for the
 type MultiSelectionModelcapture#13-of ? super T
                 [ERROR] [aeou] - Line 467: The method getVisibleItemCount() is
 undefined for the type HasDataT
                 [ERROR] [aeou] - Line 471: The method getVisibleItem(int) is
 undefined for the type HasDataT

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



gwt rpc project fails in deploy mode but is fine in host mode

2011-01-04 Thread Weiqin Ma
We're using gwt to call rpc service to get data from database.
It can show the daa in the listGrid in host mode,
but it does not work in deploy mode,
Could anyone give some advice about this?
Appreciate it so much!

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



What does this message means - Error in Generated.....FieldSerializer.java

2011-01-04 Thread Rodrigo Romano
Hi,

I am trying to gwt compile my modules that are 100% POJO using
objectify.
And I getting this error message, but it compiles after that. What it
means??

[ERROR] Errors in 'generated://C34ED3C084298C31F07B52ABE9478A9C/
mypackage/database/MyClass_FieldSerializer.java'
   [ERROR] Line 20: No source code is available for type
mypackage.database.MyClass; did you forget to inherit a required
module?
   See snapshot: C:\Users\ISAC_N~1\AppData\Local\Temp
\mypackage.database.MyClass_FieldSerializer7886760315816490954.java
[ERROR] Errors in 'generated://
D53192D233C2B1A6E8A82A245F961E08/mypackage/gwt/modules/client/
ISessionSuportService_Proxy.java'
   [ERROR] Line 463: No source code is available for type
mypackage.database.MyClass; did you forget to inherit a required
module?
   See snapshot: C:\Users\ISAC_N~1\AppData\Local\Temp
\mypackage.gwt.modules.client.ISessionSuportService_Proxy5224909169187970547.java
   Compiling 6 permutations
  Compiling permutation 0...
  Compiling permutation 1...
  Compiling permutation 2...
  Compiling permutation 3...
  Compiling permutation 4...
  Compiling permutation 5...
   Compile of permutations succeeded


Help Please
[],
Thanks in advance.

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



Re: New user - how to create new GWT project

2011-01-04 Thread Tom
I have the same problem.  Using the GWT Remote Service option will
not create the Async class for me either.  I'm learning GWT and it
would be nice to have those tasks automated for people like me. :-)

On Dec 27 2010, 4:12 pm, xdzgor xdz...@hotmail.com wrote:
 Hi - I am usingEclipseto create a GWT-based application. When I
 create a new GWT remote service, an interface called, for example,
 MyTestService is created. In this interface, a static class called
 Util is automatically created which won't compile, because it refers
 to a class (or interface?) called MyTestServiceAsync. How do I getEclipseto 
 generate the necessary code for me, so that the basic
 project will compile?

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



Re: Best way to handle Hierarchical structures/queries in GWT + GAE Datastore

2011-01-04 Thread Kasper
I am facing more or less the same problem. Did you find a good
solution?

Thanks.
Kasper

On 4 Dec. 2010, 03:19, metalhammer29a metalhammer...@gmail.com
wrote:
 forgot to add that my question is mainly toward Recursive entities.
 what is the best data structure to use ?
 (a Folder, can have Zero or Many Folders, and Zero or Many Documents)

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



Persist/remove methods in ServiceLayer

2011-01-04 Thread sohai
Hi,
I have a question is it passible to make RequestFactory work with service on 
server side which have persit/remove for entities.
In other works i have 
on server side: 
public interface PlanetService {

public long countAll();

public void delete(Planet entity);

public ListPlanet findAll();

public ListPlanet findEntries(Integer firstResult, Integer lastResult);

public Planet save(Planet entity);
}
client:
@Service(value = PlanetService.class, locator = PlanertServiceLocator.class)
public interface PlanetRequest extends RequestContext {
RequestLong countAll();

RequestVoid delete(PlanetProxy planetProxy);

RequestListPlanetProxy findAll();

RequestListPlanetProxy findEntries(Integer firstResult,
Integer maxResults);

RequestPlanetProxy save(PlanetProxy planetProxy);
}

Everything expect save/delete work fine.

Client is roo like app + few changes for locators.

Caused by: java.lang.IllegalArgumentException: Cannot fetch unpersisted entity
at 
com.google.gwt.requestfactory.shared.impl.AbstractRequestFactory.find(AbstractRequestFactory.java:71)
at 
pl.eforce.example.gwt.client.activity.managed.MoonDetailsActivity.start(MoonDetailsActivity.java:110)
at 
com.google.gwt.activity.shared.ActivityManager.onPlaceChange(ActivityManager.java:158)
at 
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:52)
at 
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:1)
at 
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)
at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
at 
com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:115)
at 
pl.eforce.example.gwt.client.place.AbstractProxyEditActivity.exit(AbstractProxyEditActivity.java:145)
at 
pl.eforce.example.gwt.client.place.CreateAndEditProxy.exit(CreateAndEditProxy.java:41)
at 
pl.eforce.example.gwt.client.place.AbstractProxyEditActivity$1.onSuccess(AbstractProxyEditActivity.java:106)
at 
pl.eforce.example.gwt.client.place.AbstractProxyEditActivity$1.onSuccess(AbstractProxyEditActivity.java:1)
at 
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:661)
at 
com.google.gwt.requestfactory.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136)
at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)


I tried to investigate why i dosent work but im stuck.

One more thing, change on server/client to  RequestVoid save(PlanetProxy 
planetProxy) didint help.

Wojtek


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



Re: GWT Image Bundles - Only for Small Images?

2011-01-04 Thread Paul Robinson

The answer to your question may depend on how you use your images, but others 
may have stronger opinions. Either way, if you're using large png images, you 
should beware this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5651

HTH
Paul

On 04/01/11 15:08, khj wrote:

I am creating an application that will display one of about 20 PNG images upon 
selection of a corresponding tree item.  Each image is on the order of 200K in 
length.

Would it make sense to use GWT's image bundles for this?  Or, are bundles 
designed to be used more with a collection of much smaller files (e.g., icons).

I would guess there is some maximum data transfer size limit over which 
bundles would incur too long of a start up time.

Thanks for any ideas!

-Kenneth



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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Brian Reilly
Make sure you have a gwt.codesvr query parameter on the URL. Otherwise
your development mode server won't be used. Then, as long as you have
a debugger attached to your development mode process, you should be
able to debug client side code.

Note that any RPC calls will be handled by server that the app is
deployed to. When not using -noserver, this would be the Jetty
instance started by development mode. In your case, it'll be your
Websphere server. You'll have to attach a debugger to that to debug
anything on the server.

-Brian

On Tue, Jan 4, 2011 at 9:52 AM, Srividhya Ramachandran svr...@gmail.com wrote:
 I tried the -noserver option with devmode and changing the startupURL, but
 the debugger does not break at the breakpoint (the appln runs fine).
 Any ideas? I really want to debug this app in websphere... (Note: I am able
 to debug other sample applns from the same development environment.).
 Any help greatly appreciated.
 thanks


 On Tue, Jan 4, 2011 at 9:25 AM, Srividhya Ramachandran svr...@gmail.com
 wrote:

 Is it possible to debug in Hosted Mode?

 On Tue, Jan 4, 2011 at 8:32 AM, Tobias thaberm...@gmail.com wrote:

 The documentation page that you mentioned has -noserver under
 Development Mode Options. If you want to debug your project using a
 Websphere server as backend, you probably don't want to run the compiler but
 the Development Mode anyway? -startupUrl is also a Development mode
 option. I think you need to use com.google.gwt.dev.HostedMode instead of
 com.google.gwt.dev.Compiler.
 Regards,
 Tobias

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


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


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



Re: EnterButton

2011-01-04 Thread Greg Dougherty
Hi Jeff,

I don't see any place to attach a KeyPressHandler to a FormPanel.
Were you thinking of something else?

Greg

On Jan 3, 6:27 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
 I haven't tried it but I think if you wrap your input widgets in a gwt form
 widget your button would respond appropriately.

 On Mon, Jan 3, 2011 at 9:57 AM, Greg Dougherty
 dougherty.greg...@mayo.eduwrote:



  I have a couple of places where I want the user to be able to hit
  enter, and have a button clicked.  So I created the class EnterButton,
  which has all the default constructors, and the following bit of code:

         public void onKeyPress (KeyPressEvent event)
         {
                 int     keyCode = event.getNativeEvent ().getKeyCode
  ();

                 if (keyCode == KeyCodes.KEY_ENTER)
                         click ();
         }

  Is there a reason why some such class isn't part of GWT already?  Is
  there something in this code that will turn around and bite me in the
  tush?

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

 --
 *Jeff Schwartz*

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



Re: What does this message means - Error in Generated.....FieldSerializer.java

2011-01-04 Thread Paul Robinson

For every that GWT translates to javascript for use in the client, you must 
tell GWT where the source code is so that it knows how to translate it.

The error message is telling you that mypackage.database.MyClass is in a 
directory (mypackage/database) that is not amongst the directories that you 
have told GWT contain translatable source code. However, MyClass is being used 
from client code, and so GWT wants to translate it.

If you want MyClass to be used in the client, then your gwt.xml file needs to 
specify that its directory (or a parent directory) contains source code.

HTH
Paul

On 04/01/11 03:19, Rodrigo Romano wrote:

Hi,

I am trying to gwt compile my modules that are 100% POJO using
objectify.
And I getting this error message, but it compiles after that. What it
means??

[ERROR] Errors in 'generated://C34ED3C084298C31F07B52ABE9478A9C/
mypackage/database/MyClass_FieldSerializer.java'
[ERROR] Line 20: No source code is available for type
mypackage.database.MyClass; did you forget to inherit a required
module?
See snapshot: C:\Users\ISAC_N~1\AppData\Local\Temp
\mypackage.database.MyClass_FieldSerializer7886760315816490954.java
 [ERROR] Errors in 'generated://
D53192D233C2B1A6E8A82A245F961E08/mypackage/gwt/modules/client/
ISessionSuportService_Proxy.java'
[ERROR] Line 463: No source code is available for type
mypackage.database.MyClass; did you forget to inherit a required
module?
See snapshot: C:\Users\ISAC_N~1\AppData\Local\Temp
\mypackage.gwt.modules.client.ISessionSuportService_Proxy5224909169187970547.java
Compiling 6 permutations
   Compiling permutation 0...
   Compiling permutation 1...
   Compiling permutation 2...
   Compiling permutation 3...
   Compiling permutation 4...
   Compiling permutation 5...
Compile of permutations succeeded


Help Please
[],
Thanks in advance.



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



Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Srividhya Ramachandran
I am using the gwt.codesvr query parameter; I am able to see the debug
messages in the GWT Development Mode console window. The page launches
successfully, only the debugger doesnt break at the break point (client
side). I am as usual able to debug server side.

Any idea about what could be wrong?
thanks

On Tue, Jan 4, 2011 at 10:25 AM, Brian Reilly brian.irei...@gmail.comwrote:

 Make sure you have a gwt.codesvr query parameter on the URL. Otherwise
 your development mode server won't be used. Then, as long as you have
 a debugger attached to your development mode process, you should be
 able to debug client side code.

 Note that any RPC calls will be handled by server that the app is
 deployed to. When not using -noserver, this would be the Jetty
 instance started by development mode. In your case, it'll be your
 Websphere server. You'll have to attach a debugger to that to debug
 anything on the server.

 -Brian

 On Tue, Jan 4, 2011 at 9:52 AM, Srividhya Ramachandran svr...@gmail.com
 wrote:
  I tried the -noserver option with devmode and changing the startupURL,
 but
  the debugger does not break at the breakpoint (the appln runs fine).
  Any ideas? I really want to debug this app in websphere... (Note: I am
 able
  to debug other sample applns from the same development environment.).
  Any help greatly appreciated.
  thanks
 
 
  On Tue, Jan 4, 2011 at 9:25 AM, Srividhya Ramachandran svr...@gmail.com
 
  wrote:
 
  Is it possible to debug in Hosted Mode?
 
  On Tue, Jan 4, 2011 at 8:32 AM, Tobias thaberm...@gmail.com wrote:
 
  The documentation page that you mentioned has -noserver under
  Development Mode Options. If you want to debug your project using a
  Websphere server as backend, you probably don't want to run the
 compiler but
  the Development Mode anyway? -startupUrl is also a Development mode
  option. I think you need to use com.google.gwt.dev.HostedMode instead
 of
  com.google.gwt.dev.Compiler.
  Regards,
  Tobias
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Google Web Toolkit group.
  To post to this group, send email to
 google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
 
  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



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



Re: SelectionCell is displaying empty combo box

2011-01-04 Thread Deepak Singh
  Anyone who can resolve the issue?

On Mon, Jan 3, 2011 at 11:33 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 I have a cellTable and am displaying combox in one of the columns.
 I use SelectionCell for the same but my problem is that the combobox is
 displayed in all rows but all are empty, they dont  show any values there.
 Code is as follows:

 final ListString picUps = new ArrayListString();
//  Adding values to picUps list


 SelectionCell picUpPointCell = new
 SelectionCell(picUps);
  ColumnIBusObjectRpc, String pickUpCol = new ColumnIBusObjectRpc,
 String(picUpPointCell) {
  @Override
 public String getValue(IBusObjectRpc object) {
 if(object instanceof TktvalaTripDTO) {
  return ((TktvalaTripDTO)object).getPickupPoint().get(0).getName();
 }else if(object instanceof TktgooseBusDTO) {
  return ((TktgooseBusDTO)object).getPickupPoints().get(0).getDesc();
  }
 return null;
 }
  };
  table.addColumn(pickUpCol, Pic ups);


 I make sure that the proper values are returned from getValue().

 Can somebody find out what i am doing wrong.


 Thanlks
 Deepak



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



Re: EnterButton

2011-01-04 Thread Jeff Schwartz
Using UiBinder declare a SubmitButton (
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/SubmitButton.html)
within a qwt FormPannel. If you want to react to the user submitting the
form then assign a field name to the submit button and attach an event
handler to the submit button. The following is an example of how to setup
the event handler code when using UiBinder:

@UiHandler(yourButtonFieldName)
void onSubmitBtnClicked(ClickEvent e) {
doSomething();
}


On Tue, Jan 4, 2011 at 10:36 AM, Greg Dougherty
dougherty.greg...@mayo.eduwrote:

 Hi Jeff,

 I don't see any place to attach a KeyPressHandler to a FormPanel.
 Were you thinking of something else?

 Greg

 On Jan 3, 6:27 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
  I haven't tried it but I think if you wrap your input widgets in a gwt
 form
  widget your button would respond appropriately.
 
  On Mon, Jan 3, 2011 at 9:57 AM, Greg Dougherty
  dougherty.greg...@mayo.eduwrote:
 
 
 
   I have a couple of places where I want the user to be able to hit
   enter, and have a button clicked.  So I created the class EnterButton,
   which has all the default constructors, and the following bit of code:
 
  public void onKeyPress (KeyPressEvent event)
  {
  int keyCode = event.getNativeEvent ().getKeyCode
   ();
 
  if (keyCode == KeyCodes.KEY_ENTER)
  click ();
  }
 
   Is there a reason why some such class isn't part of GWT already?  Is
   there something in this code that will turn around and bite me in the
   tush?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  *Jeff Schwartz*

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




-- 
*Jeff Schwartz*

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



Re: SelectionCell is displaying empty combo box

2011-01-04 Thread Ben Imp
Perhaps you just snipped out the code, but in the bit you posted here
I don't see anything adding any strings to the picUps ArrayList.  The
selection cell uses that array to build its options, so if that
collection is empty, then that would explain your empty combo box
issue.

-Ben

On Jan 4, 10:26 am, Deepak Singh deepaksingh...@gmail.com wrote:
   Anyone who can resolve the issue?

 On Mon, Jan 3, 2011 at 11:33 PM, Deepak Singh deepaksingh...@gmail.comwrote:

  Hi,

  I have a cellTable and am displaying combox in one of the columns.
  I use SelectionCell for the same but my problem is that the combobox is
  displayed in all rows but all are empty, they dont  show any values there.
  Code is as follows:

  final ListString picUps = new ArrayListString();
                                         //  Adding values to picUps list

                                          SelectionCell picUpPointCell = new
  SelectionCell(picUps);
   ColumnIBusObjectRpc, String pickUpCol = new ColumnIBusObjectRpc,
  String(picUpPointCell) {
  �...@override
  public String getValue(IBusObjectRpc object) {
  if(object instanceof TktvalaTripDTO) {
   return ((TktvalaTripDTO)object).getPickupPoint().get(0).getName();
  }else if(object instanceof TktgooseBusDTO) {
   return ((TktgooseBusDTO)object).getPickupPoints().get(0).getDesc();
   }
  return null;
  }
   };
   table.addColumn(pickUpCol, Pic ups);

  I make sure that the proper values are returned from getValue().

  Can somebody find out what i am doing wrong.

  Thanlks
  Deepak

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



Re: GWT Spring Roo: support for a class object inside an ENTITY

2011-01-04 Thread Amit
Hi

The below post was published during the holidays with no reply so
far.
I am reposting with the hope that someone (e.g., from the GWT team)
will respond this time.

Waiting for an answer,

Thanks (and happy new year!!!)

Amit.


On Dec 27 2010, 4:52 pm, Amit a.b.kleinm...@gmail.com wrote:
 Hi,
 We are running successfully the Expenses example using Spring-Roo.

 Now we want to add a simple class object (MyAddress as illustrated
 below) to one of the entities (e.g., Employee).
 We first tried doing this using the embeddable - embedded 
 mechanism. But this is currently not supported by the Roo gwt plug-in.
 So we also checked the option of accomplishing this by the Roo other
 field command. Following is the error we got going this way.
 Any idea what did we do wrong?
 What is the best way to accomplish this (we already tried asking at
 the Spring Roo forum...).

 Thanks in advance for any help,
 AmitKleinmann

 public class Employee {

     @NotNull
     private String displayName;

     @NotNull
     @Size(min = 3, max = 30)
     private String userName;

     private MyAddress myAddress;

     private String homeAddress;

     ...

 }

 public class MyAddress {
     private String myCity;

 }

 Roo generates the following statements at the
 EmployeeEditActivityWrapper_Roo_Gwt class, and the class can not be
 compiled since MyAddressProxy can not be resolved.

 import com.ibmotion.expenses1.client.managed.request.MyAddressProxy;
 ...
 void setMyAddressPickerValues(CollectionMyAddressProxy values);
 ...
 view.setMyAddressPickerValues(Collections.MyAddressProxyemptyList());
         requests.myAddressRequest().findMyAddressEntries(0,
 50).with(com.ibmotion.expenses1.client.managed.ui.MyAddressProxyRenderer.in 
 stance().getPaths()).fire(new
 ReceiverListMyAddressProxy() {
             public void onSuccess(ListMyAddressProxy response) {
                 ListMyAddressProxy values = new
 ArrayListMyAddressProxy();
                 values.add(null);
                 values.addAll(response);
                 view.setMyAddressPickerValues(values);
             }
         });

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



Re: GWT with JPA located in a separate project

2011-01-04 Thread Sagadon
Thanks, paxdei!

It looks like I'm missing a step.  I've added the gwt.xml file in the
core project, and added an inherit into the GWT project, but I still
get errors on the inherit.  Is there something else I need to do?

Do I need to:
  * Add a gwt compile step in the core project?
  * Add the core jar to the GWT project?

I'm missing the step which links the two projects together.

On Jan 1, 1:56 pm, paxdei paxdei1...@gmail.com wrote:
 Hello,

 you will probably need a separate gwt.xml module definition that
 points to the source package of your pojos

 I use to do it this way:

 1. Create a Pojo.gwt.xml in your gwt project/org/mysite/core that
 contains a source path=model/ tag
 2. In your main module definition, inherit this new
 org.mysite.core.Pojo module

 The gwt compiler will now be able to find the sources of your classes
 in org.mysite.core.model

 On 30 Dez. 2010, 19:10, Sagadon sagadongafri...@gmail.com wrote:

  I'm trying to get GWT to pass POJOs created by MyBatis.  The data
  objects are in a separate project, due to overall application
  complexity, and I'm trying to use the data objects on the client
  side.  What this means is the source code for the data objects is not
  within the same project as GWT, and the gwtc ant target fails.  The
  error I get is:
  No source code is available for type org.mysite.core.model.Person;
  did you forget to inherit a required module?

  How can I setup the ant target / IntelliJ project so that it
  recognizes either: a) the model jar file contains the source code, or
  b) the relative path to the source folder for the other project?

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



Re: SelectionCell is displaying empty combo box

2011-01-04 Thread Deepak Singh
Hi Ben,

I make sure that i am adding string values to list as follows:
final ListString picUps = new ArrayListString();
   //  Adding values to picUps list
picUps.add( -- );
This is added to the list.

On Mon, Jan 3, 2011 at 11:33 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 I have a cellTable and am displaying combox in one of the columns.
 I use SelectionCell for the same but my problem is that the combobox is
 displayed in all rows but all are empty, they dont  show any values there.
 Code is as follows:

 final ListString picUps = new ArrayListString();
//  Adding values to picUps list


 SelectionCell picUpPointCell = new
 SelectionCell(picUps);
  ColumnIBusObjectRpc, String pickUpCol = new ColumnIBusObjectRpc,
 String(picUpPointCell) {
  @Override
 public String getValue(IBusObjectRpc object) {
 if(object instanceof TktvalaTripDTO) {
  return ((TktvalaTripDTO)object).getPickupPoint().get(0).getName();
 }else if(object instanceof TktgooseBusDTO) {
  return ((TktgooseBusDTO)object).getPickupPoints().get(0).getDesc();
  }
 return null;
 }
  };
  table.addColumn(pickUpCol, Pic ups);


 I make sure that the proper values are returned from getValue().

 Can somebody find out what i am doing wrong.


 Thanlks
 Deepak



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



RequestFactory cast problem with polymorphic objects

2011-01-04 Thread poe
Hi,

that is my situation:

I've got a base class

...
public class Recipe {
  ...
  public static ListRecipe findAllRecipes() 

}

and some child classes

...
 public class Appetizer extends Recipe {

  ...
 }

...

I managed to store different recipe objects (Appetizer, Deserts etc)
in the datastore.

When I call findAllRecipes() through the requestFactory i expect
only objects that are derived from the class recipe. But all returned
objects are of class recipe and i can't distinguish them. When I list
the classnames of the fetched objects on the server-side I see the
correct classenames for the objects.

I works find in my server-side unit tests but not with the
requestFactory.

Is this a bug or am i doing something wrong.

Thanks for any help...

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



Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-04 Thread Y2i
 I was thinking of a similar approach,
 but couldn't come up with a way to populate the lookup table
 (initialize it for the first time with data).

 could you please explain how you register activities/places in the
 lookup table, so that they are available at run-time ?


At the moment I simply populate a hash table with factories in a
static constructor.

 what is the best way to deal with scenario above in GWT MVP ?

 should Activities/Places mimic structure of entity they are related
 to ? (forming parallel object hierarchies ? for place/activity/proxy )

I'm not sure what is the best way, I personally use the second
approach.  While my Entity graph is complex and has cycles, my places
extend from a common EntityPlace and the hierarchy is flat and one
level only.

At the top level I have one place controller, one activity manager,
one place history mapper, one activity mapper, and one display area.
At the top of the screen I have a CellBrowser that allows a user
navigate deep down the object hierarchy, and every time a client
clicks on some node, a new activity starts and displays a
corresponding view.  CellBrowser helped me to deal with the lack of
support for nested activities/viewers.

Activities that are created when a user clicks on a CellBrowser are
complex.  They themselves create NestedActivityManager (my
implementation that is similar to GWT ActivityManager, except it
replaces onPlaceChange(Place) with startActivity(Activity)) to by-pass
places and manage nested activities directly.  This level, as the top
level, also uses MVP, but there is no integration with history tokens
and places here.

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



Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread Magnus
Hi,

I receive the following error message:

Server Failure:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Type 'bcs.shared.scr.GameStatus' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer. For security purposes, this type will not be
deserialized.

What does this mean?

Magnus

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



Write document in Server-side

2011-01-04 Thread Sebe
HI,
I have already discussed here but did not find what I was looking for
(http://groups.google.com/group/google-web-toolkit/browse_thread/
thread/e7a880a22a129bfa?hl=en).

For my web application I use GWT 2.1.0 with Eclipse 1.3.8 and App
Engine.
I would like to write the values obtained as a parameter (from the
TextBox) in an XML file.
I know that is not possible to write client-side file. But I think you
can do in server-side.

I set the RPC call (see the tutorial).
I can not use the java.io.File class to write (because G App Engine
does not provide for this class, I saw here:
http://code.google.com/intl/it-IT/appengine/docs/java/jrewhitelist .
html).

But I can use classes to write to files as Transform and DOMSource ..

This is my code in Server-side:

package de.vogella.gwt.helloworld.server;

import java.io.*;
import org.w3c.dom.*;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import de.vogella.gwt.helloworld.client.MyService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;


public class MyServiceImpl extends RemoteServiceServlet implements
MyService {

/*
//implementazione del metodo funzionante
 public String testRPC(String message)
{
Date now = new Date();
String dtm =
DateFormat.getTimeInstance(DateFormat.MEDIUM).format(now);


return Ecco il messaggio inviato ' + message +' 
quando sono
precisamente le :  + dtm;
}
   */

//metodo che inserisce il nuovo iscritto
public void creaXML(String nickname,String pass,String email2,String
gio,String mes, String ann){

/*
 XML format (keywords are space delimited):
   utenti --già presente
  utente
 nick.../nick
 psw.../psw
 mail.../mail
 datan
gg.../gg
mm.../mm
aa.../aa
  /datan
  /utente
  /utenti
*/

String dest = utenti.xml;
Document doc = null;
DocumentBuilder db = null;
//Istanziazione di DocumentBuilderFactory
DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
//Istanziazione di DocumentBuilder
try{
db = dbf.newDocumentBuilder();
}
catch(ParserConfigurationException pce){
System.err.println(Errore per DocumentBuilder);
}

try {
doc = db.parse(utenti.xml);
} catch (SAXException se) {
// TODO Auto-generated catch block

} catch (IOException ioe){
System.err.println(ioe);
}
Node root = doc.getDocumentElement(); //root=utenti

Node utente = doc.createElement(utente);
root.appendChild(utente);

Node nick = doc.createElement(nick);
Node Tnick = doc.createTextNode(nickname);
nick.appendChild(Tnick);
utente.appendChild(nick);

Node password = doc.createElement(psw);
Node Tpass = doc.createTextNode(pass);
password.appendChild(Tpass);
utente.appendChild(password);

Node email = doc.createElement(mail);
Node Tmail = doc.createTextNode(email2);
email.appendChild(Tmail);
utente.appendChild(email);

Node datan = doc.createElement(datan);
utente.appendChild(datan);

Node giorni = doc.createElement(gg);
Node Tgg = doc.createTextNode(gio);
giorni.appendChild(Tgg);
datan.appendChild(giorni);

Node mesi = doc.createElement(mm);
Node Tmm = doc.createTextNode(mes);
mesi.appendChild(Tmm);
datan.appendChild(mesi);

Node anni = doc.createElement(aa);
Node Taa = doc.createTextNode(ann);
anni.appendChild(Taa);
datan.appendChild(anni);
System.out.println(ci sono);
try{
DOMSource 

is there a class that implements HasWidgets extends FocusWidget

2011-01-04 Thread Joe Hudson
Hi,

I'm trying to figure out the best way to have a class accept click
events while still being able to add widgets to that class.  Is this
possible?  Can anyone suggest the best way of doing this?  Thanks.

Joe

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



Re: please Help me GWT Listbox

2011-01-04 Thread Michael
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/548749fc1cef2ae8

On Jan 3, 10:57 am, vijay gohel vijayigo...@gmail.com wrote:
 hi,

 please Help Me in Listbox widget

 i want to add option Group like Select tag's Option group  in List
 box

 How it is Possible. i don't Know.

 Please Help me on it

 thanks in advance

 Regards,
 Vijay Gohel

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



Re: RequestFactory cast problem with polymorphic objects

2011-01-04 Thread Thomas Broyer
It's not a bug, it's the way RF works (for now): there's no polymorphism 
on the client-side, you get objects of the exact type declared in your 
service stub or proxy (EntityProxy/ValueProxy) interfaces.
See also http://code.google.com/p/google-web-toolkit/issues/detail?id=5367

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



Re: Write document in Server-side

2011-01-04 Thread a...@mechnicality.com

Sebe

On 1/4/2011 9:40 AM, Sebe wrote:

HI,
I have already discussed here but did not find what I was looking for
(http://groups.google.com/group/google-web-toolkit/browse_thread/
thread/e7a880a22a129bfa?hl=en).

For my web application I use GWT 2.1.0 with Eclipse 1.3.8 and App
Engine.
I would like to write the values obtained as a parameter (from the
TextBox) in an XML file.
I know that is not possible to write client-side file. But I think you
can do in server-side.

I set the RPC call (see the tutorial).
I can not use the java.io.File class to write (because G App Engine
does not provide for this class, I saw here:
http://code.google.com/intl/it-IT/appengine/docs/java/jrewhitelist .
html).

But I can use classes to write to files as Transform and DOMSource ..

I'd be surprised in you could...  see:

http://code.google.com/appengine/kb/java.html#writefile

- it says:

Writing to local files is not supported in App Engine due to the distributed nature of your 
application. Instead, data which must be persisted should be stored in the distributed datastore 
http://code.google.com/appengine/docs/java/datastore/overview.html. For more information see the 
documentation on the runtime sandbox 
http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox.


In fact, in the whitelist java.io.File is shown as being supported, but I think that's to allow you 
to READ files which are part of the uploaded application. You cannot write a file to the local 
filing system - its simply not allowed.


As others said earlier, you can persist data in the data base.

Please explain *why* you want to write an XML file to the server filing system. What is your use 
case? It looks like you are trying to store user data (name password etc.) The correct way in GAE to 
do this is to create a persistent entity and store the info in the database.




Alan



This is my code in Server-side:

package de.vogella.gwt.helloworld.server;

import java.io.*;
import org.w3c.dom.*;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import de.vogella.gwt.helloworld.client.MyService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;


public class MyServiceImpl extends RemoteServiceServlet implements
MyService {

/*
//implementazione del metodo funzionante
 public String testRPC(String message)
{
Date now = new Date();
String dtm =
DateFormat.getTimeInstance(DateFormat.MEDIUM).format(now);


return Ecco il messaggio inviato ' + message +' 
quando sono
precisamente le :  + dtm;
}
*/

//metodo che inserisce il nuovo iscritto
public void creaXML(String nickname,String pass,String email2,String
gio,String mes, String ann){

/*
 XML format (keywords are space delimited):
utenti  --già presente
   utente
  nick.../nick
  psw.../psw
  mail.../mail
  datan
gg.../gg
mm.../mm
aa.../aa
/datan
   /utente
   /utenti
*/

String dest = utenti.xml;
Document doc = null;
DocumentBuilder db = null;
//Istanziazione di DocumentBuilderFactory
DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
//Istanziazione di DocumentBuilder
try{
db = dbf.newDocumentBuilder();
}
catch(ParserConfigurationException pce){
System.err.println(Errore per DocumentBuilder);
}

try {
doc = db.parse(utenti.xml);
} catch (SAXException se) {
// TODO Auto-generated catch block

} catch (IOException ioe){
System.err.println(ioe);
}
Node root = doc.getDocumentElement(); //root=utenti

Node utente = doc.createElement(utente);
root.appendChild(utente);

Node nick = doc.createElement(nick);
Node Tnick = doc.createTextNode(nickname);
nick.appendChild(Tnick);
utente.appendChild(nick);

Node password = doc.createElement(psw);
Node Tpass = doc.createTextNode(pass);
password.appendChild(Tpass);

Re: RequestFactory cast problem with polymorphic objects

2011-01-04 Thread Y2i
Thanks for pointing to this issue Thomas!

A follow up question: how do we distinguish between the sub-classes on
the client?

JPA queries are polymorphic, so on the server the sub-classes are
distinguishable.
For single table and joint inheritance strategy JPA internally uses a
discriminator column.  The discriminator column could be used to
distinguish between sub-classes, but the problem is it is not
accessible even on the server side.

Thanks a lot for your help!

On Jan 4, 10:02 am, Thomas Broyer t.bro...@gmail.com wrote:
 It's not a bug, it's the way RF works (for now): there's no polymorphism
 on the client-side, you get objects of the exact type declared in your
 service stub or proxy (EntityProxy/ValueProxy) interfaces.
 See alsohttp://code.google.com/p/google-web-toolkit/issues/detail?id=5367

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



Re: Write document in Server-side

2011-01-04 Thread Sebe
I want to create a custom user profile using the Google Search API
(http://code.google.com/p/gwt-google-apis/wiki/
AJAXSearchGettingStarted). With these APIs can retrieve the results of
a Google's search engine (web, image, video ). Here's what I do:
when the user Foo click on a result, the information must be stored
in a custom file for user foo  (for example foo.xml .

I create me a custom profile for each user that contains the values
that a user clicks from search results page.

Sorry for my english ...

I do not know if I explained it well ..

Sebe


On Jan 4, 7:26 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 Sebe

 On 1/4/2011 9:40 AM, Sebe wrote:

  HI,
  I have already discussed here but did not find what I was looking for
  (http://groups.google.com/group/google-web-toolkit/browse_thread/
  thread/e7a880a22a129bfa?hl=en).

  For my web application I use GWT 2.1.0 with Eclipse 1.3.8 and App
  Engine.
  I would like to write the values obtained as a parameter (from the
  TextBox) in an XML file.
  I know that is not possible to write client-side file. But I think you
  can do in server-side.

  I set the RPC call (see the tutorial).
  I can not use the java.io.File class to write (because G App Engine
  does not provide for this class, I saw here:
 http://code.google.com/intl/it-IT/appengine/docs/java/jrewhitelist.
  html).

  But I can use classes to write to files as Transform and DOMSource ..

 I'd be surprised in you could...  see:

 http://code.google.com/appengine/kb/java.html#writefile

 - it says:

 Writing to local files is not supported in App Engine due to the distributed 
 nature of your
 application. Instead, data which must be persisted should be stored in the 
 distributed datastore
 http://code.google.com/appengine/docs/java/datastore/overview.html. For 
 more information see the
 documentation on the runtime sandbox
 http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox.

 In fact, in the whitelist java.io.File is shown as being supported, but I 
 think that's to allow you
 to READ files which are part of the uploaded application. You cannot write a 
 file to the local
 filing system - its simply not allowed.

 As others said earlier, you can persist data in the data base.

 Please explain *why* you want to write an XML file to the server filing 
 system. What is your use
 case? It looks like you are trying to store user data (name password etc.) 
 The correct way in GAE to
 do this is to create a persistent entity and store the info in the database.

 Alan



  This is my code in Server-side:

  package de.vogella.gwt.helloworld.server;

  import java.io.*;
  import org.w3c.dom.*;
  import org.w3c.dom.Document;
  import org.xml.sax.SAXException;
  import javax.xml.parsers.DocumentBuilder;
  import javax.xml.parsers.DocumentBuilderFactory;
  import javax.xml.parsers.ParserConfigurationException;
  import javax.xml.transform.*;
  import javax.xml.transform.dom.DOMSource;
  import javax.xml.transform.stream.StreamResult;
  import de.vogella.gwt.helloworld.client.MyService;
  import com.google.gwt.user.server.rpc.RemoteServiceServlet;

  public class MyServiceImpl extends RemoteServiceServlet implements
  MyService {

     /*
     //implementazione del metodo funzionante
      public String testRPC(String message)
             {
                     Date now = new Date();
                     String dtm =
  DateFormat.getTimeInstance(DateFormat.MEDIUM).format(now);

                     return Ecco il messaggio inviato ' + message +' 
  quando sono
  precisamente le :  + dtm;
             }
      */

     //metodo che inserisce il nuovo iscritto
     public void creaXML(String nickname,String pass,String email2,String
  gio,String mes, String ann){

             /*
              XML format (keywords are space delimited):
          utenti  --gi� presente
             utente
                nick.../nick
                psw.../psw
                mail.../mail
                datan
                             gg.../gg
                             mm.../mm
                             aa.../aa
                     /datan
             /utente
         /utenti
             */

             String dest = utenti.xml;
             Document doc = null;
             DocumentBuilder db = null;
             //Istanziazione di DocumentBuilderFactory
             DocumentBuilderFactory dbf = 
  DocumentBuilderFactory.newInstance();
             //Istanziazione di DocumentBuilder
             try{
                     db = dbf.newDocumentBuilder();
             }
             catch(ParserConfigurationException pce){
                     System.err.println(Errore per DocumentBuilder);
             }

                     try {
                             doc = db.parse(utenti.xml);
                     } catch (SAXException se) {
                             // TODO Auto-generated catch block

                     } catch (IOException ioe){
                             

Re: Write document in Server-side

2011-01-04 Thread a...@mechnicality.com

On 1/4/2011 10:35 AM, Sebe wrote:

I want to create a custom user profile using the Google Search API
(http://code.google.com/p/gwt-google-apis/wiki/
AJAXSearchGettingStarted). With these APIs can retrieve the results of
a Google's search engine (web, image, video ). Here's what I do:
when the user Foo click on a result, the information must be stored
in a custom file for user foo  (for example foo.xml .

I create me a custom profile for each user that contains the values
that a user clicks from search results page.

Sorry for my english ...

I do not know if I explained it well ..

Sebe

If you want to use GAE (or really any other kind of server) for this solution, you should learn 
about database entities.


GAE won't let you write files. Other web app servers will, but anyway, writing a file each time the 
user clicks on your form is a very, very, very bad idea! I don't really have the time to explain why 
I think its such a bad idea, but, really, it is. I've developed a large number of web applications 
on different platforms in both Java and PHP, including a large music aggregation site and number of  
user created content  sites and learning about how databases work is a key requirement for any 
modern web programmer.


I'm trying to say this as simply as possible - GAE is a platform which already has mechanisms to do 
what you want to do. It provides a persistent store using two mechanisms, JDO and JPA, which are 
meant for exactly the kind of application you have in mind. Please read about these and work through 
the examples.


As a very brief introduction, to store and retrieve your data you could create an 'entity' which 
contains the information the user provides. That entity can be a simple POJO, with just a few 
getters and setters. Then you can map that to the database and all the work will be done for you.


If you need to make that entity available as an XML file then you can create a Restful service that 
will do it for you.


Good luck!

Alan





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



Re: is there a class that implements HasWidgets extends FocusWidget

2011-01-04 Thread Y2i
A Widget.addDomHandler() method may be what you are looking for.  You
can register a handler for com.google.gwt.event.dom.client.ClickEvent.

On Jan 4, 9:43 am, Joe Hudson joe...@gmail.com wrote:
 Hi,

 I'm trying to figure out the best way to have a class accept click
 events while still being able to add widgets to that class.  Is this
 possible?  Can anyone suggest the best way of doing this?  Thanks.

 Joe

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



Re: GWT Spring Roo: support for a class object inside an ENTITY

2011-01-04 Thread David Chandler
Hi Amit,

The Roo team supports the GWT add-on. Best thing to do is add an issue
in the Roo tracker: https://jira.springsource.org/browse/ROO

/dmc

On Tue, Jan 4, 2011 at 11:52 AM, Amit a.b.kleinm...@gmail.com wrote:
 Hi

 The below post was published during the holidays with no reply so
 far.
 I am reposting with the hope that someone (e.g., from the GWT team)
 will respond this time.

 Waiting for an answer,

 Thanks (and happy new year!!!)

 Amit.


 On Dec 27 2010, 4:52 pm, Amit a.b.kleinm...@gmail.com wrote:
 Hi,
 We are running successfully the Expenses example using Spring-Roo.

 Now we want to add a simple class object (MyAddress as illustrated
 below) to one of the entities (e.g., Employee).
 We first tried doing this using the embeddable - embedded 
 mechanism. But this is currently not supported by the Roo gwt plug-in.
 So we also checked the option of accomplishing this by the Roo other
 field command. Following is the error we got going this way.
 Any idea what did we do wrong?
 What is the best way to accomplish this (we already tried asking at
 the Spring Roo forum...).

 Thanks in advance for any help,
 AmitKleinmann

 public class Employee {

     @NotNull
     private String displayName;

     @NotNull
     @Size(min = 3, max = 30)
     private String userName;

     private MyAddress myAddress;

     private String homeAddress;

     ...

 }

 public class MyAddress {
     private String myCity;

 }

 Roo generates the following statements at the
 EmployeeEditActivityWrapper_Roo_Gwt class, and the class can not be
 compiled since MyAddressProxy can not be resolved.

 import com.ibmotion.expenses1.client.managed.request.MyAddressProxy;
 ...
 void setMyAddressPickerValues(CollectionMyAddressProxy values);
 ...
 view.setMyAddressPickerValues(Collections.MyAddressProxyemptyList());
         requests.myAddressRequest().findMyAddressEntries(0,
 50).with(com.ibmotion.expenses1.client.managed.ui.MyAddressProxyRenderer.in 
 stance().getPaths()).fire(new
 ReceiverListMyAddressProxy() {
             public void onSuccess(ListMyAddressProxy response) {
                 ListMyAddressProxy values = new
 ArrayListMyAddressProxy();
                 values.add(null);
                 values.addAll(response);
                 view.setMyAddressPickerValues(values);
             }
         });

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





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: Write document in Server-side

2011-01-04 Thread Sebe
Alan, thanks for everything ...
First, this is a job for a university project, I must not publish it
to websites! I need to recover what a user has clicked.

Second: G is mandatory to use App Engine with GWT? (required to use
Google Search API)

Third: if not are there other solutions, you know of any tutorials or
sites to tell me to use the database? It 'the only possible solution
for my case?

Really Thanks

Sebe



On Jan 4, 7:53 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 On 1/4/2011 10:35 AM, Sebe wrote:

  I want to create a custom user profile using the Google Search API
  (http://code.google.com/p/gwt-google-apis/wiki/
  AJAXSearchGettingStarted). With these APIs can retrieve the results of
  a Google's search engine (web, image, video ). Here's what I do:
  when the user Foo click on a result, the information must be stored
  in a custom file for user foo  (for example foo.xml .

  I create me a custom profile for each user that contains the values
  that a user clicks from search results page.

  Sorry for my english ...

  I do not know if I explained it well ..

  Sebe

 If you want to use GAE (or really any other kind of server) for this 
 solution, you should learn
 about database entities.

 GAE won't let you write files. Other web app servers will, but anyway, 
 writing a file each time the
 user clicks on your form is a very, very, very bad idea! I don't really have 
 the time to explain why
 I think its such a bad idea, but, really, it is. I've developed a large 
 number of web applications
 on different platforms in both Java and PHP, including a large music 
 aggregation site and number of  
 user created content  sites and learning about how databases work is a key 
 requirement for any
 modern web programmer.

 I'm trying to say this as simply as possible - GAE is a platform which 
 already has mechanisms to do
 what you want to do. It provides a persistent store using two mechanisms, JDO 
 and JPA, which are
 meant for exactly the kind of application you have in mind. Please read about 
 these and work through
 the examples.

 As a very brief introduction, to store and retrieve your data you could 
 create an 'entity' which
 contains the information the user provides. That entity can be a simple POJO, 
 with just a few
 getters and setters. Then you can map that to the database and all the work 
 will be done for you.

 If you need to make that entity available as an XML file then you can create 
 a Restful service that
 will do it for you.

 Good luck!

 Alan

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



Re: Runtime errors after updating to 2.1.1

2011-01-04 Thread Gary S
The remaining references to 2.1.0 were in my project's Properties Java
Build Path Libraries. I install GWT SDK into Eclipse for the Google
Plugin and then do Maven builds with GWT as Maven dependencies. I
don't like the redundancy but I don't know how to make the plugin work
without the SDK. When I removed the 2.1.0 libraries from the build
path the error was cleared. I expected updating the SDK would have
cleaned this up. Shouldn't it?

Fábio, thanks for prompting me to double check.

Gary

On Jan 3, 1:31 pm, Fabio fabio.it...@gmail.com wrote:
 Verify if you updated GWT version number at maven pom file.

 I got a similar error, because Eclipse was with the right version
 (2.1.1) but maven was configured to use 2.1.0:

                 dependency
                         groupIdcom.google.gwt/groupId
                         artifactIdgwt-user/artifactId
                         version${gwt.version}/version
                         scopeprovided/scope
                 /dependency

 (gwt.version property was outdated at pom.xml).

 Best regards,
 Fábio Miranda.

 On 30 dez 2010, 19:34, Gary S agilej...@earthlink.net wrote:



  I have a multi Maven module project that built and ran as a Web
  Application without error (it took 2 weeks of dumpster diving). After
  updating to GWT 2.1.1, GPE 3.6, and GWT Maven Plugin 2.1.0-1 I can
  still build and launch as a Web Application but in Eclipse Development
  Mode view there is this: (a similar problem ishttp://bit.ly/gDjlJl
  but GWT 2.1.1 is in my local repo)

  [DEBUG] [aeou] - Validating newly compiled units
          [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/
  com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/
  gwt-user.jar!/com/google/gwt/view/client/CellPreviewEvent.java'
                  [ERROR] [aeou] - Line 18: The import
  com.google.gwt.cell.client.Cell.Context cannot be resolved
                  [ERROR] [aeou] - Line 66: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 88: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 107: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 111: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 132: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 140: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 141: Context cannot be resolved to a 
  type
                  [ERROR] [aeou] - Line 155: Context cannot be resolved to a 
  type
          [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/
  com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/
  gwt-user.jar!/com/google/gwt/view/client/
  DefaultSelectionEventManager.java'
                  [ERROR] [aeou] - Line 336: The method clear() is undefined 
  for the
  type MultiSelectionModelcapture#13-of ? super T
                  [ERROR] [aeou] - Line 467: The method getVisibleItemCount() 
  is
  undefined for the type HasDataT
                  [ERROR] [aeou] - Line 471: The method getVisibleItem(int) is
  undefined for the type HasDataT

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



Re: problem migrating to 2.1 application hags

2011-01-04 Thread smida02
This certainly seems to be a compiler bug that was introduced in 2.1.1
I tracked this down by brute force using alerts. I turned out to be a
simple
for loop that worked fine in GWT 2.0.2. I added the following

   if (filters[i].getReportColumns() != null) {
for (int j = 0; j  filters[i].getReportColumns().length; j++)
{
 do some work here
}
else {
Window.alert(testing  COLUMNS = NULL);
}

The alert is never triggered but now the code works fine!!!
All I did was put a null check around the for loop and the generated
code works fine.

Now I am seeing nother 2.1. problem with popup panels and date
pickers. Again
this code worked fine in 2.0.2 and now when I try to select a date via
a date picker
in a popup panel GWT throws the following error:

Uncaught com.google.gwt.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses

This fails in both the latest versions of Fire Fox and Chrome but
seems to work in devmode

Once again this code worked fine in GWT 2.0.2

Is anyone else seeing new compiler bugs introduced in GWT 2.1?

-Dale

On Dec 30 2010, 2:11 pm, Oscar Herrera herrera.os...@gmail.com
wrote:
 I think it might be the same issue I'm having, does this only happens
 to you on hosted mode? or does it happens as well when running on web
 mode?, have you tried setting a log before GWT.create([AnyService])
 and another one after it?, I get to only see the first one, then the
 browser and the GWT console hang and get a message on the server log
 indicating OutOfMemoryException.

 I'm using maven instead of ant. My application worked fine up to
 version 2.1M3, after I upgraded to 2.1.0 don't work.

 On Dec 28, 4:31 pm, smida02 daleesm...@gmail.com wrote:







  I've been using GWT for 2.5 years and haven't really had any problems
  upgrading until now.
  I do not use Eclipse for building, I use ANT. Also I should mention
  that I'm on Linux. I changed my ANT build.xml from

  fileset id=build.thirdparty.fileset dir=${thirdparty.dir}
          include name=gwt-2.0.2/gwt-dnd-3.0.0.jar /
          include name=gwt-2.0.2/gwt-user.jar /
          include name=gwt-2.0.2/gwt-dev.jar /
          exclude name=${ant.dir}/lib/*.jar /
      /fileset

  to reference the 2.1.1 jars, cleaned and built. I didn't receive any
  errors but I noticed that the GWT build took a LOT longer than it did
  in 2.0.2. About 25% longer.
  When I attempt to run the app it simply hangs and I eventually get the
  Awe Shucks message as if the JavaScript is in a tight loop. I've also
  tried this in devmode
  and the same thing happened. I haven't seen any errors in the devmode
  console nor have I seen any errors in the browser console.

  I changed my ANT build.xml file back to reference the 2.0.2 jars
  cleaned and built and the application came up fine. At this point I'm
  not sure how to get to the bottom of the problem.
  Any help would be appreciated. Has any one else had similar issues? Is
  the 2.1.1 GWT complier a lot slower for everyone else?

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



Re: is there a class that implements HasWidgets extends FocusWidget

2011-01-04 Thread Gal Dolber
You can also wrap a FlowPanel into a FocusPanel.

On Tue, Jan 4, 2011 at 2:54 PM, Y2i yur...@gmail.com wrote:

 A Widget.addDomHandler() method may be what you are looking for.  You
 can register a handler for com.google.gwt.event.dom.client.ClickEvent.

 On Jan 4, 9:43 am, Joe Hudson joe...@gmail.com wrote:
  Hi,
 
  I'm trying to figure out the best way to have a class accept click
  events while still being able to add widgets to that class.  Is this
  possible?  Can anyone suggest the best way of doing this?  Thanks.
 
  Joe

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Re: How to write file with GWT?

2011-01-04 Thread A. Stevko
I've used this code frag to write XML on app engine without any problems.

ByteArrayOutputStream baos = new ByteArrayOutputStream( );
XMLEncoder encoder = new XMLEncoder(baos);
encoder.writeObject(myObject);
encoder.close();
return baos.toString();

I believe I got the code from Example Depot at
http://www.exampledepot.com/egs/java.beans/WriteXml.html

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



Re: GWT with JPA located in a separate project

2011-01-04 Thread Brian Reilly
The core objects need to be GWT-compiled along with and at the same
time as the rest of the GWT application. Therefore the source needs to
be available to the GWT compiler. From what I've heard, you should be
able to package the source files (and the .gwt.xml file) in the core
jar and the compiler can find them there, but I haven't tried it
myself. Then, yes, the core jar does have to be added to the GWT
project. The core project does not need a separate GWT-compile step.

-Brian

On Tue, Jan 4, 2011 at 11:55 AM, Sagadon sagadongafri...@gmail.com wrote:
 Thanks, paxdei!

 It looks like I'm missing a step.  I've added the gwt.xml file in the
 core project, and added an inherit into the GWT project, but I still
 get errors on the inherit.  Is there something else I need to do?

 Do I need to:
  * Add a gwt compile step in the core project?
  * Add the core jar to the GWT project?

 I'm missing the step which links the two projects together.

 On Jan 1, 1:56 pm, paxdei paxdei1...@gmail.com wrote:
 Hello,

 you will probably need a separate gwt.xml module definition that
 points to the source package of your pojos

 I use to do it this way:

 1. Create a Pojo.gwt.xml in your gwt project/org/mysite/core that
 contains a source path=model/ tag
 2. In your main module definition, inherit this new
 org.mysite.core.Pojo module

 The gwt compiler will now be able to find the sources of your classes
 in org.mysite.core.model

 On 30 Dez. 2010, 19:10, Sagadon sagadongafri...@gmail.com wrote:

  I'm trying to get GWT to pass POJOs created by MyBatis.  The data
  objects are in a separate project, due to overall application
  complexity, and I'm trying to use the data objects on the client
  side.  What this means is the source code for the data objects is not
  within the same project as GWT, and the gwtc ant target fails.  The
  error I get is:
  No source code is available for type org.mysite.core.model.Person;
  did you forget to inherit a required module?

  How can I setup the ant target / IntelliJ project so that it
  recognizes either: a) the model jar file contains the source code, or
  b) the relative path to the source folder for the other project?

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



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



Re: Label Click Handler Problem

2011-01-04 Thread A. Stevko
That is the nature of writing cross browser web applications. Chrome and
Firefox share the WebKit engine.
Find the source of that value -2147024809 and you will see how the different
JS engines differ.

On Mon, Jan 3, 2011 at 9:35 PM, Noor baken...@gmail.com wrote:

 if the error is in my application, how is it that everything is fine
 in chrome and firefox

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: How to write file with GWT?

2011-01-04 Thread a...@mechnicality.com

Yes, but that doesn't actually 'write' the file does it?

It just generates a String which contains the XML representation of the java object. Its not 
persisted anywhere. You can generate a String representation of an object on the client with a few 
StringBuilder calls if you want to.

I believe that OPs problem is that he wants to save it somewhere.


Alan


On 1/4/2011 12:05 PM, A. Stevko wrote:

I've used this code frag to write XML on app engine without any problems.
ByteArrayOutputStream baos = new ByteArrayOutputStream( );
XMLEncoder encoder = new XMLEncoder(baos);
encoder.writeObject(myObject);
encoder.close();
return baos.toString();

I believe I got the code from Example Depot at
http://www.exampledepot.com/egs/java.beans/WriteXml.html
--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

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



Re: Write document in Server-side

2011-01-04 Thread a...@mechnicality.com

On 1/4/2011 11:01 AM, Sebe wrote:

Second: G is mandatory to use App Engine with GWT? (required to use
Google Search API)

Sorry, don't know the answer to that question.


Third: if not are there other solutions, you know of any tutorials or
sites to tell me to use the database? It 'the only possible solution
for my case?
Its the only real solution. If this is a university project maybe you should discuss it with your 
supervisor. GIGYF.





Really Thanks

Sebe



On Jan 4, 7:53 pm, a...@mechnicality.coma...@mechnicality.com
wrote:

On 1/4/2011 10:35 AM, Sebe wrote:


I want to create a custom user profile using the Google Search API
(http://code.google.com/p/gwt-google-apis/wiki/
AJAXSearchGettingStarted). With these APIs can retrieve the results of
a Google's search engine (web, image, video ). Here's what I do:
when the user Foo click on a result, the information must be stored
in a custom file for user foo  (for example foo.xml .
I create me a custom profile for each user that contains the values
that a user clicks from search results page.
Sorry for my english ...
I do not know if I explained it well ..
Sebe

If you want to use GAE (or really any other kind of server) for this solution, 
you should learn
about database entities.

GAE won't let you write files. Other web app servers will, but anyway, writing 
a file each time the
user clicks on your form is a very, very, very bad idea! I don't really have 
the time to explain why
I think its such a bad idea, but, really, it is. I've developed a large number 
of web applications
on different platforms in both Java and PHP, including a large music aggregation site and number of  
user created content  sites and learning about how databases work is a key requirement for any

modern web programmer.

I'm trying to say this as simply as possible - GAE is a platform which already 
has mechanisms to do
what you want to do. It provides a persistent store using two mechanisms, JDO 
and JPA, which are
meant for exactly the kind of application you have in mind. Please read about 
these and work through
the examples.

As a very brief introduction, to store and retrieve your data you could create 
an 'entity' which
contains the information the user provides. That entity can be a simple POJO, 
with just a few
getters and setters. Then you can map that to the database and all the work 
will be done for you.

If you need to make that entity available as an XML file then you can create a 
Restful service that
will do it for you.

Good luck!

Alan



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

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



Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread Ben Imp
I'd hazard a guess that it means that your GameStatus class doesn't
implement the IsSerializable interface, which GWT requires of objects
you try to send across the wire.

-Ben

On Jan 4, 11:35 am, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 I receive the following error message:

 Server Failure:
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 Type 'bcs.shared.scr.GameStatus' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
 custom field serializer. For security purposes, this type will not be
 deserialized.

 What does this mean?

 Magnus

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



Re: Dropping support for ie6?

2011-01-04 Thread El Mentecato Mayor
-1 for dropping ie6 (same here; big clients still use ie6--
unfortunately)
+1 for adding ie9

On Dec 30 2010, 10:43 am, Peter Ondruska peter.ondru...@gmail.com
wrote:
 I am very aware of that (working for very big bank which is still at IE6)...
 Something has to be done. And there are already possibilities like Google
 Chrome Frame.

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



Encoding / decoding arrays and lists using AutoBeanCodex and more...

2011-01-04 Thread Potate
The new AutoBean in 2.1.1 is great. Finally, there is a decent json
tool that works in both js mode and pure JVM mode =)

The basic scenarios described in the wiki (http://code.google.com/p/
google-web-toolkit/wiki/AutoBean#AutoBeanVisitor) work fine for me.
I started poking further and I see some rooms for improvement. If
there are work arounds I missed, please let me know =)

1. arrays / lists of beans
lists as bean properties work fine. However, I couldn't find a way to
operate on a list of beans

say I have

===

interface Bean {...}
interface Factory extends AutoBeanFactory {
AutoBeanBean bean();
}

// create a bean, fill in some properties

// the only serialization code I found is:
String json = AutoBeanCodex.encode(AutoBean wrapper).getPayLoad();

// it would be nice if there is a method that does
AutoBeanCodex.encode( ListAutoBean? warppers ).getPayLoad();

which outputs json arrays of beans:
[ {bean1}, {bean2}, ... ]


One workaround I realized is to have a list interface such as
interface Beans {
void setBeans(ListBean...);
ListBean getBeans();
}
but this introduces quite a bit boiler plate stuff that could be
avoided easily


2. java.util.Date formats

The default date serialization format looks like epoch. Is there a way
to configure this?
This could be a neat feature when using AutoBean in the JSON
interoperability layer. e.g. to work with REST services that only
accept / return ISO8601 full dt formats.
It would be great if such configurations can be set as annotations
e.g.
interface bean {
@PropertyFormat(-MM-dd'T'HH:mm:SSZ) // maybe also accept
predefined formats in date time utils?
Date getDate();
// or annotate setter
void setDate(Date date);
}

and the serialized json would be something like
date:2011-01-01...

comments welcome =)



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



Re: client using older version of gwt

2011-01-04 Thread Magnus
How can one track the version numbers? Which methods should be called?

Thanks
Magnus

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



Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread Magnus
Hi,

this is true, but it implements java.io.Serializable.

What is the difference between IsSerializable and Serializable and
when to use which?

However, the error occured only on one client. On other clients
everything works fine. It could be that the client had an older
version of the app than the server.

Magnus

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



DialogBox looking very weird

2011-01-04 Thread Youngster
Hi,
I would like to use a DialogBox in my application but somehow it looks
very very weird.
See screenshot: http://ScrnSht.com/dykpnl

The code is fairly straightforward:

public void onModuleLoad() {

DialogBox x = new DialogBox();
Button k = new Button(bla);
x.add(k);
x.setWidth(200px);
x.setHeight(200px);

RootLayoutPanel.get().add(x);
x.center();

I checked that standard.css is loaded and the images are available in
gwt/standard/images.
Anyone an idea what's wrong?

Thanks!

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



Re: DialogBox looking very weird

2011-01-04 Thread Flemming Boller
You should not set size on dialogbox itself.



/Flemming

On Tue, Jan 4, 2011 at 10:11 PM, Youngster aecdej...@gmail.com wrote:

 Hi,
 I would like to use a DialogBox in my application but somehow it looks
 very very weird.
 See screenshot: http://ScrnSht.com/dykpnl

 The code is fairly straightforward:

public void onModuleLoad() {

DialogBox x = new DialogBox();
Button k = new Button(bla);
x.add(k);
x.setWidth(200px);
x.setHeight(200px);

RootLayoutPanel.get().add(x);
x.center();

 I checked that standard.css is loaded and the images are available in
 gwt/standard/images.
 Anyone an idea what's wrong?

 Thanks!

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



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



Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread Ben Imp
Serializable should work, post GWT 1.4 anyway.

http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable

Check the Javadoc for that exception and you should see a list of the
other possible things that could cause it.

-Ben

On Jan 4, 2:55 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 this is true, but it implements java.io.Serializable.

 What is the difference between IsSerializable and Serializable and
 when to use which?

 However, the error occured only on one client. On other clients
 everything works fine. It could be that the client had an older
 version of the app than the server.

 Magnus

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



Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread ciosbel

http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

On Jan 4, 9:55 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 this is true, but it implements java.io.Serializable.

 What is the difference between IsSerializable and Serializable and
 when to use which?

 However, the error occured only on one client. On other clients
 everything works fine. It could be that the client had an older
 version of the app than the server.

 Magnus

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



Re: Refreshing reference message and eclipse extremely slow

2011-01-04 Thread Rajeev Dayal
Hi Jerome,

Sorry that we've been silent on this issue. We're looking into this problem
now. I've updated the issue with a request for some information from those
of you experiencing the problem. It would be helpful to us in diagnosing the
problem.

Regarding the release notes, we have not done a good job of updating them.
We'll improve this process in the future. GPE 1.4.2, as you noticed, did not
contain a fix for this specific issue.


Rajeev

On Thu, Dec 23, 2010 at 4:40 AM, Jerome C. jerome.ca...@gmail.com wrote:

 Any news about this ?

 It really slows down development...

 What's the reason ? Is it client bundle or not ? Is there something which
 should not do to avoid this performance bug ?

 9 peoples have starred it, so I'm not the only one.

 I've tried to find release note of the last version of Google plugin
 (1.4.2) but the release note page is not updated. With the last version of
 the plugin, the problem stays the same.

 Thanks.

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


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



Re: Upgrade to GWT 2.1.1

2011-01-04 Thread Chris Ramsdale
Those are the target dates, and it should include an updated STS.

-- Chris

On Tue, Jan 4, 2011 at 8:42 AM, Aldo Neto tumo...@gmail.com wrote:

 Tks Chris,

 I believed that this was the problem (although I disabled the Roo from my
 project). But I found that the problem is actually with the Maven GWT
 version. Once Maven is referencing a GWT 2.1 jar file, the errors I'm
 getting are due to the incompatibility with the GWT defined in my project
 (which I changed to 2.1.1). I renamed my GWT 2.1.1 jar files to be placed as
 Maven 2.1 and it worked, but I saw somewhere that ROO is about to release
 Roo 1.1.1 (Jan - 7th) and I assume the STS will be updated as well, so I'll
 keep working with the 2.1 for now until Roo is also updated.

 Thanks,
 Aldo

 On Mon, Jan 3, 2011 at 5:58 PM, Chris Ramsdale cramsd...@google.comwrote:

 Aldo,

 If this is a Roo-generated app, you'll need to wait to until Roo 1.1.1 is
 released to upgrade to GWT 2.1.1. For now Roo-generated apps are only
 compatible with GWT 2.1.

 -- Chris

 On Fri, Dec 31, 2010 at 11:28 AM, Aldo Neto tumo...@gmail.com wrote:

 Hi All,

 I'm using STS 2.5.1 (i.e. Eclipse 3.6) and tried to upgrade to GWT 2.1.1,
 but I'm not able to do so. I updated the plugin and the SDK, updated the
 project reference to use them and compile the project. It all worked fine,
 but when I tried to run the project I got the errors below.

 Does anybody has any idea of what I'm doing wrong here?

 Thanks


 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/client/impl/AbstractClientRequestFactory.java'
  [ERROR] [applicationScaffold] - Line 29: The constructor
 DefaultRequestTransport() is undefined
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/DefaultProxyStore.java'
  [ERROR] [applicationScaffold] - Line 37: No source code is available
 for type com.google.gwt.autobean.shared.AutoBeanT; did you forget to
 inherit a required module?
  [ERROR] [applicationScaffold] - Line 38: No source code is available
 for type com.google.gwt.autobean.shared.Splittable; did you forget to
 inherit a required module?
  [ERROR] [applicationScaffold] - Line 60: No source code is available
 for type com.google.gwt.autobean.shared.AutoBeanCodex; did you forget to
 inherit a required module?
  [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/ProxyStore.java'
  [ERROR] [applicationScaffold] - Line 36: No source code is available
 for type com.google.gwt.autobean.shared.Splittable; did you forget to
 inherit a required module?
  [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequest.java'
  [ERROR] [applicationScaffold] - Line 39: Bound mismatch: The type
 BaseProxy is not a valid substitute for the bounded parameter P extends
 EntityProxy of the type InstanceRequestP,T
  [ERROR] [applicationScaffold] - Line 113: No source code is available
 for type com.google.gwt.autobean.shared.Splittable; did you forget to
 inherit a required module?
  [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java'
  [ERROR] [applicationScaffold] - Line 19: The import
 com.google.gwt.requestfactory.shared.impl.Constants.REQUEST_CONTEXT cannot
 be resolved
 [ERROR] [applicationScaffold] - Line 63: The type AbstractRequestContext
 must implement the inherited abstract method RequestContext.create(ClassT)
  [ERROR] [applicationScaffold] - Line 63: The type
 AbstractRequestContext must implement the inherited abstract method
 RequestContext.edit(T)
 [ERROR] [applicationScaffold] - Line 374: Constants.VERSION_PROPERTY_B64
 cannot be resolved
  [ERROR] [applicationScaffold] - Line 411:
 Constants.VERSION_PROPERTY_B64 cannot be resolved
 [ERROR] [applicationScaffold] - Line 511: REQUEST_CONTEXT cannot be
 resolved
  [ERROR] [applicationScaffold] - Line 606: The type new
 RequestTransport.TransportReceiver(){} must implement the inherited abstract
 method RequestTransport.TransportReceiver.onTransportFailure(String)
  [ERROR] [applicationScaffold] - Line 616: The constructor
 ServerFailure(String, String, String, boolean) is undefined
 [ERROR] [applicationScaffold] - Line 654: The constructor
 ServerFailure(String, String, String, boolean) is undefined
  [ERROR] 

Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread a...@mechnicality.com

Its worth reading this:
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

There a number of odd little issues that can catch you out.

Alan


On 1/4/2011 1:35 PM, Ben Imp wrote:

Serializable should work, post GWT 1.4 anyway.

http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable

Check the Javadoc for that exception and you should see a list of the
other possible things that could cause it.

-Ben

On Jan 4, 2:55 pm, Magnusalpineblas...@googlemail.com  wrote:

Hi,

this is true, but it implements java.io.Serializable.

What is the difference between IsSerializable and Serializable and
when to use which?

However, the error occured only on one client. On other clients
everything works fine. It could be that the client had an older
version of the app than the server.

Magnus



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

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



Tutorial 2: Unit testing with guit

2011-01-04 Thread Gal Dolber
http://www.youtube.com/watch?v=QjJ25A08sOY

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Re: DialogBox looking very weird

2011-01-04 Thread Youngster
Thanks, that worked!

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



Re: client using older version of gwt

2011-01-04 Thread Ben Imp
There is (as far as I am aware) no built in mechanism to handle this
kind of thing.  I had a discussion on this not too long ago.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/94bbcb3720f83605

The general conclusion was to roll your own, if you feel as though it
is worth the cost.  A few examples were brought up there, with the
main difference being whether you are proactive (checking with every
request) or reactive (checking in the case of errors).  In my case, I
have decided to simply live with the possibility of outdated clients,
as they are mostly benign things, and our typical deployments are
during hours when users are not in the system.

-Ben

On Jan 4, 2:52 pm, Magnus alpineblas...@googlemail.com wrote:
 How can one track the version numbers? Which methods should be called?

 Thanks
 Magnus

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



Re: Upgrade to GWT 2.1.1

2011-01-04 Thread David Chandler
Aldo,

Sounds like you might be bumping against an issue with
gwt-maven-plugin, which hasn't yet been updated for 2.1.1. In the mean
time, you have to specify the gwt.version in the plugin config using
plugin dependencies like this:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version2.1.0-1/version
dependencies
dependency

groupIdcom.google.gwt/groupId

artifactIdgwt-user/artifactId
version2.1.1/version
/dependency
dependency

groupIdcom.google.gwt/groupId
artifactIdgwt-dev/artifactId
version2.1.1/version
/dependency
/dependencies
configuration
logLevelINFO/logLevel
style${gwt.style}/style
runTargetListkeeper.html/runTarget

hostedWebapp${project.build.directory}/${project.build.finalName}/hostedWebapp

servercom.google.appengine.tools.development.gwt.AppEngineLauncher/server
copyWebapptrue/copyWebapp
/configuration
executions
execution
idgwtcompile/id
phaseprepare-package/phase
goals
goalcompile/goal
/goals
/execution
/executions
/plugin

HTH,
/dmc

On Tue, Jan 4, 2011 at 8:42 AM, Aldo Neto tumo...@gmail.com wrote:
 Tks Chris,
 I believed that this was the problem (although I disabled the Roo from my
 project). But I found that the problem is actually with the Maven GWT
 version. Once Maven is referencing a GWT 2.1 jar file, the errors I'm
 getting are due to the incompatibility with the GWT defined in my project
 (which I changed to 2.1.1). I renamed my GWT 2.1.1 jar files to be placed as
 Maven 2.1 and it worked, but I saw somewhere that ROO is about to release
 Roo 1.1.1 (Jan - 7th) and I assume the STS will be updated as well, so I'll
 keep working with the 2.1 for now until Roo is also updated.
 Thanks,
 Aldo
 On Mon, Jan 3, 2011 at 5:58 PM, Chris Ramsdale cramsd...@google.com wrote:

 Aldo,
 If this is a Roo-generated app, you'll need to wait to until Roo 1.1.1 is
 released to upgrade to GWT 2.1.1. For now Roo-generated apps are only
 compatible with GWT 2.1.
 -- Chris

 On Fri, Dec 31, 2010 at 11:28 AM, Aldo Neto tumo...@gmail.com wrote:

 Hi All,
 I'm using STS 2.5.1 (i.e. Eclipse 3.6) and tried to upgrade to GWT 2.1.1,
 but I'm not able to do so. I updated the plugin and the SDK, updated the
 project reference to use them and compile the project. It all worked fine,
 but when I tried to run the project I got the errors below.
 Does anybody has any idea of what I'm doing wrong here?
 Thanks

 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/client/impl/AbstractClientRequestFactory.java'
 [ERROR] [applicationScaffold] - Line 29: The constructor
 DefaultRequestTransport() is undefined
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/DefaultProxyStore.java'
 [ERROR] [applicationScaffold] - Line 37: No source code is available for
 type com.google.gwt.autobean.shared.AutoBeanT; did you forget to inherit a
 required module?
 [ERROR] [applicationScaffold] - Line 38: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 required module?
 [ERROR] [applicationScaffold] - Line 60: No source code is available for
 type com.google.gwt.autobean.shared.AutoBeanCodex; did you forget to inherit
 a required module?
 [ERROR] [applicationScaffold] - Errors in
 'jar:file:/D:/springsource/sts-2.5.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/gwt-user.jar!/com/google/gwt/requestfactory/shared/ProxyStore.java'
 [ERROR] [applicationScaffold] - Line 36: No source code is available for
 type com.google.gwt.autobean.shared.Splittable; did you forget to inherit a
 

Re: Centering an image in a SimplePanel

2011-01-04 Thread Myles Bostwick
Don't forget also to set display: block; if you use the auto margins on 
the image.

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



GWT ResizeComposite resizing issue in IE

2011-01-04 Thread Lakshitha Ranasinghe
Hi All,
I am developing a GWT application that consists a ResizeComposite as
the main body container which is  wrapped in a TabLayoutPanel. This
composite widget contains two child widgets. Left widget is a GWT tree
and it contains hyperlinks. The right widget is a simple panel that
contains image tiles. The functionality is if user clicks on a link in
the tree the corresponding tiles are loaded to right hand side widget
(simple panel). However, this widget does not get resized according to
the browser resize
For example if I resize the browser window to half size and click one
of the links in the tree. The image tiles are loaded with scrollbars
in the simple panel. Then I resize the browser window and the
ResizeComposite widget does not get resized according to the browser
size. I tried with almost all the possible solutions but no success.

I figured out that the div tag that belongs to ResizeComposite does
not get the size updates but the parent div resizes properly. (I used
IE developer plugin for that)

I do not have any experience of using this widget before and I googled
and try this groupd as well but I haven't found any good answer yet.

Please help.

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



UIBinder component in multiple packages

2011-01-04 Thread particule
Hi.

I crawled the archives but could not find the answer to the following
question. I read the UIBinder doc too.

I would like to create a library of components created using UIBinder.

I would typically have in the

com.my.company.common

package

a

test2

component, implemented in a .java and a .ui.xml files.

This component would be used by another component

test1

defined in the

com.my.company.client

package.

Please find below this simple test project.

When I start/debug this simple case, I get a :
«
Rebinding com.mycompany.client.test1.test1UiBinder
Invoking generator
com.google.gwt.uibinder.rebind.UiBinderGenerator
Package not found : com.my.company.common
Deferred binding failed for
'com.my.company.client.test1.test1UiBinder'; expect subsequent
failures
Unable to load module entry point (...)
»

As far as I understand, the compiler has no reason to include things
from com.my.company.common, as these are not used at compile time. How
can I force it ?

Thanks in advance for your help,

Ludovic
===
?xml version=1.0 encoding=UTF-8?
module rename-to='test_uibinder_multi'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.my.company.client.Test_uibinder_multi'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  inherits name=com.my.company.Test_uibinder_multi/

/module

==
package com.my.company.client;

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

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class Test_uibinder_multi implements EntryPoint {
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
test1 toto = new test1();
RootPanel.get().add(toto);
}
}
=
package com.my.company.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.my.company.common.test2;

public class test1 extends Composite {

private static test1UiBinder uiBinder =
GWT.create(test1UiBinder.class);

interface test1UiBinder extends UiBinderWidget, test1 {
}
@UiField Button button;

public test1() {
initWidget(uiBinder.createAndBindUi(this));
}

@UiHandler(button)
void onClick(ClickEvent e) {
Window.alert(Hello!);
}
}
==
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
xmlns:tata=urn:import:com.my.company.common
ui:style

/ui:style
g:HTMLPanel
g:Button ui:field=buttonTest1/g:Button
tata:test2 ui:field=turlu/tata:test2
/g:HTMLPanel
/ui:UiBinder
===
package com.my.company.common;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;

public class test2 extends Composite implements HasText {

private static test2UiBinder uiBinder =
GWT.create(test2UiBinder.class);

interface test2UiBinder extends UiBinderWidget, test2 {
}

public test2() {
initWidget(uiBinder.createAndBindUi(this));
}

@UiField
Button button;

public test2(String firstName) {
initWidget(uiBinder.createAndBindUi(this));
button.setText(firstName);
}

@UiHandler(button)
void onClick(ClickEvent e) {
Window.alert(Hello!);
}

public void setText(String 

Date/Time support on client side

2011-01-04 Thread Tom Rada
Hi,
let me apologize in advance for my trivial post, but I really don't
know any better place to ask the question:

I want to have a widget consisting of three list boxes allowing people
enter their date of birth.
However, it seems GWT lacks any support for working with date/time on
client side.

There is the old java Date class that has all methods deprecated - and
that's the only positive thing I can say about it, because getYear
returns some stupid number to that you have to add 1900 to get actual
year, getDay returns value representing day in week value, etc.

So, it isn't that hard to fill the combos with values, but such simple
task like setting the actual day as selected in respective list box is
impossible for me.

How would you solve my issue? - I don't want to use any date picker
(like the one provided by GWT)

With Regards,
Tom

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



Removing inline styles from Layout Panels

2011-01-04 Thread Blaise
Hello,

I'm working on my first project with GWT, and trying to get my head
round the DockLayoutPanel and all the absolutely positioned divs it
adds to an HTML page full of inline styles.

I'm working on the front-end in partnership with a Java Developer who
has put together a UIBinder file with a DockLayoutPanel element and a
couple of children dividing the page, however I'd like more control
over the HTML created, especially as there are the inline styles in
there.

Can I remove these inline styles or should I revert to standard HTML?

Are the LayoutPanels used for prototyping more?

Cheers,

Blaise.

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



Re: Date/Time support on client side

2011-01-04 Thread Y2i
Adding/subtracting 1900 is not a big problem.

Instead of setDay() use (also deprecated) setDate()

Also, take a look at DateTimeFormat
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsFormatting.html#datetimeformat

If you are concerned about using deprecated methods, you can always
convert a string to a Date or to an int using various
DateTimeFormat.parse(...) methods.

On Jan 4, 7:41 am, Tom Rada tom.r...@gmail.com wrote:
 Hi,
 let me apologize in advance for my trivial post, but I really don't
 know any better place to ask the question:

 I want to have a widget consisting of three list boxes allowing people
 enter their date of birth.
 However, it seems GWT lacks any support for working with date/time on
 client side.

 There is the old java Date class that has all methods deprecated - and
 that's the only positive thing I can say about it, because getYear
 returns some stupid number to that you have to add 1900 to get actual
 year, getDay returns value representing day in week value, etc.

 So, it isn't that hard to fill the combos with values, but such simple
 task like setting the actual day as selected in respective list box is
 impossible for me.

 How would you solve my issue? - I don't want to use any date picker
 (like the one provided by GWT)

 With Regards,
 Tom

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



Re: Date/Time support on client side

2011-01-04 Thread Ben Imp
Unfortunately, you are stuck with the old java.util.Date object.  GWT
as of yet has nothing more to offer.

There is the DateTimeFormat class, which will allow you to parse bits
out of the date object, and possibly construct the date object if you
mash your three combo boxes into a suitable string.  That might help
you out a bit.

I've also heard of people making server calls to do date
manipulation.  Its not pretty, or efficient, but it would work.

You are far from the only one to mention the lack of a good calendar
object.  Feel better in knowing that others are suffering as well.

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

-Ben

On Jan 4, 9:41 am, Tom Rada tom.r...@gmail.com wrote:
 Hi,
 let me apologize in advance for my trivial post, but I really don't
 know any better place to ask the question:

 I want to have a widget consisting of three list boxes allowing people
 enter their date of birth.
 However, it seems GWT lacks any support for working with date/time on
 client side.

 There is the old java Date class that has all methods deprecated - and
 that's the only positive thing I can say about it, because getYear
 returns some stupid number to that you have to add 1900 to get actual
 year, getDay returns value representing day in week value, etc.

 So, it isn't that hard to fill the combos with values, but such simple
 task like setting the actual day as selected in respective list box is
 impossible for me.

 How would you solve my issue? - I don't want to use any date picker
 (like the one provided by GWT)

 With Regards,
 Tom

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



Workaround for Embedded objects

2011-01-04 Thread Aldo Neto
Hi,

I've been struggling with RequestFactory lately and I just found that it
doesn't support what I need, i.e. Embedded objects.

Note that RequestFactory does not currently support embedded objects
(@Embedded in various ORM frameworks) because it expects every entity to
exist independently with its own ID (from
http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships
).

I'd like to know how I can achieve the same result as using @Embedded /
@EmbeddedId. Any clue?

One last information: What I need is to map a N:M relationship and add some
extra data to it, so I followed these instructions:
http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-table-with-extra-column-using-jpa/

Thanks,
Aldo

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



Re: Workaround for Embedded objects

2011-01-04 Thread Y2i
ValueProxy can help with @Embedded, please take a look at Thomas' post
here:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/743631b8460d931b/4242f0ef5de751e7?lnk=gstq=ValueProxy#4242f0ef5de751e7


On Jan 4, 3:43 pm, Aldo Neto tumo...@gmail.com wrote:
 Hi,

 I've been struggling with RequestFactory lately and I just found that it
 doesn't support what I need, i.e. Embedded objects.

 Note that RequestFactory does not currently support embedded objects
 (@Embedded in various ORM frameworks) because it expects every entity to
 exist independently with its own ID 
 (fromhttp://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideReque...
 ).

 I'd like to know how I can achieve the same result as using @Embedded /
 @EmbeddedId. Any clue?

 One last information: What I need is to map a N:M relationship and add some
 extra data to it, so I followed these 
 instructions:http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-tab...

 Thanks,
 Aldo

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



retrieving entrypoint instance

2011-01-04 Thread fachhoch
I am a new bee starting with gwt.
I did a hello world example  , I did not understand  how to retrieve
the entrypoint instance to repalce content from RootPanel.
Here is the code I have

code
public class Application implements EntryPoint {

/**
 * This is the entry point method.
 */
public void onModuleLoad() {
singleton=this;
RootPanel.get().add(new LoginScreen());
}

 private static Application singleton;

  public static Application get() {
return singleton;
  }

public static void add(Widget  widget){
RootPanel.get().clear();
RootPanel.get().add(widget);
}
}

/code
in the above code whihc I got from some getting started tutorial  , an
instanceof entry point  is  saved in  onModuleLoad  method and a
static method which return this instance ? will this  not casue
issues  in multithreaded ? , please suggest me how to retrieve entry
point instance  ?




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



Re: Workaround for Embedded objects

2011-01-04 Thread David Chandler
Yes, as of 2.1.1, you can use @Embedded with RequestFactory. The
embedded type needs to extend ValueProxy instead of EntityProxy, and
you'll need to use .with(embedded_field_name) when firing the request
in order for RF to populate the field. I expect to have a sample up in
the next week. Note that enums now work, too, as long as you declare
the enum type in the proxy, which is shared between client and server.

/dmc

On Tue, Jan 4, 2011 at 7:16 PM, Y2i yur...@gmail.com wrote:
 ValueProxy can help with @Embedded, please take a look at Thomas' post
 here:

 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/743631b8460d931b/4242f0ef5de751e7?lnk=gstq=ValueProxy#4242f0ef5de751e7


 On Jan 4, 3:43 pm, Aldo Neto tumo...@gmail.com wrote:
 Hi,

 I've been struggling with RequestFactory lately and I just found that it
 doesn't support what I need, i.e. Embedded objects.

 Note that RequestFactory does not currently support embedded objects
 (@Embedded in various ORM frameworks) because it expects every entity to
 exist independently with its own ID 
 (fromhttp://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideReque...
 ).

 I'd like to know how I can achieve the same result as using @Embedded /
 @EmbeddedId. Any clue?

 One last information: What I need is to map a N:M relationship and add some
 extra data to it, so I followed these 
 instructions:http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-tab...

 Thanks,
 Aldo

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





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: retrieving entrypoint instance

2011-01-04 Thread Y2i
Entry points are declared in *.gwt.xml module files. When a module is
loaded, every entry point class defined in the module file is
instantiated and its EntryPoint.onModuleLoad() method gets called.

An entry point is instantiated only once and onModuleLoad() is also
called once, so there is no issue in storing the entry point reference
in a static field.  In addition, there is no multi-threading in GWT.


On Jan 4, 6:22 pm, fachhoch fachh...@gmail.com wrote:
 I am a new bee starting with gwt.
 I did a hello world example  , I did not understand  how to retrieve
 the entrypoint instance to repalce content from RootPanel.
 Here is the code I have

 code
 public class Application implements EntryPoint {

         /**
          * This is the entry point method.
          */
         public void onModuleLoad() {
                 singleton=this;
                 RootPanel.get().add(new LoginScreen());
         }

          private static Application singleton;

           public static Application get() {
             return singleton;
           }

         public static void add(Widget  widget){
                 RootPanel.get().clear();
                 RootPanel.get().add(widget);
         }

 }

 /code
 in the above code whihc I got from some getting started tutorial  , an
 instanceof entry point  is  saved in  onModuleLoad  method and a
 static method which return this instance ? will this  not casue
 issues  in multithreaded ? , please suggest me how to retrieve entry
 point instance  ?

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



  1   2   >