How to authenticate with Google Accoutnt ?

2012-10-16 Thread YinYanSI
How can we create user authentication with goolge accout with mgwt or gwt-phonegap ? I would like to use purge java api not phonegap javascript api. I would like to create activity with username and password to login user with google accout that user already has. I woruld also get user info

Re: HTML without a DIV

2012-10-16 Thread Manuel Carrasco Moñino
You can enhance any widget or any gwt html portion of your widget using gwtquery: Widget mywidget = new Button(click-me); GQuery.$(mywidget).append(h1hi/h1); RootPanel.get().add(mywidget); Note that gquery is a pure gwt library, it is lightweight and has not external dependencies. -

Re: Grid with td rowspan=2

2012-10-16 Thread Manuel Carrasco Moñino
you can use different ways to create a new table in gwt: - Uibinder: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder div table ui:field=mytable /table /div /ui:UiBinder @UiField TableElement mytable; - HTML HTML html = new

Re: How to (locally) disable method pruning by the GWT compiler?

2012-10-16 Thread erik
Thank you for your thoughts, Manuel! I've tested this some more yesterday and found out that using gwt-exporter isn't enough. The compiler will still prune any methods and class that doesn't seem to be used even if it was exported to JS. The real problem here is that the compiler has strict

Re: GWT Serialization

2012-10-16 Thread Manikanda raj S
CORS don't work with GWT Servlets, only with RequestBuilder. As i said before i want to be able to separate the client and server code to two different web servers. And i don't want to be redoing my code all over again. Besides GWT's Serialization seems to be pretty Good. So Why replace it ,

Re: GWT Serialization

2012-10-16 Thread Thomas Broyer
On Tuesday, October 16, 2012 8:58:49 AM UTC+2, Manikanda raj S wrote: CORS don't work with GWT Servlets, only with RequestBuilder. There's no reason it wouldn't work. What did you try? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Re: GWT 2.5 RC2 Is Here!

2012-10-16 Thread Dimitrijević Ivan
The problem is that there is no documentation and/or tutorial at all about drag drop support. There is only one session from Google IO 2011 conference http://www.google.com/events/io/2011/sessions/gwt-html5-a-web-developers-dream.html On Friday, October 12, 2012 11:11:52 AM UTC+2, Thomas

Re: GWT 2.5 RC2 Is Here!

2012-10-16 Thread Thomas Broyer
On Tuesday, October 16, 2012 9:55:16 AM UTC+2, Dimitrijević Ivan wrote: The problem is that there is no documentation and/or tutorial at all about drag drop support. It's a thin wrapper around HTML5's DnD API, so any documentation and/or tutorial about HTML5 DnD (e.g.

Re: Grid with td rowspan=2

2012-10-16 Thread Andrei
Each row in a CellTable or DataGrid represents an object. If you create a cell with rowspan=2, it would break all the logic. At this point you will have to build your own custom table from scratch, including your own DataProvider, SelectionModel, SortHandler, etc. Why do you need it? I am

Re: GWT 2.5 RC2 Is Here!

2012-10-16 Thread Dimitrijević Ivan
I have to disagree with you. In order to use DD you must set dragable property to true, uset setData method, and so forth... On Tuesday, October 16, 2012 10:13:35 AM UTC+2, Thomas Broyer wrote: On Tuesday, October 16, 2012 9:55:16 AM UTC+2, Dimitrijević Ivan wrote: The problem is that

Re: How to intercept this event : A click on a ScrollPanel's scrollbar ?

2012-10-16 Thread Jens
There is no onScrollbarClick event or similar. For scrollable DIV's you could listen for click events and then calculate if the click has happend inside the rectangle of the scrollbar. Not sure if this works with all browsers. See:

Re: GWT Serialization

2012-10-16 Thread Manuel Carrasco Moñino
Actually gwt RPC uses requestbuilder as its low-level transport, so cors works with rpc without any problem. Here you have an example of cors with gwt rpc. - In the client side you have to change the RPC service url GreetingServiceAsync greetingService = GWT.create(GreetingService.class);

Re: SimplePager last page issue

2012-10-16 Thread dafintrash
Your tip could use some clarification as the SimplePager class doesn't have the following methods: setPrevPageButtonsDisabled, setNextPageButtonsDisabled, setFastForwardDisabled. On Monday, August 27, 2012 4:11:25 AM UTC+3, Juan Pablo Gardella wrote: Hi, There is a bug with SimplePager that

Are distributed GWT builds realistic?

2012-10-16 Thread Logan
Are distributed GWT builds realistic? Everything that I have read about distributed builds seems to be about two years old. To me that shows that distributed builds are not gaining traction because they are too complicated to implement or ineffective. All these date from 2010:

Re: GWT Serialization

2012-10-16 Thread Manikanda raj S
How can i actually set Response Headers in GWT Servlets ..? If i can have normal Servlets, i can have a Filter doing that. Besides i want to run client and server code in different webservers, client code(Java Script,HTML) in a apache servers in my customer's location and Servlets in my own

Re: GWT Serialization

2012-10-16 Thread Manikanda raj S
Thanks for the Code Manolo. But i would also like to separate the code as of now into GWT Client part as one and Servlet Part as other. One more thing i want GWT Serialization externalized is, if we can have it externalized, then we can probably use the same for Android Development too.If we

Re: How to authenticate with Google Accoutnt ?

2012-10-16 Thread Tomek Kańka
W dniu wtorek, 16 października 2012 08:09:15 UTC+2 użytkownik YinYanSI napisał: How can we create user authentication with goolge accout with mgwt or gwt-phonegap ? I would like to use purge java api not phonegap javascript api. I would like to create activity with username and

Re: How to (locally) disable method pruning by the GWT compiler?

2012-10-16 Thread Manuel Carrasco Moñino
On Tue, Oct 16, 2012 at 8:42 AM, erik m8r-y3l...@chammy.info wrote: Thank you for your thoughts, Manuel! I've tested this some more yesterday and found out that using gwt-exporter isn't enough. The compiler will still prune any methods and class that doesn't seem to be used even if it was

Re: SimplePager last page issue

2012-10-16 Thread Juan Pablo Gardella
Hi, See http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/SimplePager.javathese methods are defined in a super class. Juan 2012/10/16 dafintrash dafintr...@gmail.com Your tip could use some clarification as the SimplePager class

Split points vs. separate entry point modules for reducing load time

2012-10-16 Thread bvt
Hi, We're developing a fairly large GWT web application and would like to minimize the initial load time and the size of the scripts users will have to download on first load. The two main approaches for achieving this goal this seem to be: 1. Using code splitting (we're likely to have

Re: GWT Serialization

2012-10-16 Thread Thomas Broyer
On Tuesday, October 16, 2012 11:16:35 AM UTC+2, Manikanda raj S wrote: How can i actually set Response Headers in GWT Servlets ..? If i can have normal Servlets, i can have a Filter doing that. GWT *are* normal servlets; you can very well use a Filter to add the appropriate Allow-Origin

Re: GWT Serialization

2012-10-16 Thread Manuel Carrasco Moñino
Why do you say RPC servlets are not normal servlets? they are. You can control several things in your service servlet using the methods thought for that, for instance to add customized headers you can do: @Override protected void onAfterResponseSerialized(String serializedResponse) {

Re: GWT Serialization

2012-10-16 Thread Manuel Carrasco Moñino
RPC client part is not thought for java, although there are some libraries to handle it like gwt-syncproxy. Otherwise, RF can be used in any JVM like android, in fact request factory stuff is out of the gwt namespace. I dont think trying to handle gwt-rpc with xcode is a good idea. What I do

Re: GWT Serialization

2012-10-16 Thread Thomas Broyer
On Tuesday, October 16, 2012 3:36:44 PM UTC+2, Manikanda raj S wrote: Thanks for the Code Manolo. But i would also like to separate the code as of now into GWT Client part as one and Servlet Part as other. This is not a problem, provided the shared classes (RPC interfaces and the objects

Re: Split points vs. separate entry point modules for reducing load time

2012-10-16 Thread Manuel Carrasco Moñino
#1 is the best ! #2 will make the user download much more js, think that you need a different html for each page, and each single module will duplicate a lot of gwt core code (java.lang, collections, etc). I've used kind of #2 approach for another scenario: SEO friendly webs, I mean, webs

Re: GWT Serialization

2012-10-16 Thread Jens
Correct me if I am wrong. You have a GWT application up and running on your application server (jetty, tomcat, or similar) and now you want to move your compiled app (HTML/Javascript) to an external web server on a different domain/host. To do so you have two options: 1.) Enable CORS on your

Re: GWT Serialization

2012-10-16 Thread Manikanda raj S
Thanks Guys, it's been really a lot of help here. I will definitely try these things. On Tuesday, October 16, 2012 8:20:02 PM UTC+5:30, Jens wrote: Correct me if I am wrong. You have a GWT application up and running on your application server (jetty, tomcat, or similar) and now you want

Re: GWT 2.5 RC2 Is Here!

2012-10-16 Thread Milan Cvejic
I must say that documentation is by far worst part of GWT by my opinion. There is no clear documentation on advanced usage of editors, validation, UiBinder and so on... Yep, someone can go and see how some things are implemented in source, but sometimes it is not straight forward and difficult

Issue with TabLayoutPanel in 2.5.0 RC1 RC2

2012-10-16 Thread manoj kumar
We have code that uses TabLayoutPanel in UIBinders and selects the tab programatically. This code was working fine in 2.3, but we are getting Exceptions since 2.5.0 RC1 ( RC2). Has anybody seen this before or solved this. Caused by: java.lang.AssertionError: Index out of bounds at

Re: How to intercept this event : A click on a ScrollPanel's scrollbar ?

2012-10-16 Thread regnoult axel
Hi Jens, ...but, maybe there is an alternative, I mean, after the click happened, ma page scrolls, so is it possible to intercept this scroll event ? Indeed, what I need is to detect 2 cases that are the same kind of event, a SCROLL EVENT : - I have scrolled using the mouse inside the

keyboard shortcuts

2012-10-16 Thread vanessa vanessa
Hi all, I have to implement specefic keyboard shortcuts to my web application. And I want to ask if GWT provide interfaces to deal with such a requirement. If it's the case what are the limits of these shortcuts ? The compatibility with some browsers is an important point. Any help would be

Sending a shared object or ValueProxy or non-proxy object in RequestContext

2012-10-16 Thread Arash
The dilemma started when I needed to bundle up some client side information in a utility object via RequestContext to my backend services. This information will be needed to properly fetch the entities I need. Instead of having five different Long ids, I wanted them to be bundled up in an

Re: How to intercept this event : A click on a ScrollPanel's scrollbar ?

2012-10-16 Thread Jens
And ScrollPanel.addScrollHandler() does not work for both cases? -- 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/-/NxR9PCjpH60J. To post to

UnsatisfiedLinkError in DevMode

2012-10-16 Thread Tom Watson
I'm developing a Grails app with GWT functionality using GGTS 3.1.0, Grails 2.1.0, GWT 2.4.0 and the Grails DTO-0.2.4 plugin. When I run the app (either using run-app or with the embedded vFabric tc Server webserver) and access it directly from the browser, it works fine. But, when I access it

Intercept response from remote services

2012-10-16 Thread jdevelop
Hello! Is there any simple way to intercept response from all registered remote services on client side? I need to check if certain HTTP headers contain pre-defined values, and if not - then send events/ redirect to another page. I don't want to throw exceptions on server-side and handle them in

Re: Intercept response from remote services

2012-10-16 Thread Jens
You can cast your GWT-RPC service interface into ServiceDefTarget and set a custom RpcRequestBuilder. Your custom RpcRequestBuilder should overwrite doSetCallback() and wrap the provided RequestCallback with a custom one. In RequestCallback.onResponseReceived() you have access to HTTP headers.

how and where does GWT define the mechanism of xml-2-widget converting mechanism?

2012-10-16 Thread wahaha
for example,in a ui.xml file,we use g:at and g:label within a g:AbsolutePanel tag,and use g:anyWidget or htmltag in a HTMLPanel tag. so where does GWT define the relationship of xml-2-widget converting when injecting? -- You received this message because you are subscribed to the Google

[gwt-contrib] Re: Remove the Trying to sink unknown event type restriction in DOMImplStandard.sinkBitlessEventImpl() (issue1854803)

2012-10-16 Thread dtrebbien
http://gwt-code-reviews.appspot.com/1854803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: Subversion tag for 2.5.0-rc2?

2012-10-16 Thread Unnur Gretarsdottir
Yes - sorry - I left on vacation soon after cutting the release - I'll set up a tag today. On Sun, Oct 14, 2012 at 2:33 PM, Thomas Broyer t.bro...@gmail.com wrote: I believe it'll be created later. It should be the same as /releases/2.5 for now. On Sunday, October 14, 2012 8:13:05 PM