when i am using this code it gives error

2011-06-07 Thread Neha Chandra
import java.net.URL;
import com.giantflyingsaucer.client.SharedContactService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.google.gdata.client.contacts.ContactsService;
import com.google.gdata.data.PlainTextConstruct;
import com.google.gdata.data.contacts.ContactEntry;
import com.google.gdata.data.extensions.Email;
import com.google.gdata.data.extensions.ExtendedProperty;
import com.google.gdata.util.AuthenticationException;
import com.google.gdata.util.XmlBlob;


public class SharedContactServiceImpl extends RemoteServiceServlet 
implements
SharedContactService {
/**
 * 
 */
private static final long serialVersionUID = 1L;

public ContactEntry createContact()throws IllegalArgumentException {
// Create the entry to insert
ContactsService myService = new 
ContactsService(exampleCo-exampleApp-1);
try {
myService.setUserCredentials(d...@in.gappsdemo.in, 
gapps@123);
} catch (AuthenticationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
String name = nehaContact;
String notes = this is some notes from gdata API client;

ContactEntry contact = new ContactEntry();
contact.setTitle(new PlainTextConstruct(name));
contact.setContent(new PlainTextConstruct(notes));

Email primaryMail = new Email();
primaryMail.setAddress(d...@in.gappsdemo.in);
primaryMail.setRel(http://schemas.google.com/g/2005#home;);
primaryMail.setPrimary(true);
contact.addEmailAddress(primaryMail);

Email secondaryMail = new Email();
secondaryMail.setAddress(d...@in.gappsdemo.in);
secondaryMail.setRel(http://schemas.google.com/g/2005#work;);
secondaryMail.setPrimary(false);
contact.addEmailAddress(secondaryMail);

ExtendedProperty favouriteFlower = new ExtendedProperty();
favouriteFlower.setName(favourite flower);
favouriteFlower.setValue(daisy);
contact.addExtendedProperty(favouriteFlower);

ExtendedProperty sportsProperty = new ExtendedProperty();
sportsProperty.setName(sports);
XmlBlob sportKinds = new XmlBlob();
sportKinds.setBlob(new String(dancesalsa/ballroom 
dancing/dance/));
sportsProperty.setXmlBlob(sportKinds);
contact.addExtendedProperty(sportsProperty);
System.out.println(contact);

// Ask the service to insert the new entry
try{
System.out.println(Inside try  Block:);
URL postUrl = new 
URL(https://www.google.com/m8/feeds/contacts/in.gappsdemo.in/full;);
System.out.println(Inside try  Block1:);
return myService.insert(postUrl, contact);



}
catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
return contact;
}

}

when i am using this code it gives the following error : [ERROR] [simplerpc] 
- Line 9: No source code is available for type 
com.google.gdata.data.contacts.ContactEntry; did you forget to inherit a 
required module?

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



Re: GWTP Version 0.6 released!

2011-06-07 Thread Alain Ekambi
Bon travail  Philippe

2011/6/7 Philippe Beaudoin philippe.beaud...@gmail.com

 I'm happy to announce that the MVP + command pattern framework GWT-Platform
 version 0.6 has just been released.

 Highlights of this release include:

- Introduction of the GWTP Eclipse 
 Pluginhttp://code.google.com/p/gwt-platform/wiki/EclipsePlugin.
(Presenter wizards!)
- Support for search engine 
 crawlinghttp://code.google.com/p/gwt-platform/wiki/CrawlerSupport
.
- Integration with Google 
 Analyticshttp://code.google.com/p/gwt-platform/wiki/GoogleAnalytics
.

 Check out the project page at:
   http://gwtplatform.com

 It includes the Google I/O talk on RequestFactory, Objectify and
 GWT-Platform.

 Many thanks to the various contributors! This project would not be half of
 what it is today without their help.

 Cheers,

Philippe

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: GWT SEO

2011-06-07 Thread Alain Ekambi
Maybe you can have a look at GWTP ?
  http://gwtplatform.com



2011/6/7 maq mumay...@gmail.com

 Hi,

 Does any one have a good tutorial on how to turn GWT application into
 crawler friendly?

 I found some information talking about AJAX/crawler solution and such.
 But nothing like : for GWT application, here is what you do, 1,2,3...

 Thanks in advance!

 maq

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Hi Magno, thank you very much foir your answer.

So, ohter quickly question.

Do you (or anybody) know any form to use generics in deferred binding?

Thanks.

2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it is
 always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with the name
 of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass and
 override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
 Generator?

 Thanks!

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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



Re: GWT meets Adobe Flex: gwt4air 2.1 is here !

2011-06-07 Thread Alain Ekambi
Hello Alexandro,

Thank you for your kind words.
I m glad that you like the project. I m also happy that it can help you
solve some of the problems you have.
Gwt4Air is  a free time project. We use it internally at the company i work
but i dont get paid for that. It s small company so i decided to play the
nice guy :).But I wish I could do this full time  dough.

i m know the link you provided. As a matter of fact i have a comment there.
While searching for ideas on how to implement the Flex API i came accross
that post. What i did not like about that solution was the fact that the
user must deal with both sides. Flex and GWT. I wanted a more simpler
solution where one will only programm in Java like any GWT project.
Hopefully i did a good job at that.

Concerning what the Adobe Engineer told you: I think  what he ment is that
 for every MXML based Flex project the MXML Compiler  does  some
initialization work that you will have to do manually  if you dont want to
use MXML. And that initialization is a quiet complex thing. So  he probably
thought that no one would be crazy enough to try to figure out what the
compiler really does . But because i wanted to use GWT to write Flex
applicatons i had to be  crazy enough lol.

cheers,

Alain

2011/6/5 leandro leandrob...@googlemail.com

 Hi,
 I just went to your project and i have to say this is just mind blowing!
 Are you doing this full time ?
 Really i wonder how you guyz come up with this kind of stuff.
 We have been struggling integrating  flex client into how existing GWT
 application.
 We ve tried this  solution here
 http://lgrammel.blogspot.com/2010/02/i-am-working-on-project-that-integrates.html
 but  that did not scale very well. Maintining MXML/AS3, JavaScript and Java
 in the same project is a nightmare.
 Last year at Adobe Max i asked an engineer at from adobe if it s possible
 to write Flex applications without using AS3 and MXML because we wanted to
 keep everything in Java
 and he basically said that s impossible. So i wonder how do you do this ?
 I  cant wait to play to hero tomorrow at the office when i present the
 solution that will solve our problems :)

 Good work man

 Alexandro

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/QTE0WG5VSzdpM0FK.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Support for other languages than Java for client-side code

2011-06-07 Thread Alexander Orlov
Currently client-side code has to be written in Java. Is there a
chance that GWT will ever support other languages resp. how costly is
it to enable support for other statically typed languages. I'm
thinking of Go...

I know there's the Jribble project to enable writing client-side code
in Scala but it's pretty calm around this project.

-Alex

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



Re: when i am using this code it gives error

2011-06-07 Thread vinayak kulkarni
 You need the source-code of the jar while compiling into javascript. 
What is the folder structure being used? where does this contactEntry 
reside? if its just a jar, then, include its source code also.

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



Re: when i am using this code it gives error

2011-06-07 Thread Neha Chandra
Yes ContactEntry is a jar.I include its source code to the shared
package now it gives the following errors:
[ERROR] [simplerpc] - Line 95: No source code is available for 
type
java.net.URL; did you forget to inherit a required module?
[ERROR] [simplerpc] - Line 100: No source code is available for 
type
com.google.gdata.client.contacts.ContactsService; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 118: No source code is available for 
type
com.google.gdata.client.http.HttpGDataRequest; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 126: No source code is available for 
type
java.net.MalformedURLException; did you forget to inherit a required
module?
[ERROR] [simplerpc] - Line 126: No source code is available for 
type
com.google.gdata.util.AuthenticationException; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 149: No source code is available for 
type
com.google.gdata.util.ServiceException; did you forget to inherit a
required module?
[ERROR] [simplerpc] - Line 152: No source code is available for 
type
com.google.gdata.data.contacts.ContactGroupEntry; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 160: No source code is available for 
type
com.google.gdata.data.contacts.ContactEntry; did you forget to inherit
a required module?
[ERROR] [simplerpc] - Line 186: No source code is available for 
type
com.google.gdata.data.extensions.ExtendedProperty; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 248: No source code is available for 
type
com.google.gdata.data.Link; did you forget to inherit a required
module?
[ERROR] [simplerpc] - Line 308: No source code is available for 
type
java.io.BufferedReader; did you forget to inherit a required module?
[ERROR] [simplerpc] - Line 309: No source code is available for 
type
java.io.FileReader; did you forget to inherit a required module?
[ERROR] [simplerpc] - Line 367: No source code is available for 
type
com.google.gdata.client.Query; did you forget to inherit a required
module?
[ERROR] [simplerpc] - Line 369: No source code is available for 
type
com.google.gdata.data.DateTime; did you forget to inherit a required
module?
[ERROR] [simplerpc] - Line 396: No source code is available for 
type
com.google.gdata.data.contacts.ContactGroupFeed; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 404: No source code is available for 
type
com.google.gdata.data.contacts.ContactFeed; did you forget to inherit
a required module?
[ERROR] [simplerpc] - Line 411: No source code is available for 
type
com.google.gdata.util.NoLongerAvailableException; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 445: No source code is available for 
type
com.google.gdata.client.Service.GDataRequest; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 448: No source code is available for 
type
java.io.InputStream; did you forget to inherit a required module?
[ERROR] [simplerpc] - Line 449: No source code is available for 
type
java.io.ByteArrayOutputStream; did you forget to inherit a required
module?
[ERROR] [simplerpc] - Line 450: No source code is available for 
type
java.io.RandomAccessFile; did you forget to inherit a required module?
[ERROR] [simplerpc] - Line 586: No source code is available for 
type
java.util.logging.ConsoleHandler; did you forget to inherit a required
module?
[ERROR] [simplerpc] - Line 616: The method flush() is undefined 
for
the type PrintStream
[ERROR] [simplerpc] - Errors in
'file:/D:/Project/SimpleRPC/src/com/giantflyingsaucer/shared/contacts/ElementHelper.java'
[ERROR] [simplerpc] - Line 96: No source code is available for 
type
com.google.gdata.data.contacts.ContactEntry; did you forget to inherit
a required module?
[ERROR] [simplerpc] - Line 97: No source code is available for 
type
com.google.gdata.data.contacts.BillingInformation; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 122: No source code is available for 
type
com.google.gdata.data.contacts.Birthday; did you forget to inherit a
required module?
[ERROR] [simplerpc] - Line 146: No source code is available for 
type
com.google.gdata.data.contacts.CalendarLink; did you forget to inherit
a required module?
[ERROR] [simplerpc] - Line 150: No source code is available for 
type
com.google.gdata.data.contacts.CalendarLink.Rel; did you forget to
inherit a required module?
[ERROR] [simplerpc] - Line 198: No source code is available 

Aw: Re: Activities/Places and authorization

2011-06-07 Thread Jens
Hi,

Its nice but as you said its a slightly different context. Of course I can 
integrate some place information into my RPC mechanism but that does not 
solve the problem that if n activities get started in parallel each one will 
do a server request and each one will get a not authorized error. I just 
wanna do that authorization stuff once as it depends on the place and well I 
only have one place at a time.

I have taken a look into gwt code and it seems the only way to do something 
once for all activities (based on the place) would be to implement a custom 
PlaceController that does that work, save the result into the place and then 
firing the PlaceChangeEvent. But as the PlaceController would have to do a 
server request you would have a slightly delay between clicking a link in 
the web app and the actual PlaceChangeEvent that would let the UI react. I 
think that wouldn't feel nice for the user if the delay gets to big.

A second way I can think of would be a shared static variable across all 
activities that need authorization. The variable would hold something like a 
AuthorizationContext that the Activity can use to authorize the stuff it 
needs to authorize. The AuthorizationContext would accumulate requests from 
all activities per Place and only do the server request once. So I would 
have something like an AbstractAuthActivity with a method protected void 
auth(Place place, AuthCallback cb) and would call that method at first in 
each sub-activitys start method.

I think I will try the second approach but maybe there are other ideas?

-- J.

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



UiBinder and Editors

2011-06-07 Thread gadev
Hi there, 

I am using GWT 2.3 for an application which displays user profiles. There 
are two sort of views, one view when user is viewing own profile and one 
view when user is viewing other user's profile. I currently use GWT-RPC and 
UiBinder but since it is declarative I endup having holders in the uibinder 
files and then programmatically add widgets according to some conditions. So 
there is a lot of boilerplate code, which I am trying to cleanup/remove.

I started refactoring it using Editors to map my entities to views (later on 
I will also replace GWT-RPC with RequestFactory for CRUD operations). 
However, using Editors I lose the ability to control what is added to the 
view and what not..

What are your thoughts on the matter? Fellow GWTers how have you tackled 
similar problems?

Many thanks,
G

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



Aw: SimpleEventBus example?

2011-06-07 Thread Jens


 Q1) I presume inside my dispatch() function I am probably supposed to call 
 appropriate functions that I create in my OnChangePlanHander class?

 Yes. In the most simple case your handler will only have one method and the 
dispatch(Handler handler) method will only contain something like: 
handler.yourhandlermethod(this)
 

 Q2) What do I return for OnChangePlan.getAssociatedType()? Do I need to 
 create a subclass of GwtEvent.TypeOnChangePlanHandler too? When would I 
 ever create an instance of this subclass? Will I ever create more than one 
 instance of this subclass? (i.e. where should I be storing this instance?) 
 It looks like I might have just one such instance declared statically 
 somewhere to return it from OnChangePlan.getAssociatedType(). Right?


I always create a static variable and then return that variable in 
getAssociatedType(). You can directly create an instance of it (new 
TypeYourHandler).
 


 Q3) The javadocs for SimpleEventBus.addHandler() says it should *rarely* 
 be called directly. (??)  The alternative code snippet offered in the 
 javadocs lacks enough context for me; I don't yet understand the entire 
 scheme of how these classes are intended to work together.


So here is a very simple example for a LoginEvent that does carry an 
username and a password:

public class LoginEvent extends GwtEventHandler {


 public static interface Handler extends EventHandler {

public void onLogin(LoginEvent event);

}


 public static TypeHandler TYPE = new TypeHandler();


 public static HandlerRegistration register(final EventBus eventBus, 
finalHandler handler) {

return eventBus.addHandler(LoginEvent.TYPE, handler);

}


 private final String username;

private final String password;


 public LoginEvent() {

this(null, null);

}


 public LoginEvent(final String username, final String password) {

this.username = username;

this.password = password;

}


 public String getUserName() {

return this.username;

}


 public String getPassword() {

return this.password;

}


 @Override

public TypeHandler getAssociatedType() {

return LoginEvent.TYPE;

}


 @Override

protected void dispatch(final Handler handler) {

handler.onLogin(this);

}


}


In your code you can now listen to LoginEvents via 
LoginEvent.register(eventBus, 
new LoginEvent.Handler() { ... implement onLogin here ...}). Well and 
sending a LoginEvent is as easy as eventbus.fireEvent(new 
LoginEvent(username, password)).


In this example you will receive all LoginEvents regardless who has fired 
them. If you only want to listen to events from a specific source you can 
also add a LoginEvent.registerToSource(EvenBus eventbus, Object source, Handler 
handler) method to the event and use the eventbus.addHandlerToSource()method. 
Now if you want to listen for LoginEvents that have been fired by an 
instance loginsource you can call LoginEvent.registerToSource(eventbus, 
loginsource, new LoginEvent.Handler() { ... }) and in your loginsource 
instance you call eventbus.fireEventFromSource(new LoginEvent(user, pass), 
this).


Hope that helps.


-- J.

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



Re: when i am using this code it gives error

2011-06-07 Thread vinayak kulkarni
You need to create a module and reference it as a GWT module.

In the referenced library,
go, to contactEntry JAR file.

If contactEntry  package is com.yyy.zzz.ContactEntry
put ContactEntry.gwt.xml in the package com.yyy

Its content would be 
module
inherits name=com.google.gwt.user.User /
source path='' /
/module

Include it in your main module *.gwt.xml
inherits name=com.yyy.ContactEntry.gwt /


Compile it. It should work
 

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



Re: when i am using this code it gives error

2011-06-07 Thread Neha Chandra
yes i included all the jar files in lib folder as well as it is in the
build path.

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



Re: UiBinder and Editors

2011-06-07 Thread vinayak kulkarni
With editors, there is no loss of control on what is added to the view.

with editordriver.edit(), we map beans with views.
with editordriver.flush(), the values present in the view will be flushed 
back to the beans.

We can flush it on whichever event we can. Where is the question of control 
getting lost? Seems to be the best..

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



Re: UiBinder and Editors

2011-06-07 Thread gadev
Apologies if I haven't explained myself properly.

Take for instance a form of the like:

Firstname LastName
Description
Jobtitle

When User A is editing or viewing his profile the form will me displayed in 
full, all fields and if some are empty will be displayed with default text. 
However, the user may decide to leave a field or more un-edited and save the 
form.

If another User B tries to view User A's profile, I do not want to display 
fields with default values. That is what I am referring to as control what 
to display in the view and what not.

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



Re: UiBinder.useSafeHtmlTemplates

2011-06-07 Thread Thomas Broyer
com/google/gwt/uibinder/UiBinder.gwt.xml in the gwt-user.jar, this is the 
module you use when you inherits name=com.google.gt.uibinder.UiBinder /

If you want to set the value, simply put this line in *your* gwt.xml:
set-configuration-property name=UiBinder.usesafeHtmlTemplates 
value=true /

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



GWT on Netfront? (PS3/PSP/And the new Nintendo 3DS Browsers...)

2011-06-07 Thread darkflame
Anyone got GWT to run on Netfront browsers?
I found a few messages from 2009, and you seem to have to trick gwt
into thinking the user-agent is for something else as theres no
explict support - however the best way to do this and what browser is
the closest match seems a open question. Anyone had any expirence ?

Not sure quite why these platforms are going with Netfront rather then
Opera anyway - but it would be nice if there is a way of adding
support.

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



Re: Generics in deferred binding

2011-06-07 Thread Magno Machado
Check out what I did here
https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java

https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
think what you want is lines 43/44

On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it is
 always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with the
  name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass and
 override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
 Generator?

 Thanks!

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



Re: Issue in method anonymous class in GWT

2011-06-07 Thread ankit
Jen if u can show me some example of GWT.runAsync regarding this
problem..then it wud be great help to me..im still stuck in this maze
field

On May 26, 1:48 pm, ankit ankitsaxena0...@gmail.com wrote:
 Thanks Jen...if u can give me some example of GWT.runAsync...then it
 wud be little helpful to me

 On May 24, 2:13 pm, Jens jens.nehlme...@gmail.com wrote:







  No I assumed you call your model.setRecords() method inside the model()
  method (because thats the only place where you can call it). So in my
  example the call label.setText() would by the model.setRecords() call in
  your example.

  It has to be executed in order. Just imagine your anonymous inner class has
  a getter and possibly does some calculations that have to be done and the
  result of that calculation is used in you outer model() method. Java and
  GWT's Java - Javascript compiler can not rearrange that flow because it
  would easily result in broken code. Using GWT.runAsync or Scheduler.get() in
  your model() method would be the only way to break this flow.

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



Re: UiBinder and Editors

2011-06-07 Thread Magno Machado
You can different views for these two situations, or you can have all fields
on the view and programaticaly hide the ones you don't want the user to see

On Tue, Jun 7, 2011 at 7:23 AM, gadev george.agiasog...@newsint.co.ukwrote:

 Apologies if I haven't explained myself properly.

 Take for instance a form of the like:

 Firstname LastName
 Description
 Jobtitle

 When User A is editing or viewing his profile the form will me displayed in
 full, all fields and if some are empty will be displayed with default text.
 However, the user may decide to leave a field or more un-edited and save the
 form.

 If another User B tries to view User A's profile, I do not want to display
 fields with default values. That is what I am referring to as control what
 to display in the view and what not.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Z3ltR3BvMVppMW9K.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



Aw: Re: UiBinder and Editors

2011-06-07 Thread Jens
Sounds like you want a custom TextBox (that can act as an editor) that can 
show an additional descriptive message if it does not has any text. 
Basically a transparent TextBox and a Label behind it. The label will be 
shown if no text is in the TextBox and the TextBox has no focus. Once it is 
focused or contains text the label will be hidden.

That way your beans will have null values if there is no information and 
your view for User A (viewing its own profile) will present that null value 
in the way you want it. For User B you have a separate view that does not 
display null values (labels or whatever you use should have 0 height and 0 
width if they are empty).

-- J.

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



Re: when i am using this code it gives error

2011-06-07 Thread Neha Chandra
i have ContactsExample named jar file is it ok?

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



Re: when i am using this code it gives error

2011-06-07 Thread vinayak kulkarni
Whatever may be the name of the jar.
But, it is the parent directory of the Class Name.ie. where exactly
ContactEntry resides.

Similarly,it has to be done for all the beans which are used from client
side.


On Tue, Jun 7, 2011 at 4:24 PM, Neha Chandra niki.chan...@gmail.com wrote:

 i have ContactsExample named jar file is it ok?

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



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



Re: Shortcomings in Places

2011-06-07 Thread Drew Spencer
Hey coders,

This might not be the best place to ask, but you all seem to be rather 
experienced in this 2.1 style MVP structure.

I am currently tearing my hair out trying to learn MVP. I went through the 
contacts.zip example and the new 2.1 style one with Activities and Places. 
The problem for me is that I find just code samples quite hard to understand 
(without being a step-by-step tutorial), and I'm on the verge of diving into 
gwt-platform or guit just because they are so well documented.

So can I ask you all - what experience do you have with any of the MVP 
frameworks and which are best?

Alternatively, any decent(ish) Activities/Places tutorials would be most 
appreciated if it really is the best way to go.

Regards,

Drew

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



GWT FileSystem Implementation

2011-06-07 Thread Allahbaksh
HI,
Are there any GWT project which wrap around FileSystem API
http://dev.w3.org/2009/dap/file-system/pub/FileSystem/.
Is there any plans to implement the same in next release of GWT.
Regards,
Allahbaksh Mohammedali Asadullah

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



Re: Aw: Re: UiBinder and Editors

2011-06-07 Thread gadev
Jens this is sort of what I am doing now, I have placed holders for the 
forms in Uibinder files and then programmatically I add the form onto the 
placeholder.

My goal though is to avoid that boilerplate code and pre/post procesing and 
declare the forms using Uibinder.

I use UiBinder to declare the form, so when it comes to using Editors to map 
beans on views everything is already layed out. From there on if I wanted to 
remove something from the form I would have to do some postprocessing to 
find empty fields and remove them. Unless I create the forms 
programmatically rather than using UiBinder.

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



Re: GWT FileSystem Implementation

2011-06-07 Thread Alain Ekambi
I think somebody started a project like this sometimes ago but i cant
remember. You might want to google that :)
But the File  API is still in early stage dough. Maybe it will  make it to
GWT when it s stable good enough.

2011/6/7 Allahbaksh a.allahba...@gmail.com

 HI,
 Are there any GWT project which wrap around FileSystem API
 http://dev.w3.org/2009/dap/file-system/pub/FileSystem/.
 Is there any plans to implement the same in next release of GWT.
 Regards,
 Allahbaksh Mohammedali Asadullah

 --
 You received 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 u thnsubscribe from this group, send email 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 API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Before you ask a question.
If you don´t mind, show me a class that implements the interface Columns,
and the corresponding call GWT.create (class that implements Columns);

My specific question is I don´t know the form to assign the genereic type to
the interface [interface columsT]

How can I specify that T is Car.class or Bus.car (for example)??.

Thanks!

2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it is
 always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
 Generator?

 Thanks!

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send 

Re: GWT SEO

2011-06-07 Thread Qiang Ma
Thanks Alain.
Wonder if there is a way that I don't need create a new dependency (3rd
party code)?

Thanks!

-maq

On Tue, Jun 7, 2011 at 2:28 AM, Alain Ekambi jazzmatad...@googlemail.comwrote:

 Maybe you can have a look at GWTP ?
   http://gwtplatform.com



 2011/6/7 maq mumay...@gmail.com

 Hi,

 Does any one have a good tutorial on how to turn GWT application into
 crawler friendly?

 I found some information talking about AJAX/crawler solution and such.
 But nothing like : for GWT application, here is what you do, 1,2,3...

 Thanks in advance!

 maq

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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/


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


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



Re: GWT FileSystem Implementation

2011-06-07 Thread Alain Ekambi
There you go

http://code.google.com/p/lib-gwt-file/

2011/6/7 Allahbaksh a.allahba...@gmail.com

 HI,
 Are there any GWT project which wrap around FileSystem API
 http://dev.w3.org/2009/dap/file-system/pub/FileSystem/.
 Is there any plans to implement the same in next release of GWT.
 Regards,
 Allahbaksh Mohammedali Asadullah

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Action on a ImageResourceCell

2011-06-07 Thread Jambi
Works ;) thanks a lot!

On 1 Jun., 15:49, Sydney sydney.henr...@gmail.com wrote:
 See my implementation:http://pastie.org/2003461http://pastie.org/2003467

 The call to add the column:

         // Remove Bet Column
         ClickableImageResourceCell removeCell = new
 ClickableImageResourceCell();
         ColumnYourObject, YourObject removeColumn = new ColumnYourObject
 , YourObject(removeCell) {
             @Override
             public YourObject getValue(YourObject obj) {
                 return obj;
             }
         };
         removeCell.setUpdater(this);

 I use a ValueUpdater instead of a FieldUpdater. The class containing the
 CellTable implements ValueUpdaterYourObject, I guess you can do the same
 with FieldUpdater.

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



Re: Issue in method anonymous class in GWT

2011-06-07 Thread ankit
Jens if u can show me some example of GWT.runAsync regarding this
problem..then it wud be great help to me..im still stuck in this maze
field

On Jun 7, 3:35 pm, ankit ankitsaxena0...@gmail.com wrote:
 Jen if u can show me some example of GWT.runAsync regarding this
 problem..then it wud be great help to me..im still stuck in this maze
 field

 On May 26, 1:48 pm, ankit ankitsaxena0...@gmail.com wrote:







  Thanks Jen...if u can give me some example of GWT.runAsync...then it
  wud be little helpful to me

  On May 24, 2:13 pm, Jens jens.nehlme...@gmail.com wrote:

   No I assumed you call your model.setRecords() method inside the model()
   method (because thats the only place where you can call it). So in my
   example the call label.setText() would by the model.setRecords() call in
   your example.

   It has to be executed in order. Just imagine your anonymous inner class 
   has
   a getter and possibly does some calculations that have to be done and the
   result of that calculation is used in you outer model() method. Java and
   GWT's Java - Javascript compiler can not rearrange that flow because it
   would easily result in broken code. Using GWT.runAsync or Scheduler.get() 
   in
   your model() method would be the only way to break this flow.

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



Re: Issue in method anonymous class in GWT

2011-06-07 Thread ankit
Jens if u can show me some example of GWT.runAsync regarding this
problem..then it wud be great help to me..im still stuck in this maze
field

On Jun 7, 3:35 pm, ankit ankitsaxena0...@gmail.com wrote:
 Jen if u can show me some example of GWT.runAsync regarding this
 problem..then it wud be great help to me..im still stuck in this maze
 field

 On May 26, 1:48 pm, ankit ankitsaxena0...@gmail.com wrote:







  Thanks Jen...if u can give me some example of GWT.runAsync...then it
  wud be little helpful to me

  On May 24, 2:13 pm, Jens jens.nehlme...@gmail.com wrote:

   No I assumed you call your model.setRecords() method inside the model()
   method (because thats the only place where you can call it). So in my
   example the call label.setText() would by the model.setRecords() call in
   your example.

   It has to be executed in order. Just imagine your anonymous inner class 
   has
   a getter and possibly does some calculations that have to be done and the
   result of that calculation is used in you outer model() method. Java and
   GWT's Java - Javascript compiler can not rearrange that flow because it
   would easily result in broken code. Using GWT.runAsync or Scheduler.get() 
   in
   your model() method would be the only way to break this flow.

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



Re: GWT SEO

2011-06-07 Thread Qiang Ma
Thanks Alain being a good advocate for a good project :)

I will check it out (perhaps secretly peeking at the source code too :)

-maq

On Tue, Jun 7, 2011 at 6:38 AM, Alain Ekambi jazzmatad...@googlemail.comwrote:

 I  cant tell.
  I never really worked on GWT SEO.
 But i think you will never regret a depency to GWTP
 Phillipe and the others  members have made a great job with the library.

 It s worth a try :).

 2011/6/7 Qiang Ma mumay...@gmail.com

 Thanks Alain.
 Wonder if there is a way that I don't need create a new dependency (3rd
 party code)?

 Thanks!

 -maq

 On Tue, Jun 7, 2011 at 2:28 AM, Alain Ekambi jazzmatad...@googlemail.com
  wrote:

 Maybe you can have a look at GWTP ?
   http://gwtplatform.com



 2011/6/7 maq mumay...@gmail.com

 Hi,

 Does any one have a good tutorial on how to turn GWT application into
 crawler friendly?

 I found some information talking about AJAX/crawler solution and such.
 But nothing like : for GWT application, here is what you do, 1,2,3...

 Thanks in advance!

 maq

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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
  http://www.gwt4air.appspot.com/


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


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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/


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


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



Aw: Re: Issue in method anonymous class in GWT

2011-06-07 Thread Jens


You only have a problem if you use GWT.runAsync in your method. If so, 
everything that is inside the RunAsyncCallback.onSuccess method will be 
downloaded as a separate javascript file once your app reaches this point. 
The download will happen in parallel/async in production mode. In dev mode 
you won't see a difference as it will be executed synchronous.


Basically if you take my previous example and wrap the Label creation and 
the label.setText() call into a GWT.runAsync it can happen that onModuleLoad 
finishes and later on the additional code download finishes and the 
onSuccess method is called. Thus onSuccess gets called after onModuleLoad 
finishes. That would result in:


onModuleLoad(): started

onModuleLoad(): finished

Label.setText(): hello world


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



Re: Shortcomings in Places

2011-06-07 Thread Thomas Broyer
(shameless plug) not a tutorial per se, but for the overall concepts of 
places and activities (which I reiterate have not much to do with MVP), see:

   - http://tbroyer.posterous.com/gwt-21-places
   - http://tbroyer.posterous.com/gwt-21-places-part-ii
   - http://tbroyer.posterous.com/gwt-21-activities
   - http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni
   
I never used any other framework or toolkit so I can't compare. I looked 
at GWTP and Mvp4g documentations though, and I didn't like the way they 
approach the problem (well, and they are heavy frameworks, and I hate 
frameworks; places do one thing, and they do it well, PlaceHistoryHandler 
then plugs them to the browser's history, and it does it well; activities 
are a lightweight, micro-framework built on top of places, and they do their 
job well; you can use places without activities, you can also easily 
escape and switch to something else, and/or mix activities with another 
pattern/toolkit; there are limitations in what activities do and allow 
out-of-the-box, but it's easy to add/modify/replace behavior if you want it, 
possibly localized to a single point in your app, and keep the 
out-of-the-box behavior else where; because it's more a toolkit than a 
framework)

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



Re: Generics in deferred binding

2011-06-07 Thread Thomas Broyer
You can't (because generics in Java are a bit, er, limited); you'll have 
to declare a sub-interface that binds the type parameters. That's the 
reason you have to declare non-generic interfaces extending UiBinder, 
SimpleBeanEditorDriver/RequestFactoryEditorDriver, or 
PlaceHistoryHandlerWithFactory, rather than pass those directly to 
GWT.create().

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



DateTimeFormat formatting differs

2011-06-07 Thread richie
Hi,

i ' m facing a strange behaviour when i m formatting  dates with the
gwt-  DateTimeFormat.
Only for some dates (for example 06.05.1039) the days are formatted
wrong. It also edpends on the environment i am running my application:
On Jetty (windows) the dates a formatted correctly - on jboss (unix)
the days a formatted wrong.

I' m using it the folowing way:

DateTimeFormat guiDateFormat = DateTimeFormat.getFormat(dd.MM.);
String birthDate = guiDateFormat.format(value.getDateOfBirth());

 A Date: 06.05.1039  is formatted to 12.05.1039.

Any hinds what i am doing wrong?

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



Re: Aw: SimpleEventBus example?

2011-06-07 Thread Broc Seib
Jens,

Excellent example -- thank you.

The key points I needed were:
  1) I must define my handler as an interface, not a class (I finally did 
figure that one out -- whoops!)
  2) I don't need to subclass GwtEvent.Type
  3) I can define everything inside a single Event subclass, nice clean and 
neat single source file.

Your post is the first concise example I've seen for using the 
EventBus. Your example will quickly become the first result when googling 
for 'SimpleEventBus example' (if not already). The javadocs really need to 
include this kind of example.

-broc

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



Re: Shortcomings in Places

2011-06-07 Thread Drew Spencer
I was on your blog earlier Thomas and I did bookmark it :) , but I feel like 
I need to learn MVP properly first. I managed to kinda adapt the first MVP 
tutorial (http://code.google.com/webtoolkit/articles/mvp-architecture.html) 
to use my objectify data, but I just hated the fact that i needed so many 
classes to do something so simple - a class for every event, and a handler. 
Just seems ridiculous.

I've just downloaded the gwtp plugin and looked at the demo project, and it 
is a really heavy framework as you say. I really got away from php to avoid 
frameworks so I would like to use the GWT stuff if possible.

The thing I don't really get is that google says GWT 2.1 introduces a 
built-in framework for MVP development. This article looks at Activities and 
Places in GWT 2.1, which relate to the presenter and view aspects of MVP. With 
that said, how can you say they have not much to do with MVP?

Most grateful for any help

Regards

Drew

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



Re: Generics in deferred binding

2011-06-07 Thread Magno Machado
Here's an exemple:
https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumns

https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumnsHowever, as
Thomas already said, you can't inspect the generic arguments passed directly
into GWT.create(). That is, given:
GWT.create(FooBar.class), you can't see Bar. You can, however, inspect
the generic arguments passed on the superclass or implemented interfaces

On Tue, Jun 7, 2011 at 8:31 AM, Adolfo Panizo Touzon 
adolfo.pan...@gmail.com wrote:

 Before you ask a question.
 If you don´t mind, show me a class that implements the interface Columns,
 and the corresponding call GWT.create (class that implements Columns);

 My specific question is I don´t know the form to assign the genereic type
 to the interface [interface columsT]

 How can I specify that T is Car.class or Bus.car (for example)??.

 Thanks!


 2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it is
 always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on a
  Generator?

 Thanks!

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to 

P2P Video/Text Chat

2011-06-07 Thread moa-code
Hi,

Is it possible to implement this using GWT? Are there any examples?

I've had a look and can't see much, other than flash based solutions.


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



Request cancel

2011-06-07 Thread jeroni
Can the Request.cancel() from the client-side be caught on the server
side?

I've got a database connection from a pool that must be freed before
cancelling the request.

try {
  ...database stuff.
} catch (SQLException e) {
  ...error handling here
} finally {
  Database.release(connection); -- this is not executed when
cancelling the request
}

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



Huge data slowing down Celltable

2011-06-07 Thread Leela
Hi,

I'm using GWT 2.2. We have requirement to display huge data (around
8000 rows and  20 columns) in Celltable.
The celltable is placed within a ScrollPanel to scroll the data.  We
are not using pager.

Following javascript is displayed  Stop running this script? A script
on this page is causing Internet Explorer to run slowly. If it
continues to run, your computer may become unresponsive. When I click
on Continue few times, finally the data is displayed. However when I
drag the scrollbar or click on the row, it is very slow.

We are using Firefox 3.5 and IE7. This slowness happens in both the
browsers.

Can celltable handle such huge data without pager? Any help/suggestion
appreciated.

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



MultiWordSuggestOracle: disable auto sorting

2011-06-07 Thread Daniel
Hi,
I'm using a MultiWordSuggestOracle together with a SuggestBox to
display auto suggestions. I add the suggestions with the
MultiWordSuggestOracle.add() function. I have my suggestions sorted
via relevance. However, the oracle sorts them alphabetical. Is there a
way to disable this?

I already tried to write a subclass of MultiWordSuggestOracle without
alphabetical sorting, but there are many private attributes I can't
access in the subclass, so I would have to rewrite the whole class
(+ dependencies)?

Thanks,
Daniel

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



Re: Please provide update Eclipse plugin for 3.7 aka Indigo

2011-06-07 Thread NLH
Are there any news on progress of the 3.7 (Indigo) support? Hope it
comes soon, have 3.7 and can't use the Google Web Toolkit therefore...
bad :(

On 21 Apr., 17:55, David Chandler drfibona...@google.com wrote:
 We'll be working on Eclipse 3.7 support after we finish the GWT 2.3 release
 now in process.

 /dmc

 On Wed, Apr 20, 2011 at 11:49 AM, adietisheim 
 andre.dietish...@gmail.comwrote:

  The GWT Plugins do not work with Eclipse 3.7. aka Indigo. Since a lot
  of people switch over to the latest milestones it would be great if
  you could update your plugin so that it works with Indigo.

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

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



Problems using RequestFactory

2011-06-07 Thread Ryan McFall
I am migrating an application which used Gilead as the go-between
between Hibernate and GWT to use RequestFactory.  I am having a
problem where the RequestFactoryGenerator doesn't want to generate a
RequestFactory for my service.  The error I see in the Development
Mode console is:

[ERROR] [surveyeditor] - Invalid Request parameterization
edu.hope.cs.surveys.dao.pojo.Tag

I have tried simplifying Tag as much as possible - in particular, it
used to implement java.io.Serializable, but now it does not.

It's not clear to me what the possible reasons for the above error
might be, so it's kind of hard to diagnose.

Below are the relevant interfaces/classes.  Thanks in advance for any
ideas.

Ryan

-
package edu.hope.cs.surveys.dao;

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.ProxyFor;

import edu.hope.cs.surveys.dao.pojo.Tag;

@ProxyFor(Tag.class)
public interface ITag extends EntityProxy {
public Integer getTagID ();
public String getTagText ();
public String getOwner ();
public boolean isPublic ();

public void setTagID (int id);
public void setTagText (String text);
public void setOwner (String ownerName);
public void setPublic (boolean isPublic);
}
-
package edu.hope.cs.surveys.dao.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.Session;
import org.hibernate.annotations.Type;

import edu.hope.cs.surveys.dao.ITag;
import edu.hope.cs.surveys.database.HibernateUtil;
import edu.hope.cs.surveys.database.ISurveysDB;
import edu.hope.cs.surveys.database.SurveysDB;

@Entity
@Table(name=Tags)
public class Tag implements ComparableTag {

private Integer tagID;
private String tagText;
private String owner;
private boolean isPublic;

public Tag () {
isPublic = true;
}

@Id
@GeneratedValue(strategy=GenerationType.AUTO)
public Integer getTagID() {
return tagID;
}


@Basic
public String getTagText() {
return tagText;
}


@Basic
public String getOwner() {
return owner;
}


@Column(name=IsPublic)
@Type(type=edu.hope.cs.surveys.dao.pojo.YesNo)
public boolean isPublic() {
return isPublic;
}


public void setTagID(int iD) {
tagID = iD;
}


public void setTagText(String tagText) {
this.tagText = tagText;
}


public void setOwner(String owner) {
this.owner = owner;
}


public void setPublic(boolean isPublic) {
this.isPublic = isPublic;
}

/**
 * Compares this tag to the tag iother/i based upon the
Comparable
 * interface.  In this case the tag text values are compared.
 */
@Override
public int compareTo(Tag other) {
return tagText.compareTo(other.getTagText());
}

@Override
public boolean equals(Object arg0) {
if (!(arg0 instanceof ITag)) {
return false;
}

ITag other = (ITag) arg0;

return this.getTagID() == other.getTagID();
}

/*  Methods associated with the request factory implementation  */
@Transient
public Long getId () {
return new Long(getTagID());
}

@Transient
public Integer getVersion () {
return 0;
}

public static Tag findEntity(Long id) {
Session session = HibernateUtil.getCurrentSession();
Tag tag = (Tag) session.load (Tag.class, id);
return tag;
}

public static ListTag getTags () {
ISurveysDB db = SurveysDB.getInstance();
return new ArrayListTag(db.getAvailableTags(surveys, true));
}
}
-
package edu.hope.cs.surveys.editor.client;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import 

OutlineView Widget

2011-06-07 Thread joel
I'm looking for a GWT widget like this one:

http://www.manytricks.com/sandbox/cocoadev/animatedcustomoutlinecell.png

I'm also looking to add another column to display a date, I do need
the numbers and dates lined up. How would you build this? A TreeGrid
would be an obvious choice, but I don't see one in the base library,
what would integrate well with the current GWT model, ExtGWT, etc?

Thanks,
J

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



Insert addthis button in GWT project

2011-06-07 Thread Ahmed
Hello,
i want to add addthis button to my GWT project, i ve tried script of
adthis.com in http://jsfiddle.net/ and it works
but when i try to add html in HTML widget or HTMLPanel widget, there
is nothing displayed

here is the addthis-button code:

!-- AddThis Button BEGIN --
div class=addthis_toolbox addthis_default_style
addthis_32x32_style
a class=addthis_button_preferred_1/a
a class=addthis_button_preferred_2/a
a class=addthis_button_preferred_3/a
a class=addthis_button_preferred_4/a
a class=addthis_button_compact/a
a class=addthis_counter addthis_bubble_style/a
/div
script type=text/javascript src=http://s7.addthis.com/js/250/
addthis_widget.js#pubid=xa-4dedff9264df5708/script
!-- AddThis Button END --


i used it in the entrypoint like this:

  @Override
   public void onModuleLoad()
   {
  // TODO Auto-generated method stub
  HTML html = new HTML(
 !-- AddThis Button BEGIN --
+ div class=\addthis_toolbox addthis_default_style
addthis_32x32_style\
+ a class=\addthis_button_preferred_1\/a
+ a class=\addthis_button_preferred_2\/a
+ a class=\addthis_button_preferred_3\/a
+ a class=\addthis_button_preferred_4\/a
+ a class=\addthis_button_compact\/a
+ a class=\addthis_counter addthis_bubble_style\/a
+ /div
+ script type=\text/javascript\ src=\http://
s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4dedf88971884dde\/
script
+ !-- AddThis Button END --);
  RootPanel root = RootPanel.get();
  root.add(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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT SEO

2011-06-07 Thread Daniel
As far as I know there isn't anything else you can do, except for the 
official google ajax solution you mentioned: 
http://code.google.com/web/ajaxcrawling/docs/getting-started.html

I'd be very interested in this, too;)

Also I'm thinking:
If I provide very simple html pages of the GWT content for googlebot. But 
then I want the users to see the fancy GWT webpages. Is it allowed to do sth 
like this on all the simple HTML pages:
scriptwindow.location = 'fancy-gwt-redirect-for-browser';/script
??
Since the script tag get's delivered to googlebot, too, this souldn't be 
cloaking?? And googlebot can see the content while users still get to see 
the real and more advanced website.
Or another problem might be that googlebot could follow this simple redirect 
even without interpreting JavaScript, ending up on an empty page and we have 
the initial problem again.
Does anyone have any inside knowledge on this?

Thanks

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



MultiWordSuggestOracle without automatic sorting?

2011-06-07 Thread Daniel
Hi,
I'm using a MultiWordSuggestOracle together with a SuggestBox to display 
auto suggestions. I add the suggestions with the 
MultiWordSuggestOracle.add() function. I have my suggestions sorted via 
relevance. However, the oracle sorts them alphabetical. Is there a way to 
disable this?

I already tried to write a subclass of MultiWordSuggestOracle without 
alphabetical sorting, but there are many private attributes I can't access 
in the subclass, so I would have to rewrite the whole class (+ 
dependencies)?

Thanks,
Daniel

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



Example with EventBus/MVP

2011-06-07 Thread joel
Where is a good example, something more than Hello World that shows
proper implementation with current GWT thinking ie. EventBus and
MVP, etc.

J

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



loading GWT module from applet fails half-way through

2011-06-07 Thread imueller
Hello,
in my project I need to do some bootstrapping which is done best with
a Java applet. Therefore,
the GWT module needs to be loaded by the applet using Javascript by
calling the below function with the name of the xx..nocache.js file:

function load(filename, filetype)
{
if (filetype==js){
var 
fileref=document.createElement('script');

fileref.setAttribute(type,text/javascript);

fileref.setAttribute(language,javascript);
fileref.setAttribute(src, filename);

document.getElementsByTagName(head)[0].appendChild(fileref);
}
};

The function adds a javascript reference to the header of the
project's html page.

The nocache.js file is then loaded and executes but not successfully
so because of a 404 error when trying to load the xxx.cache.html file.
This file sits in a sub directory, however, the loader attempts to
load it from the root directory.

The problem is that the path is incorrect even though I did not make
any changes to it, e.g.all files, including the applet, are located in
the directory of the project's html page.

Has anyone experience with this problem and would share their
knowledge?

thanks

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



How can I trap an Unrecognized command for client?

2011-06-07 Thread J.O.
I try to make an application using GWT and Eclipse. Everything works
ok, when I run the stuff in Eclipse, the server is started on
127.0.0.1:9997 and it responds to requests produced by my Chrome
browser and so on.

If some other web client try to connect to this URL (127.0.0.1:9997),
by, say, doing a GET request for something, an error is produced,
naturally:


Connection received from localhost.localdomain:57803
   [ERROR] Unrecognized command for client; closing connection
com.google.gwt.dev.shell.BrowserChannelException: Invalid message type
71
at com.google.gwt.dev.shell.BrowserChannel
$Message.readMessageType(BrowserChannel.java:1104)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
378)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:636)


However, what I would like, is for my code to be able to trap this! Is
this possible?!

Maybe I'm really asking for how to run an extra web server in my
application? On the other hand, the whole thing *is* a web server, so
this shouldn't be to hard?! Sorry if I seem confused... I probably
am...

J.O.

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



Re: GWT SEO

2011-06-07 Thread Daniel
Thanks for your reply.
However, for already coded projects it might be hard to add yet another 
framework.
Isn't it possible to use that crawlerservice URL just with a regular GWT 
app? And then just the crawlerservice app is written with GWTP.

Oh and @maq: sorry for asking questions here in your thread, I don't want to 
be rude... I hope the direction of the discussion is still as you planned 
it... Looking forward to your own questions ;)

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



Re: Shortcomings in Places

2011-06-07 Thread Thomas Broyer


On Tuesday, June 7, 2011 3:05:10 PM UTC+2, Drew Spencer wrote:

 I was on your blog earlier Thomas and I did bookmark it :) , but I feel 
 like I need to learn MVP properly first. I managed to kinda adapt the first 
 MVP tutorial (
 http://code.google.com/webtoolkit/articles/mvp-architecture.html) to use 
 my objectify data, but I just hated the fact that i needed so many classes 
 to do something so simple - a class for every event, and a handler. Just 
 seems ridiculous.


I agree, but MVP is not about this eventing, it's only about decoupling the 
presentation logic (presenter; which in GWT you'd want to *not* depend on 
widgets or anything GWT.create()d so you can unit-test it with plain 
Java, without the need for the sluggish GWTTestCase) from the view 
(widgets).
Have a look at the second tutorial rather than the first; much less verbose. 
Compared to the first, it transfers a bit of logic to the view but it's 
really worth it!
The thing is: you have a Presenter class that depends on a View interface, 
and a ViewImpl class implementing View and talking back to its presenter 
through a Delegate interface (you can replace View with Display, and/or 
Delegate with Presenter, choose your naming convention), implemented by the 
Presenter class (technically speaking, the Delegate interface is not 
required though). And keep in mind that what matters is that you can 
unit-test your presenter without the need for a GWTTestCase; that way you 
can use tools like EasyMock or Mockito to mock your dependencies (the View 
of course, but also GWT-RPC or RequestFactory services, or even the 
EventBus).
Besides unit-testing, MVP helps making clean code, because the code is split 
across two classes (with an interface in between for decoupling).
 

 I've just downloaded the gwtp plugin and looked at the demo project, and it 
 is a really heavy framework as you say. I really got away from php to avoid 
 frameworks so I would like to use the GWT stuff if possible.

 The thing I don't really get is that google says GWT 2.1 introduces a 
 built-in framework for MVP development. This article looks at Activities and 
 Places in GWT 2.1, which relate to the presenter and view aspects of MVP. 
 With 
 that said, how can you say they have not much to do with MVP?


Well, go back read my blog: did I talk a single time about model, view 
or presenter when explaining places and activities? An Activity can be a 
Composite widget (passing itself to the AcceptsOneWidget received in the 
start() method) and there wouldn't be MVP involved, or at least the Activity 
wouldn't be the presenter (because MVP can be implemented in different ways: 
Cell widgets actually do use MVP internally for instance).
The GWT team is also trying a new pattern where presenters are separate from 
activities (that's in the mobilewebapp sample, but they only scratched the 
surface).
There's no one way of doing MVP.

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



Re: GWT SEO

2011-06-07 Thread Christian Goudreau
Just one word, the crawler service and client in GWTP can be use as a
standalone module by itself in any project,

You can see what it needs here:
http://code.google.com/p/gwt-platform/wiki/DependencyHierarchy

and download the separated jars here:
http://code.google.com/p/gwt-platform/downloads/detail?name=gwtp-separate-0.6.zipcan=2q=#makechanges

or if you prefer maven:
http://code.google.com/p/gwt-platform/wiki/UsingGwtpWithMaven

and finally, the crawler documentation:
http://code.google.com/p/gwt-platform/wiki/CrawlerSupport

Cheers,

On Tue, Jun 7, 2011 at 12:57 AM, Daniel eklipto...@googlemail.com wrote:

 As far as I know there isn't anything else you can do, except for the
 official google ajax solution you mentioned:
 http://code.google.com/web/ajaxcrawling/docs/getting-started.html

 I'd be very interested in this, too;)

 Also I'm thinking:
 If I provide very simple html pages of the GWT content for googlebot. But
 then I want the users to see the fancy GWT webpages. Is it allowed to do sth
 like this on all the simple HTML pages:
 scriptwindow.location = 'fancy-gwt-redirect-for-browser';/script
 ??
 Since the script tag get's delivered to googlebot, too, this souldn't be
 cloaking?? And googlebot can see the content while users still get to see
 the real and more advanced website.
 Or another problem might be that googlebot could follow this simple
 redirect even without interpreting JavaScript, ending up on an empty page
 and we have the initial problem again.
 Does anyone have any inside knowledge on this?

 Thanks

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/emViSHFESW9ZU1lK.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Christian Goudreau
www.arcbees.com

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



Re: Example with EventBus/MVP

2011-06-07 Thread Juan Pablo Gardella
See this 
threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/4e7cf6d7a17d01aa
and
you can see this
samplehttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home

Juan

2011/6/6 joel jtrun...@gmail.com

 Where is a good example, something more than Hello World that shows
 proper implementation with current GWT thinking ie. EventBus and
 MVP, etc.

 J

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



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



Re: Huge data slowing down Celltable

2011-06-07 Thread Juan Pablo Gardella
Wow ! how many rows!!! In IE is very slow. Very rarely requirement, is
better to generate an excel file. I think with GWT at now is impossible to
do fast. I think you must generate a html file in server side and then
displayed.

Juan

2011/6/7 Leela rcleel...@gmail.com

 Hi,

 I'm using GWT 2.2. We have requirement to display huge data (around
 8000 rows and  20 columns) in Celltable.
 The celltable is placed within a ScrollPanel to scroll the data.  We
 are not using pager.

 Following javascript is displayed  Stop running this script? A script
 on this page is causing Internet Explorer to run slowly. If it
 continues to run, your computer may become unresponsive. When I click
 on Continue few times, finally the data is displayed. However when I
 drag the scrollbar or click on the row, it is very slow.

 We are using Firefox 3.5 and IE7. This slowness happens in both the
 browsers.

 Can celltable handle such huge data without pager? Any help/suggestion
 appreciated.

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



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



Re: Request cancel

2011-06-07 Thread Juan Pablo Gardella
Use timers to close connections, or better use a pool and forget to close
connections.

2011/6/7 jeroni jer...@gmail.com

 Can the Request.cancel() from the client-side be caught on the server
 side?

 I've got a database connection from a pool that must be freed before
 cancelling the request.

 try {
  ...database stuff.
 } catch (SQLException e) {
  ...error handling here
 } finally {
  Database.release(connection); -- this is not executed when
 cancelling the request
 }

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



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



Re: Codesplitting and ``If-Modified-Since`` Header

2011-06-07 Thread pansen
Hey David,

thanks for your answer. I took a look again and: yes - all response
headers reach the browser as expected.

Today I switched our production setup back from ``xsiframe`` to ``xs``
linker which solves the issue. This seems to be a good solution as
``xsiframe`` is only necessary for development imho. Moreover a
collegue in my team told me there is a bug with ``xsiframe`` and ipad
currently.

Questions:
* Should I report a bug for ``xsiframe``?
* What about ``xsiframe`` - will this be the next generation ``xs``
linker?
* whats the reason for appending ``serial=0`` to the splitted js files
when using ``xs`` linker?
http://beta/latest/vz_main/deferredjs/27FDB52EE40059691D73F91CDA95778F/12.cache.js?serial=0

Cheers, Andi

On 1 Jun., 14:26, David Chandler drfibona...@google.com wrote:
 Hi Andi,

 Have a look at the browser's Developer Tools to inspect what the browser is
 actually seeing. In the initial response from the server, do the
 Last-Modified, Expires, and Cache-control headers appear as above? In the
 subsequent request, is the browser sending an If-Modified-Since header based
 on the Last-Modified time as above?

 /dmc









 On Wed, Jun 1, 2011 at 6:11 AM, pansen andi.ba...@googlemail.com wrote:
  Hey guys,

  it seems not as if this is a gwt issue, but a header/browser issue.
  I'm asking you anyway, maybe someone knows about the way splitted
  scripts are requested.

  I proved the server responds in a correct manner if ``If-Modified-
  Since`` is sent.

  # this file is included in the hosted page via ``script`` tag. and
  will respond a 304 the second
  # time i load the page
  [andi]$ curl -is
 http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache...head
  HTTP/1.1 200 OK
  Server: nginx
  Date: Wed, 01 Jun 2011 09:50:08 GMT
  Content-Type: application/x-javascript
  Connection: keep-alive
  Vary: Accept-Encoding
  Content-Length: 569494
  Last-Modified: Tue, 31 May 2011 13:07:42 GMT
  Expires: Fri, 01 Jul 2011 09:50:08 GMT
  Cache-Control: max-age=2592000
  [andi]$ curl -is
 http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache.js
  -H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
  HTTP/1.1 304 Not Modified
  Server: nginx
  Date: Wed, 01 Jun 2011 09:52:17 GMT
  Connection: keep-alive
  Last-Modified: Tue, 31 May 2011 13:07:42 GMT
  Expires: Fri, 01 Jul 2011 09:52:17 GMT
  Cache-Control: max-age=2592000
  Access-Control-Allow-Origin:http://xss.beta:9667

  # this file is one of the splitted ones and will always get fully
  loaded
  [andi]$ curl -is
 http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F6449...head
  HTTP/1.1 200 OK
  Server: nginx
  Date: Wed, 01 Jun 2011 09:52:59 GMT
  Content-Type: application/x-javascript
  Connection: keep-alive
  Vary: Accept-Encoding
  Content-Length: 173765
  Last-Modified: Tue, 31 May 2011 13:07:42 GMT
  Expires: Fri, 01 Jul 2011 09:52:59 GMT
  Cache-Control: max-age=2592000
  [andi]$ curl -is
 http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F6449...
  -H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
  HTTP/1.1 304 Not Modified
  Server: nginx
  Date: Wed, 01 Jun 2011 09:53:40 GMT
  Connection: keep-alive
  Last-Modified: Tue, 31 May 2011 13:07:42 GMT
  Expires: Fri, 01 Jul 2011 09:53:40 GMT
  Cache-Control: max-age=2592000
  Access-Control-Allow-Origin:http://xss.beta:9667

  You can see there is no server configuration issue as far as i can
  see. I just set the nginx ``expires`` directive to ``30d``
 http://wiki.nginx.org/HttpHeadersModule#expires

  Anyone knows how to tweak the response headers to a browser to cache
  these files?

  Cheers, Andi

  On 30 Mai, 17:52, pansen andi.ba...@googlemail.com wrote:
   Hey,

   we are successfully using the codesplitting feature in our project. on
   our staging server, i recognized that all splitted files are always
   completely loaded from the server. All files included in the hostpage,
   will send a ``If-Modified-Since`` header the second time I load the
   app::

       If-Modified-Since   Mon, 30 May 2011 14:29:42 GMT
       Cache-Control       max-age=0

   All splitted JS files are correctly loaded afterwards, but the problem
   is they never contain these information (``If-Modified-Since``
   header). So the server is not able to respond with a 304 Not
   Modified.

   Can someone give me a hint where to tweak this behaviour?

   The advice given here:
 http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCompi...
   also wont work without that header.

   Thanks, Andi

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

 --
 David Chandler
 Developer Programs Engineer, 

Re: Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Ok. I understand.

But when you said *declare a sub-interface that binds the type parameters
*.

Can you show me a simple example?? I don´t know the way to create a one
generic sub-interface (create one interface for each type is simple, but one
generic interface to bind all the types...¿?).

Thanks a lot.

2011/6/7 Magno Machado magn...@gmail.com

 Here's an exemple:
 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumns

 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumnsHowever, as
 Thomas already said, you can't inspect the generic arguments passed directly
 into GWT.create(). That is, given:
 GWT.create(FooBar.class), you can't see Bar. You can, however, inspect
 the generic arguments passed on the superclass or implemented interfaces


 On Tue, Jun 7, 2011 at 8:31 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Before you ask a question.
 If you don´t mind, show me a class that implements the interface Columns,
  and the corresponding call GWT.create (class that implements Columns);

 My specific question is I don´t know the form to assign the genereic type
 to the interface [interface columsT]

 How can I specify that T is Car.class or Bus.car (for example)??.

 Thanks!


 2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it
 is always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on
 a Generator?

 Thanks!

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

 --
 You received 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
 

Re: Huge data slowing down Celltable

2011-06-07 Thread John LaBanca
8000 rows is too many to display at once.  Even a HTML file probably take a
while to load, and the scrollbars become almost unusable because you don't
have the fidelity to narrow in on a row.  The slow script warning happens
when you block the UI for too long (sometimes measured in seconds, other
times in lines of execution).

You're better off using a pager, but if you really want to load 8,000 rows,
you can break it into chunks.  CellTable uses a push API, which means you
can push data in segments and they will be appeneded to the end.  The
process would look like:
1. Send asynchronous request for 250 rows
2. On response, push 250 rows into CellTable
3. Go back to step 1

The above method has two advantages.  First, you only request 250 rows at a
time, which means a faster RPC call and less time deserializing the
response, so your startup time will be much faster.  Second, you only render
250 rows per event loop, so the browser doesn't lock up while populating the
table.  The additional rows are appended to the end of the table.  You can
play around with different row counts to get the best performance tradeoff.
 You might even load 50 on the first call for max startup time, then switch
to 500 to reduce the load on the sever.

Thanks,
John LaBanca
jlaba...@google.com


On Tue, Jun 7, 2011 at 9:51 AM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 Wow ! how many rows!!! In IE is very slow. Very rarely requirement, is
 better to generate an excel file. I think with GWT at now is impossible to
 do fast. I think you must generate a html file in server side and then
 displayed.

 Juan


 2011/6/7 Leela rcleel...@gmail.com

 Hi,

 I'm using GWT 2.2. We have requirement to display huge data (around
 8000 rows and  20 columns) in Celltable.
 The celltable is placed within a ScrollPanel to scroll the data.  We
 are not using pager.

 Following javascript is displayed  Stop running this script? A script
 on this page is causing Internet Explorer to run slowly. If it
 continues to run, your computer may become unresponsive. When I click
 on Continue few times, finally the data is displayed. However when I
 drag the scrollbar or click on the row, it is very slow.

 We are using Firefox 3.5 and IE7. This slowness happens in both the
 browsers.

 Can celltable handle such huge data without pager? Any help/suggestion
 appreciated.

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


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


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



Re: Doubt on google analytics integration with gwt app

2011-06-07 Thread IQBAL YUSUF
Awesome work guys 


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



Overnight chrome extension with gwt: Gmail Instant Browsing

2011-06-07 Thread Gal Dolber
Here is a small extension I did last night:
https://chrome.google.com/webstore/detail/fpjmoncpngjdjjmdehlfcljjpmfhkpja
I love the new twitter app on ipad, in special the internal browser, so I
copied it to work on gmail.
Enjoy!

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



Re: Overnight chrome extension with gwt: Gmail Instant Browsing

2011-06-07 Thread Alain Ekambi
Error Unknow application

2011/6/7 Gal Dolber gal.dol...@gmail.com

 Here is a small extension I did last night:
 https://chrome.google.com/webstore/detail/fpjmoncpngjdjjmdehlfcljjpmfhkpja
 I love the new twitter app on ipad, in special the internal browser, so I
 copied it to work on gmail.
 Enjoy!

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Project wizard creates a completely different MVP project from the what it has in the docs.

2011-06-07 Thread Murat Yener
Hi Nigel,

We had built an eclipse plugin which generates all the necessary files
and entry points and reorganizes the project in to mvp structure. The
plugin also has a feature create new page which lets asimply right
click to generate all mvp counterparts (view, presenter, model) and
registers all new gerenared stuff to eventbus and other places.
However the plugin is still beta. I may send you the plugin in beta,
hopefully i am planning to fix it very soon.

On Jun 6, 1:25 am, nigel nigel.hamilton.sm...@gmail.com wrote:
 Hi,

 Not sure whether this is the correct place to ask the question, but I
 will anyway! I've been reading the documents about MVP, specifically
 the large scale development and MVP parts 1  2, great articles by
 the way. However, when I then generate a project in Eclipse, it
 generates an entirely different package hierarchy. Could someone point
 me at some documentation to show me how this hierarchy works.
 Hopefully something to give me an overview at a similar level to the
 previous 2 articles rather than just the API.

 Thanks,

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



Re: Huge data slowing down Celltable

2011-06-07 Thread Alain Ekambi
8000 rows ???
If  that s the requirement then maybe you should revisit the requirement
instead of trying to implement something like displaying 8000 rows at once.
Who is able to process 8000 rows of data  at once?

2011/6/7 John LaBanca jlaba...@google.com

 8000 rows is too many to display at once.  Even a HTML file probably take a
 while to load, and the scrollbars become almost unusable because you don't
 have the fidelity to narrow in on a row.  The slow script warning happens
 when you block the UI for too long (sometimes measured in seconds, other
 times in lines of execution).

 You're better off using a pager, but if you really want to load 8,000 rows,
 you can break it into chunks.  CellTable uses a push API, which means you
 can push data in segments and they will be appeneded to the end.  The
 process would look like:
 1. Send asynchronous request for 250 rows
 2. On response, push 250 rows into CellTable
 3. Go back to step 1

 The above method has two advantages.  First, you only request 250 rows at a
 time, which means a faster RPC call and less time deserializing the
 response, so your startup time will be much faster.  Second, you only render
 250 rows per event loop, so the browser doesn't lock up while populating the
 table.  The additional rows are appended to the end of the table.  You can
 play around with different row counts to get the best performance tradeoff.
  You might even load 50 on the first call for max startup time, then switch
 to 500 to reduce the load on the sever.

 Thanks,
 John LaBanca
 jlaba...@google.com



 On Tue, Jun 7, 2011 at 9:51 AM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 Wow ! how many rows!!! In IE is very slow. Very rarely requirement, is
 better to generate an excel file. I think with GWT at now is impossible to
 do fast. I think you must generate a html file in server side and then
 displayed.

 Juan


 2011/6/7 Leela rcleel...@gmail.com

 Hi,

 I'm using GWT 2.2. We have requirement to display huge data (around
 8000 rows and  20 columns) in Celltable.
 The celltable is placed within a ScrollPanel to scroll the data.  We
 are not using pager.

 Following javascript is displayed  Stop running this script? A script
 on this page is causing Internet Explorer to run slowly. If it
 continues to run, your computer may become unresponsive. When I click
 on Continue few times, finally the data is displayed. However when I
 drag the scrollbar or click on the row, it is very slow.

 We are using Firefox 3.5 and IE7. This slowness happens in both the
 browsers.

 Can celltable handle such huge data without pager? Any help/suggestion
 appreciated.

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


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


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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: GWT meets Adobe Flex: gwt4air 2.1 is here !

2011-06-07 Thread IQBAL YUSUF
You rock Alain... awesome project.. I'm glad that you thought -- I wanted 
a more simpler solution where one will only programm in Java like any GWT 
project. ... Great thinking Now I'm going to play with Flex component 
since I can do it from Java GWT. I'm specially interested to use ***
mx.controls.VideoDisplay *component and hope your library can play that. 
Thanks Again...

Iqbal Yusuf

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



Re: GWT meets Adobe Flex: gwt4air 2.1 is here !

2011-06-07 Thread Alain Ekambi
Hi Yusuf,
Thank you.
The *mx.controls.VideoDisplay* should work without any problem. If there is
any issue please let me know.
But remember  is a very primitive UI Component. Even Adobe does not use it
:) . The 
spark.components.VideoPlayerhttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/VideoPlayer.html
is
more advanced but is not in 2.1
2.2 will have full support of spark components.


2011/6/7 IQBAL YUSUF iqbalyusufd...@gmail.com

 You rock Alain... awesome project.. I'm glad that you thought -- I
 wanted a more simpler solution where one will only programm in Java like any
 GWT project. ... Great thinking Now I'm going to play with Flex
 component since I can do it from Java GWT. I'm specially interested to use
 ***mx.controls.VideoDisplay *component and hope your library can play
 that. Thanks Again...

 Iqbal Yusuf

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/bG9kWWxhemhSSllK.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



StockWatcher - reading the error in Junit test Eclipse Failure Trace

2011-06-07 Thread Bob
http://code.google.com/webtoolkit/doc/latest/tutorial/JUnit.html

On the Junit testing part of StockWatcher tutorial.

As instructed, I have introduced the bug indicated and the test case fail. 
 But, I don't follow how to read the Eclipse Failure Trace (lower left 
corner of IDE).  Specifically, from the failure trace, I don't see how to 
identify the line in code that failed.

You would think it would give a line number or you could double click on it 
in the trace and it would show you the line that failed, but I don't see it.

Can someone direct to a URL or something that would explain how to read it?

Thanks in advance.
bob

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



Re: JUnitCreator not found

2011-06-07 Thread Bob
Ok, my bad, it looks like in 2+ it is part of webAppCreator.

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



Re: Overnight chrome extension with gwt: Gmail Instant Browsing

2011-06-07 Thread Gal Dolber
Google forgot the sharing part of the chrome store.
Try this link:
https://chrome.google.com/webstore/detail/fpjmoncpngjdjjmdehlfcljjpmfhkpja?hl=en

On Tue, Jun 7, 2011 at 11:49 AM, Alain Ekambi
jazzmatad...@googlemail.comwrote:

 Error Unknow application

 2011/6/7 Gal Dolber gal.dol...@gmail.com

 Here is a small extension I did last night:
 https://chrome.google.com/webstore/detail/fpjmoncpngjdjjmdehlfcljjpmfhkpja
 I love the new twitter app on ipad, in special the internal browser, so I
 copied it to work on gmail.
 Enjoy!

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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/


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




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



Re: Codesplitting and ``If-Modified-Since`` Header

2011-06-07 Thread David Chandler
Thanks, Andi. Please report a bug against xsiframe and we'll look into it.

/dmc

On Tue, Jun 7, 2011 at 10:10 AM, pansen andi.ba...@googlemail.com wrote:

 Hey David,

 thanks for your answer. I took a look again and: yes - all response
 headers reach the browser as expected.

 Today I switched our production setup back from ``xsiframe`` to ``xs``
 linker which solves the issue. This seems to be a good solution as
 ``xsiframe`` is only necessary for development imho. Moreover a
 collegue in my team told me there is a bug with ``xsiframe`` and ipad
 currently.

 Questions:
 * Should I report a bug for ``xsiframe``?
 * What about ``xsiframe`` - will this be the next generation ``xs``
 linker?
 * whats the reason for appending ``serial=0`` to the splitted js files
 when using ``xs`` linker?

 http://beta/latest/vz_main/deferredjs/27FDB52EE40059691D73F91CDA95778F/12.cache.js?serial=0

 Cheers, Andi

 On 1 Jun., 14:26, David Chandler drfibona...@google.com wrote:
  Hi Andi,
 
  Have a look at the browser's Developer Tools to inspect what the browser
 is
  actually seeing. In the initial response from the server, do the
  Last-Modified, Expires, and Cache-control headers appear as above? In the
  subsequent request, is the browser sending an If-Modified-Since header
 based
  on the Last-Modified time as above?
 
  /dmc
 
 
 
 
 
 
 
 
 
  On Wed, Jun 1, 2011 at 6:11 AM, pansen andi.ba...@googlemail.com
 wrote:
   Hey guys,
 
   it seems not as if this is a gwt issue, but a header/browser issue.
   I'm asking you anyway, maybe someone knows about the way splitted
   scripts are requested.
 
   I proved the server responds in a correct manner if ``If-Modified-
   Since`` is sent.
 
   # this file is included in the hosted page via ``script`` tag. and
   will respond a 304 the second
   # time i load the page
   [andi]$ curl -is
  
 http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache...head
   HTTP/1.1 200 OK
   Server: nginx
   Date: Wed, 01 Jun 2011 09:50:08 GMT
   Content-Type: application/x-javascript
   Connection: keep-alive
   Vary: Accept-Encoding
   Content-Length: 569494
   Last-Modified: Tue, 31 May 2011 13:07:42 GMT
   Expires: Fri, 01 Jul 2011 09:50:08 GMT
   Cache-Control: max-age=2592000
   [andi]$ curl -is
  
 http://dev.beta/latest/vz_main/ADF0D4E5642BF488EE5572F64496EB0A.cache.js
   -H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
   HTTP/1.1 304 Not Modified
   Server: nginx
   Date: Wed, 01 Jun 2011 09:52:17 GMT
   Connection: keep-alive
   Last-Modified: Tue, 31 May 2011 13:07:42 GMT
   Expires: Fri, 01 Jul 2011 09:52:17 GMT
   Cache-Control: max-age=2592000
   Access-Control-Allow-Origin:http://xss.beta:9667
 
   # this file is one of the splitted ones and will always get fully
   loaded
   [andi]$ curl -is
  
 http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F6449...head
   HTTP/1.1 200 OK
   Server: nginx
   Date: Wed, 01 Jun 2011 09:52:59 GMT
   Content-Type: application/x-javascript
   Connection: keep-alive
   Vary: Accept-Encoding
   Content-Length: 173765
   Last-Modified: Tue, 31 May 2011 13:07:42 GMT
   Expires: Fri, 01 Jul 2011 09:52:59 GMT
   Cache-Control: max-age=2592000
   [andi]$ curl -is
  http://dev.beta/latest/vz_main/deferredjs/ADF0D4E5642BF488EE5572F6449.
 ..
   -H 'If-Modified-Since: Tue, 31 May 2011 13:07:42 GMT'|head
   HTTP/1.1 304 Not Modified
   Server: nginx
   Date: Wed, 01 Jun 2011 09:53:40 GMT
   Connection: keep-alive
   Last-Modified: Tue, 31 May 2011 13:07:42 GMT
   Expires: Fri, 01 Jul 2011 09:53:40 GMT
   Cache-Control: max-age=2592000
   Access-Control-Allow-Origin:http://xss.beta:9667
 
   You can see there is no server configuration issue as far as i can
   see. I just set the nginx ``expires`` directive to ``30d``
  http://wiki.nginx.org/HttpHeadersModule#expires
 
   Anyone knows how to tweak the response headers to a browser to cache
   these files?
 
   Cheers, Andi
 
   On 30 Mai, 17:52, pansen andi.ba...@googlemail.com wrote:
Hey,
 
we are successfully using the codesplitting feature in our project.
 on
our staging server, i recognized that all splitted files are always
completely loaded from the server. All files included in the
 hostpage,
will send a ``If-Modified-Since`` header the second time I load the
app::
 
If-Modified-Since   Mon, 30 May 2011 14:29:42 GMT
Cache-Control   max-age=0
 
All splitted JS files are correctly loaded afterwards, but the
 problem
is they never contain these information (``If-Modified-Since``
header). So the server is not able to respond with a 304 Not
Modified.
 
Can someone give me a hint where to tweak this behaviour?
 
The advice given here:
  http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCompi.
 ..
also wont work without that header.
 
Thanks, Andi
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to 

Re: Problems using RequestFactory

2011-06-07 Thread Hilco Wijbenga
On 6 June 2011 11:02, Ryan McFall mcfall.r...@gmail.com wrote:
 I am migrating an application which used Gilead as the go-between
 between Hibernate and GWT to use RequestFactory.  I am having a
 problem where the RequestFactoryGenerator doesn't want to generate a
 RequestFactory for my service.  The error I see in the Development
 Mode console is:

 [ERROR] [surveyeditor] - Invalid Request parameterization
 edu.hope.cs.surveys.dao.pojo.Tag

 I have tried simplifying Tag as much as possible - in particular, it
 used to implement java.io.Serializable, but now it does not.

 It's not clear to me what the possible reasons for the above error
 might be, so it's kind of hard to diagnose.

 Below are the relevant interfaces/classes.  Thanks in advance for any
 ideas.

 Ryan

 -
 package edu.hope.cs.surveys.dao;

 import com.google.web.bindery.requestfactory.shared.EntityProxy;
 import com.google.web.bindery.requestfactory.shared.ProxyFor;

 import edu.hope.cs.surveys.dao.pojo.Tag;

 @ProxyFor(Tag.class)
 public interface ITag extends EntityProxy {
        public boolean isPublic ();
        public void setPublic (boolean isPublic);

I'm guessing these might be a problem. Firstly, normal boolean getters
don't seem to work (i.e. is*, has*). This may have changed in GWT2.3,
though (I haven't tried). Secondly, setPublic might generate a
parameter public which would not compile.

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



Re: Not able to commit changes to google code, eclipse plugin keep asking for password even if I am already logged in.

2011-06-07 Thread Prashant
older version used to work fine for me ... is there any way to downgrade to
older version ?

On Mon, Jun 6, 2011 at 12:32 PM, Prashant antsh...@gmail.com wrote:

 anyone ?

 On Mon, Jun 6, 2011 at 12:39 AM, Prashant antsh...@gmail.com wrote:

 Hi,

 Since last eclipse plugin update (few days back) I am not able to commit
 changes to Google Code. If am logged in on eclipse it can deploy application
 to GAE but if I try to commit changes to Google Code, it will keep asking
 for password again and again. Any idea what's wrong ?

 Thanks,
 Prashant




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



Rewriting a JUnit test suite from JUnit 3 to JUnit 4

2011-06-07 Thread Bob
http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html#DevGuideJUnitCreation

Section: Combining TestCase classes into a TestSuite.

I am new to this!!!  I am upgrading the StockWatcher tutorial to junit  4 
(that all went fine).  I want to add a test suite, like below.  I believe 
below is written for Junit 3, and I would like to see it written for junit 4 
(I have tried, but cannot get it to work).  I realize below is not part of 
the stockwatcher tutorial, just trying to add a test suite for learning 
purposes.  Comments on the JUnit 4 code would be helpful too.

Thanks!
Bob

public class MapsTestSuite extends GWTTestSuite {
  public static Test suite() {
TestSuite suite = new TestSuite(Test for a Maps Application);
suite.addTestSuite(MapTest.class); 
suite.addTestSuite(EventTest.class);
suite.addTestSuite(CopyTest.class);
return suite;
  }
}

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



Re: Huge data slowing down Celltable

2011-06-07 Thread leela c
Thanks for the suggestions.

8000 is the max limit for the data in our case. Though this is not a
practical scenario, we just thought of handling the worst case. We
wanted to identify if the problem was in our coding or if Celltable
has some issue with such large data.

As John suggested I would try the Push API approach else we might
require to  revisit the requirement.

On 6/7/11, Alain Ekambi jazzmatad...@googlemail.com wrote:
 8000 rows ???
 If  that s the requirement then maybe you should revisit the requirement
 instead of trying to implement something like displaying 8000 rows at once.
 Who is able to process 8000 rows of data  at once?

 2011/6/7 John LaBanca jlaba...@google.com

 8000 rows is too many to display at once.  Even a HTML file probably take
 a
 while to load, and the scrollbars become almost unusable because you don't
 have the fidelity to narrow in on a row.  The slow script warning happens
 when you block the UI for too long (sometimes measured in seconds, other
 times in lines of execution).

 You're better off using a pager, but if you really want to load 8,000
 rows,
 you can break it into chunks.  CellTable uses a push API, which means you
 can push data in segments and they will be appeneded to the end.  The
 process would look like:
 1. Send asynchronous request for 250 rows
 2. On response, push 250 rows into CellTable
 3. Go back to step 1

 The above method has two advantages.  First, you only request 250 rows at
 a
 time, which means a faster RPC call and less time deserializing the
 response, so your startup time will be much faster.  Second, you only
 render
 250 rows per event loop, so the browser doesn't lock up while populating
 the
 table.  The additional rows are appended to the end of the table.  You can
 play around with different row counts to get the best performance
 tradeoff.
  You might even load 50 on the first call for max startup time, then
 switch
 to 500 to reduce the load on the sever.

 Thanks,
 John LaBanca
 jlaba...@google.com



 On Tue, Jun 7, 2011 at 9:51 AM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 Wow ! how many rows!!! In IE is very slow. Very rarely requirement, is
 better to generate an excel file. I think with GWT at now is impossible
 to
 do fast. I think you must generate a html file in server side and then
 displayed.

 Juan


 2011/6/7 Leela rcleel...@gmail.com

 Hi,

 I'm using GWT 2.2. We have requirement to display huge data (around
 8000 rows and  20 columns) in Celltable.
 The celltable is placed within a ScrollPanel to scroll the data.  We
 are not using pager.

 Following javascript is displayed  Stop running this script? A script
 on this page is causing Internet Explorer to run slowly. If it
 continues to run, your computer may become unresponsive. When I click
 on Continue few times, finally the data is displayed. However when I
 drag the scrollbar or click on the row, it is very slow.

 We are using Firefox 3.5 and IE7. This slowness happens in both the
 browsers.

 Can celltable handle such huge data without pager? Any help/suggestion
 appreciated.

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


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


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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/

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



-- 
You received 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 

Interested in helping a research study on Eclipse?

2011-06-07 Thread Mohsen Vakilian
Hi

I'm Mohsen, a PhD student working with Prof. Ralph Johnson at the
University of Illinois at Urbana-Champaign (UIUC). Ralph is a co-
author of the seminal book on design patterns (GoF) and his research
group has a history of important contributions to IDE's.

Our team [1] is studying how developers interact with the Eclipse IDE
for evolving and maintaining their code. Since the GWT team provides
an Eclipse plug-in for GWT, some of you might use Eclipse for your GWT
development. So, we are inviting you to participate in our study and
would greatly appreciate and value your help.

To participate you should be at least 18 years old and use Eclipse
Helios for Java development. As a participant, we ask that you
complete a short survey and install our Eclipse plug-in called
CodingSpectator [2].

CodingSpectator monitors programming interactions non-intrusively in
the background and periodically uploads it to a secure server at UIUC.
To get a representative perspective of how you interact with Eclipse,
we would appreciate if you could install CodingSpectator for two
months. Rest assured that we are taking the utmost measures to protect
your privacy and confidentiality.

If you are interested, you may sign up at http://
codingspectator.cs.illinois.edu/ConsentForm, which contains our
consent form with all the details and procedures of our research
study.

Your participation will help us greatly as we try to better understand
how developers interact with their IDE's so we can propose
improvements which fit better with their mindsets.

Thanks in advance for your time! Please do not hesitate to contact me
(mvaki...@illinois.edu) if you have any questions or comments. More
information can also be found at our FAQ [3]. Feel free to forward
this invitation to anyone who might be interested in participating in
this study.

--
Mohsen Vakilian
 the CodingSpectator team

[1] http://codingspectator.cs.illinois.edu/People
[2] http://codingspectator.cs.illinois.edu
[3] http://codingspectator.cs.illinois.edu/FAQ

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



Re: Reflection Class Generator

2011-06-07 Thread Honza Rames
Ok, a little bit of delay but finally I managed to create the project
here: http://code.google.com/p/gwt-rtti/

--
Honza Rames

On 2 čvn, 15:35, Honza Rames rame...@gmail.com wrote:
 OK, I'm making some preparations to release it on Google Code. I'll
 post all the info there (I mean what it can
  and cannot do and why some things are little bit different from java
 reflection API). Hopefully I'll manage to do this during the
 weekend...

 --
 Honza Rames

 On 2 čvn, 13:07, Nagin Kothari naginkoth...@gmail.com wrote:







  I am very interessed on it. May you send the project to do a look to the
  code?

  regards

  Nagin Kothari

  On Wed, Jun 1, 2011 at 8:10 PM, Honza Rames rame...@gmail.com wrote:
   Hi, from what I can tell GWT doesn't support reflection at all in
   client side (JS translatable) code. Just a few simple features like
   getting class name (but I can't really call that reflection can
   I ;-) ). I have been experimenting with reflection in client side code
   though, and with a lot of success I must say :-). I'm planning to
   share the code on Google Code when I feel its ready, I'm currently
   testing it on business application I'm working on and then we'll see.
   If you (or anybody else) would like to give it a try, I might be able
   to create some package and share this with you (or maybe create the
   Google Code project right away). There is similar framework (don't
   remember the name but can be found by Google ;-) ), which didn't
   really didn't do the job for me because it was pretty difficult to
   generate the reflection information that is needed (please correct me
   if I got that wrong). My approach uses GWT generators and annotations
   to specify which packages and which classes should participate in
   reflection information generation. I'm supporting similar
   functionality that java Class gives you with some modifications, but
   you can obtain annotations, get/set fields and even call public
   methods and create new instance in reflective way (but you need to be
   careful on what info you add because it could greatly enlarge your
   resulting JS code). I also have unit tests (of course) for bunch of
   stuff but it would require a lot of cleanup I guess.

   So if anyone is interested just leave a message ;-)

   --
   Honza Rames

   On 31 kvě, 16:20, Adolfo Panizo Touzon adolfo.pan...@gmail.com
   wrote:
Can somebody the function about de class Generator and all the similar
classes which is contained int he packpage com.google.gwt.core.ext,
   it´s
used for deferred binding?

Maybe if I want use reflection in my app, I must use these classes??

--
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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

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



Re: Project wizard creates a completely different MVP project from the what it has in the docs.

2011-06-07 Thread Deanna Bonds
Spring Roo will also do this.  It comes built in to the SpringSource Tool 
Suite - built from eclipse.

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



JSON Illegal token error

2011-06-07 Thread Kathiravan Tamilvanan
When i try to use requestfactory to retrieve a POJO from server side, i get 
this error. How do we debug this? The json returned from the server is the 
following 


{O:[
{P:
{primaryKey:2000,
ampliconLength:94,
assayNumber:1,
dnStrmSnpCapturePrimerTag:ACGTTGGATG,
downStreamSnpCapturePrimer:ACGTTGGATGTTAATCTCACTCACCAGAGC,
extendDir:R,
percentGc:52.9,
strand:1,
tm:50.1,
uep:TCACCAGAGCACCACTA,
uepConfidenceScore:97.3,
uepLen:17,
uepMass:5108.4,
uniplexAmpliconDesignScore:90.6,
upStreamSnpCapturePrimer:ACGTTGGATGGAACATAACTGGTTTGAGAC,
upStreamSnpCaptureTag:ACGTTGGATG},
O:UPDATE,T:com.sequenom.assaydesigner.client.request.AssayProxy,S:IjIwMDAi,V:IjAi}],
I:[[{T:com.sequenom.assaydesigner.client.request.AssayProxy,S:IjIwMDAi}]],S:[true]}


java.lang.IllegalArgumentException: Error parsing JSON: SyntaxError: 
Unexpected token ILLEGAL
at 
com.google.gwt.core.client.JsonUtils.throwIllegalArgumentException(JsonUtils.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.JsonUtils.safeEval(JsonUtils.java)
at 
com.google.gwt.autobean.shared.impl.StringQuoter.split(StringQuoter.java:36)
at 
com.google.gwt.autobean.shared.AutoBeanCodex.decode(AutoBeanCodex.java:520)
at 
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:613)
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.GeneratedMethodAccessor199.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)

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



R: Re: Huge data slowing down Celltable

2011-06-07 Thread federico
are you sure that the bottleneck is the display of the data??
if you are making rpc calls to get the 8000 data to display the critical 
poit could be the rpc deserialization. try to create random data on the 
client to check this.

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



Re: JSON Illegal token error

2011-06-07 Thread Kathiravan Tamilvanan
The problem is occuring due to the pojo field extendDir which is a char. 
And the value in the json array is extendDir:R. Isnt this supposed to be a 
single character string like extendDir:R. Is this a Bug?
Any ideas? 

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



Regular expression working in development mode but not in compiled code

2011-06-07 Thread Prashant
Hi,

I am using following regular expression

/|(/[a-zA-Z0-9]+[-]?[a-zA-Z0-9]+)+


it is working fine when I test it in development mode but when I compile the
code and use the compiled code for testing, it will not work  any idea
how do I fix it ?

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



Re: Problems using RequestFactory

2011-06-07 Thread Ryan McFall
For others who might see this message, I quickly discovered my
problem.  In the TagRequest class (which extends RequestContext), the
method getTags is declared to return a ListTag.  That should have
been ListITag, as ITag is the interface which extends EntityProxy.
The error message seems to indicate to me there is something wrong
with the Tag class, rather than the true source of the error.  Perhaps
the error message could have been different, but I place at least 90%
of the blame squarely on my own shoulders :-)

Ryan

On Jun 6, 2:02 pm, Ryan McFall mcfall.r...@gmail.com wrote:
 I am migrating an application which used Gilead as the go-between
 between Hibernate and GWT to use RequestFactory.  I am having a
 problem where the RequestFactoryGenerator doesn't want to generate a
 RequestFactory for my service.  The error I see in the Development
 Mode console is:

 [ERROR] [surveyeditor] - Invalid Request parameterization
 edu.hope.cs.surveys.dao.pojo.Tag

 I have tried simplifying Tag as much as possible - in particular, it
 used to implement java.io.Serializable, but now it does not.

 It's not clear to me what the possible reasons for the above error
 might be, so it's kind of hard to diagnose.

 Below are the relevant interfaces/classes.  Thanks in advance for any
 ideas.

 Ryan

 -
 package edu.hope.cs.surveys.dao;

 import com.google.web.bindery.requestfactory.shared.EntityProxy;
 import com.google.web.bindery.requestfactory.shared.ProxyFor;

 import edu.hope.cs.surveys.dao.pojo.Tag;

 @ProxyFor(Tag.class)
 public interface ITag extends EntityProxy {
         public Integer getTagID ();
         public String getTagText ();
         public String getOwner ();
         public boolean isPublic ();

         public void setTagID (int id);
         public void setTagText (String text);
         public void setOwner (String ownerName);
         public void setPublic (boolean isPublic);}

 -
 package edu.hope.cs.surveys.dao.pojo;

 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;

 import javax.persistence.Basic;
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
 import javax.persistence.Transient;

 import org.hibernate.Session;
 import org.hibernate.annotations.Type;

 import edu.hope.cs.surveys.dao.ITag;
 import edu.hope.cs.surveys.database.HibernateUtil;
 import edu.hope.cs.surveys.database.ISurveysDB;
 import edu.hope.cs.surveys.database.SurveysDB;

 @Entity
 @Table(name=Tags)
 public class Tag implements ComparableTag {

         private Integer tagID;
         private String tagText;
         private String owner;
         private boolean isPublic;

         public Tag () {
                 isPublic = true;
         }

         @Id
         @GeneratedValue(strategy=GenerationType.AUTO)
         public Integer getTagID() {
                 return tagID;
         }

         @Basic
         public String getTagText() {
                 return tagText;
         }

         @Basic
         public String getOwner() {
                 return owner;
         }

         @Column(name=IsPublic)
         @Type(type=edu.hope.cs.surveys.dao.pojo.YesNo)
         public boolean isPublic() {
                 return isPublic;
         }

         public void setTagID(int iD) {
                 tagID = iD;
         }

         public void setTagText(String tagText) {
                 this.tagText = tagText;
         }

         public void setOwner(String owner) {
                 this.owner = owner;
         }

         public void setPublic(boolean isPublic) {
                 this.isPublic = isPublic;
         }

         /**
          * Compares this tag to the tag iother/i based upon the
 Comparable
          * interface.  In this case the tag text values are compared.
          */
         @Override
         public int compareTo(Tag other) {
                 return tagText.compareTo(other.getTagText());
         }

         @Override
         public boolean equals(Object arg0) {
                 if (!(arg0 instanceof ITag)) {
                         return false;
                 }

                 ITag other = (ITag) arg0;

                 return this.getTagID() == other.getTagID();
         }

         /*  Methods associated with the request factory implementation  */
         @Transient
         public Long getId () {
                 return new Long(getTagID());
         }

         @Transient
         public Integer getVersion () {
                 return 0;
         }

         public static Tag findEntity(Long id) {
                 Session 

howto make line symbols other then squares in GWT charts

2011-06-07 Thread Armishev, Sergey
Hi,

In all GWT charts examples I see only square symbols on line graphs. Can
I setup circle or triangle instead?

 

-Sergey 

/PREBRspan 
style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366'
_BR 
This electronic message and any files transmitted with it containsBR
information from iDirect, which may be privileged, proprietaryBR
and/or confidential. It is intended solely for the use of the individualBR
or entity to whom they are addressed. If you are not the originalBR
recipient or the person responsible for delivering the email to theBR 
intended recipient, be advised that you have received this emailBR
in error, and that any use, dissemination, forwarding, printing, orBR copying 
of this email is strictly prohibited. If you received this emailBR
in error, please delete it and immediately notify the sender.BR
_ 
/SPANPRE

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



Re: How to set background color for button?

2011-06-07 Thread Ryan McFall
I believe you need to make sure that the rule in which you are
eliminating the background-image has a higher CSS priority than the
default one.  The rule for the default push-button which is setting
the background-image contains two class selectors, making it higher
priority than the rule you've written for .color-icon.

Ryan

On Jun 6, 3:05 pm, Lars Ruoff lars.ru...@gmail.com wrote:
 Hello,
 yes, i know, but the problem is that:
 ToggleButton has its predefined style gwt-Togglebutton or similar.
 That style defines a background-image for the button.
 In order to set a background color i need to get rid of the background
 image.
 So i defined a style
 .color-icon {
   height: 16px;
   width: 23px;
   background-image: none;
   background-color: #77;}

 and added it with
   button.addStyleName(color-icon);

 The size is taken into account, but not the background color.
 The image is still there.
 How can i get rid of the background image of the default style?

 On Jun 5, 4:44 pm, Piro pipik.ro...@gmail.com wrote:

  Use CSS to style buttons.

 http://code.google.com/intl/sk-SK/webtoolkit/doc/latest/DevGuideUiCss...

  On 4. Jún, 17:10 h., Lars Ruoff lars.ru...@gmail.com wrote:

   Hello,

   how to change the background color of a ToggleButton?
   I want to have ToggleButtons in various colours displayed on my page.
   The buttons are actually for choosing a color in the application.

   regards,
   Lars

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



Re: Regular expression working in development mode but not in compiled code

2011-06-07 Thread Thomas Broyer
I don't know if it's related, but you should IMO rework your regexp slightly 
to add determinism: the regexp process might have a hard time choosing 
whether an alphanum should continue to match the first [a-zA-Z0-9]+ or or be 
considered as a no hyphen case and match the second one: you need to 
unconditionally match the hyphen, but conditionally match the hyphen and 
following 'work'.

/|(/[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)?)+

Depending on how you use your regexp, you might want to only use the second 
part of the regexp, and replace the first part with a String#equals (or 
String#startsWith, or String#indexOf).

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



Re: Problems using RequestFactory

2011-06-07 Thread Thomas Broyer


On Tuesday, June 7, 2011 6:30:01 PM UTC+2, Hilco wrote:

 On 6 June 2011 11:02, Ryan McFall mcfal...@gmail.com wrote:
  @ProxyFor(Tag.class)
  public interface ITag extends EntityProxy {
 public boolean isPublic ();
 public void setPublic (boolean isPublic);

 I'm guessing these might be a problem. Firstly, normal boolean getters
 don't seem to work (i.e. is*, has*). This may have changed in GWT2.3,
 though (I haven't tried).

FYI, it has: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5902
 

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



Re: Problems using RequestFactory

2011-06-07 Thread Thomas Broyer


On Tuesday, June 7, 2011 9:56:10 PM UTC+2, Ryan McFall wrote:

 For others who might see this message, I quickly discovered my 
 problem.  In the TagRequest class (which extends RequestContext), the 
 method getTags is declared to return a ListTag.  That should have 
 been ListITag, as ITag is the interface which extends EntityProxy. 
 The error message seems to indicate to me there is something wrong 
 with the Tag class, rather than the true source of the error.  Perhaps 
 the error message could have been different, but I place at least 90% 
 of the blame squarely on my own shoulders :-)


Searching for the error message in GWT's code [1] which lead to this method 
[2], where you can see what types are checked: Simple values, like Integer 
and String, EntityProxy and ValueProxy return types, Collection, or Map.
But well, I an't find a way to make this message clearer without making it 
too long: invalid Request parameterization clearly means the type 
parameter is wrong, not what's *in* that type, but the type itself (i.e. the 
classes or interfaces it extends)

[1] 
http://www.google.com/codesearch?q=%22Invalid+Request+parameterization%22+package%3Ahttp%3A%2F%2Fgoogle-web-toolkit%5C.googlecode%5C.com
 
[2] 
http://www.google.com/codesearch/p#A1edwVHBClQ/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.javaq=%22Invalid%20Request%20parameterization%22%20package:http://google-web-toolkit%5C.googlecode%5C.coml=397

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



GWT and WebGL

2011-06-07 Thread Alberto Franco
Hi to everybody, I'm new to the group so I don't know if there are
other posts on the topic (I've made a quick search but i didn't found
anything). I have seen that there are few WebGL bindings for GWT but
will Google support WebGL inside the official GWT SDK? Since Google is
in the team behind WebGL I would think so, anyone knows?
Thanks in advance.

Alberto

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



Create own WYSIWYG-Editor (like RichTextEditor): Problems to get selection

2011-06-07 Thread Cornelius
Hi!

I want to create my own Editor with GWT. Unfortunately, I am not very
familiar with JavaScript but in Java.

I've started as follows: I've created a class TextArea that extends
FocusWidget. As element I've set a DivElement. Than I've set
contentEditable true
(getElement().setPropertyString(contentEditable, true);)

That works fine. But now, I want to acquire the selected text or even
better the paragraph element the cursor actually is in to set the CSS
class of this element.

The page (http://perplexed.co.uk/1020_text_selector_jquery_plugin.htm)
describes a JavaScript function that gives the DOM object actually
selected. It works directly in a HTML page but not as native function
in GWT (Caused by: com.google.gwt.core.client.JavaScriptException:
(TypeError): Cannot read property 'parentNode' of null) and I have no
idea how to use it in GWT.

I hope anyone can help me to define an Java method in GWT which gives
me the p child element of the editable div.

If you have some questions or my explanations are too confused feel
free to write it.

Thanks in advanced.

Cornelius

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



GWT and IBM WebSphere Portal Server

2011-06-07 Thread Gavin Siller
Hi,

I am wondering if there any plans to make integrating  GWT into
WebSphere Portal (and any other JSR-286 compliant Web Portal) more
standardized (much like the JSF portlet bridges out there)?

Are there any best practices, patterns, documentation in this regard?
(I cannot find much on the topic).

Kind regards

Gavin

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



Re: Insert addthis button in GWT project

2011-06-07 Thread Kris
Did you try putting this in the main HTML file and toggling it via GWT. 

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



Referenced Projects for GWT

2011-06-07 Thread Olli
Hi all,

I'm just doing my first developments with the GWT

I'm using Eclipse with the plugin. The first typically Hello World
example works fine and did some tests with RPC.

Now I want to use an other project as reference. In this project I
have some implementation of business logic already in a productive and
stable version. So I added the project to the references of the GWT
project and want to use some factories of the referenced project in
GWT.

This always results in an error message:
No source code is available for type ... did you forget to inherit a
required module?

I think it should be possible to use some ready implementations for
the frontend project in GWT.

Can anyone help, please?

Thanks in advance
Olli

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



Upgrade GWT 1.7 to GWT 2.3

2011-06-07 Thread Rajesh Waran
Please share any experience regarding the upgrade.

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



Re: GWT and WebGL

2011-06-07 Thread A. Stevko
Quick search turned up
http://code.google.com/p/gwtgl/
http://code.google.com/p/gwtgl/

On Tue, Jun 7, 2011 at 1:19 PM, Alberto Franco afranc...@gmail.com wrote:

 Hi to everybody, I'm new to the group so I don't know if there are
 other posts on the topic (I've made a quick search but i didn't found
 anything). I have seen that there are few WebGL bindings for GWT but
 will Google support WebGL inside the official GWT SDK? Since Google is
 in the team behind WebGL I would think so, anyone knows?
 Thanks in advance.

 Alberto

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




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



Re: Generics in deferred binding

2011-06-07 Thread Adolfo Panizo Touzon
Hello,
I think what you wanted to explain is this:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b43716c6b0cb2d62?pli=1
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b43716c6b0cb2d62?pli=1
From what I see, is about building a sub-interface for each class who wants
access togeneric, isn´t it??

Do you know any way to use T and T can take several values ​​(car.class,
bus.class for example(which is what I can not understand))?

2011/6/7 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Ok. I understand.

 But when you said *declare a sub-interface that binds the type
 parameters*.

 Can you show me a simple example?? I don´t know the way to create a one
 generic sub-interface (create one interface for each type is simple, but one
 generic interface to bind all the types...¿?).

 Thanks a lot.

 2011/6/7 Magno Machado magn...@gmail.com

 Here's an exemple:
 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumns

 https://bitbucket.org/magnomp/gwtpower/wiki/CellTableColumnsHowever, as
 Thomas already said, you can't inspect the generic arguments passed directly
 into GWT.create(). That is, given:
 GWT.create(FooBar.class), you can't see Bar. You can, however, inspect
 the generic arguments passed on the superclass or implemented interfaces


 On Tue, Jun 7, 2011 at 8:31 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Before you ask a question.
 If you don´t mind, show me a class that implements the interface Columns
 , and the corresponding call GWT.create (class that implements Columns
 );

 My specific question is I don´t know the form to assign the genereic
 type to the interface [interface columsT]

 How can I specify that T is Car.class or Bus.car (for example)??.

 Thanks!


 2011/6/7 Magno Machado magn...@gmail.com

 Check out what I did here

 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.java


 https://bitbucket.org/magnomp/gwtpower/src/76014ca46007/src/main/java/org/gwtpower/celltable/columns/rebind/ColumnsGenerator.javaI
 think what you want is lines 43/44


 On Tue, Jun 7, 2011 at 4:52 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno, thank you very much foir your answer.

 So, ohter quickly question.

 Do you (or anybody) know any form to use generics in deferred binding?

 Thanks.

 2011/6/6 Magno Machado magn...@gmail.com

 The class that your generator return doesn't exist in the project, it
 is always created on the fly during devmode or at compile-time

 You must have, however, a marker class/interface which is what will
 trigger the generator (it's the type that you will pass to GWT.create)




 On Mon, Jun 6, 2011 at 7:53 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi Magno,

 but,  that subclass I must have created previously, no?
 That is, in my project I have to have one *nameOfSubClass*.java with
 the name of this subclass, no?



 2011/6/6 Magno Machado magn...@gmail.com

 You can't modify a class, but your generator can generate a subclass
 and override some method if they're not final

 On Mon, Jun 6, 2011 at 7:04 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 Hi,

 there any way to add code to an existing class when I'm working on
  a Generator?

 Thanks!

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 You received 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 

Re: Overnight chrome extension with gwt: Gmail Instant Browsing

2011-06-07 Thread Alain Ekambi
works great
thank you

2011/6/7 Gal Dolber gal.dol...@gmail.com

 Google forgot the sharing part of the chrome store.
 Try this link:
 https://chrome.google.com/webstore/detail/fpjmoncpngjdjjmdehlfcljjpmfhkpja?hl=en


 On Tue, Jun 7, 2011 at 11:49 AM, Alain Ekambi jazzmatad...@googlemail.com
  wrote:

 Error Unknow application

 2011/6/7 Gal Dolber gal.dol...@gmail.com

 Here is a small extension I did last night:
 https://chrome.google.com/webstore/detail/fpjmoncpngjdjjmdehlfcljjpmfhkpja
 I love the new twitter app on ipad, in special the internal browser, so I
 copied it to work on gmail.
 Enjoy!

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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/


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




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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



  1   2   >