ANN: SL now at Google Project Hosting

2011-01-17 Thread George Georgovassilis
Dear all, The SL, formerly hosted at Sourceforge, has been split from the Widget Library and moved to Google Project Hosting [1]. BR, G. [1] https://code.google.com/p/gwt-sl/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-17 Thread Glenn Simon
Thanks for trying to help, guys, but after modifying and checking the string with JsonUtils, trying com.google.gwt.json.client.JSONParser (tells me the code is unavailable and fails to load my app), and reading Google docs 'til my eyes hurt I can't for the life of me figure out how to make JSON

Re: is it possible to create a custom widget in UiBinder that can contain unknown number of child elements

2011-01-17 Thread Thomas Broyer
Yes, either having MyContainer implement HasWidgets, or using @UiChild methods in your MyContainer. -- You received 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

Problem with HTTPSession in GWT

2011-01-17 Thread Sebe
Hello everyone I'm new in GWT ... I would like to implement sessions in my Web App Basically I want that a session starts at the click of a button (handle an event) and ends at the click of another button (other handle an event). It's possible? Someone please, can you tell me how to do it step

Share a client-side singleton across modules?

2011-01-17 Thread Hamlet D'Arcy
I would like to share a client singleton across GWT modules. Is this possible? If so, how? I have several modules that need to share an EventBus (SimpleEventBus) instance. Creating a singleton in GWT Java code and having all modules inherit from the common module did not work. Each of the root

Re: GWT Session Handling - user HTTP Session or own solution?

2011-01-17 Thread Miroslav Genov
Sounds well. Also you can use a cache layer over your database to slow down the latency of your database requests. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com.

Re: com.google.gwt.user.client.rpc.SerializationException for custom object array

2011-01-17 Thread Owen Powell
I'm having the same problem as Mona, except on the client-side. Via RPC, - sending an ArrayListString works. - sending a single MyObject works. - sending an ArrayListMyObject does not work. I get: com.google.gwt.user.client.rpc.SerializationException at

Re: Best way to integrate GWT with existing Spring services?

2011-01-17 Thread Daniel Francisco
Hi Paul, I have to say that I was making these questions without doing a proper research and study of the GWT documentation. I wanted to go so fast. It's my fault. Now I have it quite clear. I've already started the project using mvp4g as the MVP framework, and gwt-dispatch to communicate with

Re: Generated Maven pom.xml does not add GWT project natures

2011-01-17 Thread feuse8
Have you already found any solution for this? On 2 Jan., 20:56, Cheng Lee cheng@gmail.com wrote: Hi GWT gurus, I'm generating an Eclipse project using webAppCreator. The project is created but the pom.xml does not contain the appropriate GWT project nature, meaning the application can't

Code editor Using GWT

2011-01-17 Thread ravi
Hi, I was planning to build a code editor using GWT , An editor which can compile and execute Java,C++,C code in the browser only.Have heard that we can compile code from a remote location and return the value to browser .Is it possible,if yes please give me starting point. Regards, Abhishek

Boost Extensibility and Simplify Maintainability of Web Applications: Proposals for Google Web Toolkit Plug-in Architectures

2011-01-17 Thread Ingo Jaeckel
Hello everyone I wrote a short article proposes a plug-in management architecture for GWT/AppEngine applications, see http://honeycrm.googlecode.com/files/BoostExtensibilityAndSimplifyMaintainabilityOfWebApplicationsProposalsForGoogleWebToolkitPlugInArchitectures.pdf. Now, I would like to invite

onKeyPress called twice on a single keypress

2011-01-17 Thread . .
Hi, i am writing a customized suggestionBox which works on RichTextArea. On debug, as i press a single key on keyboard, it calls the SimpleEventBus.class and the handlers ArrayList is filled with 2 handlers causing the onKeyPress method to be called twice. anyone nothiced the same? i am using

Who handles UI rules...the Activity?

2011-01-17 Thread Jeroen Wolff
Hi, i try to figure out where the decision logic is programmed when a user answers a question via a radio-button. I am designing an form application and want to know where to put al the decisions rules. For example: - a user selects a radio button and based on that click a extra question will be

Re: Share a client-side singleton across modules?

2011-01-17 Thread Raphael André Bauer
On Mon, Jan 17, 2011 at 10:49 AM, Hamlet D'Arcy hamlet...@gmail.com wrote: I would like to share a client singleton across GWT modules. Is this possible? If so, how? I have several modules that need to share an EventBus (SimpleEventBus) instance. Creating a singleton in GWT Java code and

Re: How can I move position of tab headers ?

2011-01-17 Thread Boris Lenzinger
A simple solution : margin-left: 100px; will make the job. Thank you for your answer ! Boris 2011/1/16 Y2i yur...@gmail.com This recent discussion may help

Re: Exception falling through catch() in JSNI

2011-01-17 Thread George Georgovassilis
Hello Sanjiv, Thanks for the pointer. I had a similar suspicion and thought that GWT.setUncaughtExceptionHandler would install the IE hook, but it didn't. Now, the nasty part with this type of exception handling is that it essentially handles the error outside of the context it appeared in,

CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU

2011-01-17 Thread vishal kumar rai
Hello, We are delighted to inform you that *CodeFest*http://www.itbhu.ac.in/codefest/ * http://www.itbhu.ac.in/codefest*, the annual *International online coding festival* of *Computer Engineering Society, IT-BHU*, has been unveiled. CodeFest is a unique fest wherein concepts of

CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU

2011-01-17 Thread vishal kumar rai
Hello, We are delighted to inform you that *CodeFest*http://www.itbhu.ac.in/codefest/ * http://www.itbhu.ac.in/codefest*, the annual *International online coding festival* of *Computer Engineering Society, IT-BHU*, has been unveiled. CodeFest is a unique fest wherein concepts of mathematics,

Re: com.google.gwt.user.client.rpc.SerializationException for custom object array

2011-01-17 Thread Owen Powell
OK, figured out the problem. I had a CustomMyObject extends MyObject that was included in the ArrayList and was not serializable. ~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

Re: Created project, but there is no Build.xml

2011-01-17 Thread nacho
Try with this build.xml When you compile gwt first your java classes are compiled. ?xml version=1.0 encoding=utf-8 ? project name=MyProject default=war basedir=. !-- Configure path to GWT SDK -- property name=gwt.sdk location=/path/to/gwt-sdk / !-- SWT on Mac requires the

Re: Created project, but there is no Build.xml

2011-01-17 Thread amarasat
Thanks a lot Nacho, that helped!! On Jan 17, 9:08 am, nacho vela.igna...@gmail.com wrote: Try with this build.xml When you compile gwt first your java classes are compiled. ?xml version=1.0 encoding=utf-8 ? project name=MyProject default=war basedir=.   !-- Configure path to GWT SDK --  

Re: Created project, but there is no Build.xml

2011-01-17 Thread nacho
;) -- You received 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,

Link ClickHandler doesn't fire

2011-01-17 Thread julio
Hi, I'm using GWT 2.1.1 and I created a simple li widget in this way: public class LIWidget extends Widget { public LIWidget() { super(); setElement(Document.get().createLIElement()); } public void addLink(String url, ClickHandler handler) {

Re: Boost Extensibility and Simplify Maintainability of Web Applications: Proposals for Google Web Toolkit Plug-in Architectures

2011-01-17 Thread Ingo Jaeckel
Hello everyone after discussing the topic with a college, I realized I have to explain the context of my proposal. There is no application independent mechanism in GWT to dynamically load extensions. Consequently, GWT applications either do not support it or implement plug-in loading on their

GWT - Update Widget when java.util.List changes

2011-01-17 Thread Vrto
Hello, I am new here and I came to seek for advices from more experienced GWT programmers. Here is my problem: I am making AsyncCalls and they fill some collections (java.util.List) with data. These callbacks take quite a time, so by the time collections are filled, UI is fully loaded. However,

Documentation on Roo-generated MVP Class Files

2011-01-17 Thread Cengiz Öner
Hello all, When Roo is used to create a GWT project, class files are generated in MVP pattern. However, more is generated than what is described in http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html. Is there any detailed documentation on these roo-generated MVP

gwt mvp sessions

2011-01-17 Thread ernesto.reig
Hello everybody. I´m trying to develop my first gwt mvp application following the directions given in http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html I want to make a login page where the user has to log in before entering to the main application view. Anyway, the thing

Open disclosure panel cause content overlapping.

2011-01-17 Thread Zhongxian Gu@UCDavis
Hi all, The problem of mine is, I am using several disclosure panels together to show and hide some contents. I put the several disclosurePanels vertically aligned. The problem is that when openning one disclosurePanel, the contents shows up and overlap with the below disclosurePanels, instead of

Checking User activity on browser

2011-01-17 Thread saket kumar
Hi All, Is there a way I can check if the user is active on the GWT browser page i.e. if he is scrolling,clicking, tabbing etc. ? I basically need a global listener. Thanks in advance -- Regards, Saket Kumar +91 9811139807 -- You received this message because you are subscribed to the

Data not refreshed after an insert or update

2011-01-17 Thread Bertrand
Hi, I'm currently developing a small application with GWT + GAE. I have a first entity Operation which contains another entity Category as a property. With GWT, I use a CellTable to display all my Operations and it works fine. In this celltable, I use a SelectionCell in order to change the

Reading a file in a GWT-written Gadget

2011-01-17 Thread Stephen
I'm trying to read a .txt file into my Gadget using RequestBuilder, but when I call .getText() on the Response, I don't get any actual text. The goal is to have the string returned by .getText() contain all the text in that file. I call: // Retrieve the file data

Re: Generated Maven pom.xml does not add GWT project natures

2011-01-17 Thread Luca Morettoni
2011/1/2 Cheng Lee cheng@gmail.com: Hi GWT gurus, I'm generating an Eclipse project using webAppCreator. The project is created but the pom.xml does not contain the appropriate GWT project nature, meaning the application can't be launched as Web Application because the Project does not

MVP calls to server

2011-01-17 Thread ernesto.reig
Hello everybody. I would like to the place from where I have to make the server calls in MVP pattern. I´ve been following the guidelines given in http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html I think I have to make the calls from within Activity´s classes, but

using one service across multiple modules

2011-01-17 Thread sennz
Hi, I am new to GWT and I decided to try to create a simple application that could do the following things: - show all existing users in an html page (ListUsers.html) - create a new user (NewUser.html) I used the following approach to create the app: 1. created a GWT project in Eclipse under the

Google Earth JSNI Help?

2011-01-17 Thread Daivd Lamm
Hi guys, I am working on a GWT project that when the application starts up, Google Earth is automatically loaded onto the page. After that, I want it that the user clicks a button that says enable polygon drawing, the application will allow the user to be able to draw polygons on Google Earth. I

Error when initiating an rpc call with custom class object

2011-01-17 Thread macs
Hello, I have requirement for an application with GWT front end, spring based middle ware and hibernate based persistence. I am using the below configuration for each of these - GWT - 2.1 Spring - 3.0 Hibernate - 3.5.6 My service interface extends the RemoteService and is annotated with

Building Testable Applications in Google Web Toolkit (GWT)

2011-01-17 Thread Geoffrey Wiseman
I've been polishing my thoughts on testing and GWT for a while, but I've finally posted them to the Codiform blog: http://blog.codiform.com/2011/01/building-testable-applications-with.html Those of you who've been using GWT for a while and come from a developer-test-automation (TDD or otherwise)

Re: RequestFactory mapping

2011-01-17 Thread Patrick Cailly
My problem with the test code I' written so far is that I expected the mapping of RequestFactory to instantiate (automaticaly ) the services and it doesn't . It seems that there is always som piece of additional mapping to get the services loaded Am I wrong Patrick - Original Message

GWT Validation Framework

2011-01-17 Thread SVR
Has anybody used the GWT Validation Framework based on the JSR-303http://code.google.com/p/gwt-validation/ Can you please provide your thoughts on its usefulness and can you please point to some useful links on its usage with examples. thanks -- You received this message because you are

Re: The web.xml file does not exist WEB-INF /FareScore/war -Google Web App Problem

2011-01-17 Thread Deepak Singh
If it is not there, u need to create it manually. On Fri, Jan 14, 2011 at 10:48 AM, zixzigma zixzi...@gmail.com wrote: you need to create one: if you use GWT Eclipse file, it creates one for you. here is GWT tutorial on a sample app :

DynatableRf and Maven UnCaughtException

2011-01-17 Thread Patrick Cailly
As I run the DynatableRf sample form Eclipse I tried to deploy It ( complile with maven ) adding a dependeny to javax.validation 1.0.0.GA mvn package without error : but un Uncaught Exception when delpoyed in tomcat I had to trick maven by using a local dependency to

Re: Link ClickHandler doesn't fire

2011-01-17 Thread Thomas Broyer
On Monday, January 17, 2011 4:02:08 PM UTC+1, julio wrote: getElement().appendChild(a.getElement()); event handlers are bound when the *widget* is *attached* (i.e. somehow its onAttach method is called). In short, never use getElement() unless you know what you're doing (particularly when

Re: GWT External JARs and use on the Client Side

2011-01-17 Thread Eric
On Jan 14, 3:17 pm, Ben Imp benlee...@gmail.com wrote: And, as a minor addendum, the code in those jars can only use the parts of the JRE that GWT has implemented. Hence why I cannot have the Apache commons utils on the client, even though the source is available. There is a project on

Re: RequestFactory mapping

2011-01-17 Thread Thomas Broyer
On Tuesday, January 18, 2011 4:38:40 PM UTC+1, coelho wrote: My problem with the test code I' written so far is that I expected the mapping of RequestFactory to instantiate (automaticaly ) the services and it doesn't . It seems that there is always som piece of additional mapping to

Re: DynatableRf and Maven UnCaughtException

2011-01-17 Thread Thomas Broyer
RequestFactoryServlet needs both javax.validation and org.json (and if you want to use bean validation, then you also need an implementation for javax.validation, such as Hibernate Validator). If you don't have a validator, you'll have a log record at startup that it cannot create a validator,

GWTUpload and 2GB files across DIFFERENT browsers

2011-01-17 Thread omsrobert
FireFox and IE have 2GB limits on the file size that can be uploaded to a server whereas Chrome does not have this limit. Does GWTUpload work around this limitation in FF + IE? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

GWT Developer plugin For IE installation problem

2011-01-17 Thread othman
Hi there, I'm using a windows 7 (32 bit) box with IE8 and i'm having issues installing GWT Developer plugin For IE. I get the following error message: Installer download failed. Error code = 0x80072efe the installer stays stuck at the downloading plugin stage. i've made sure my windows 7

Re: Link ClickHandler doesn't fire

2011-01-17 Thread julio
Hi Thomas, yes you are right, in that case my widget is out of sync with the DOM. do you mean to replace this: getElement().appendChild(a.getElement()); with something else? If it's so how? I can't find any API for that case (not even this.addWidget(...)) Thanks, Julio On Jan 17, 3:55 pm,

JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Andy_W
Hi, I am trying to decide whether to use GWT-RPC or JSON for a new project. We are using a full Java stack (Spring, Hibernate etc), so most people would say it's a no brainer to use RPC. However, one of things I did like about JSON was being able to hit a URL, without loading up the UI, and then

Re: gwt mvp sessions

2011-01-17 Thread ernesto.reig
Any comments please? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

Re: gwt mvp sessions

2011-01-17 Thread junaid
You need to put session code in server side if you know the basics of session ,below code would be helpful HttpSession session; session= getThreadLocalRequest().getSession(*true*); *save value in session:* session.setAttribute(myuser, user); [ myuser-- name of the session ] [user- any

Re: Link ClickHandler doesn't fire

2011-01-17 Thread Ian Bambury
Something like this? import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.RootPanel; public class App implements

set connectionTimeout for GWT 1.5.2 embedded Tomcat

2011-01-17 Thread eolivier
Hi All, Does somebody know a way to override connectionTimeout in GWT embedded Tomcat 1.5.2 ? I know how to do it in standard Tomcat, but I don't find this information for GWT embedded Tomcat. Thank you, Emmanuel. -- You received this message because you are subscribed to the Google Groups

Re: GWT Validation Framework

2011-01-17 Thread Miroslav Genov
You can take a look into DynatableRf example that comes with the SDK. -- You received 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: GWT Validation Framework

2011-01-17 Thread SVR
I dont see it using the gwt validation framework. do u mean a later version / beta? On Mon, Jan 17, 2011 at 1:57 PM, Miroslav Genov mge...@gmail.com wrote: You can take a look into DynatableRf example that comes with the SDK. -- You received this message because you are subscribed to the

Re: Google Earth JSNI Help?

2011-01-17 Thread Andy
Hi David, I suspect that you aren't getting much help because there are a bunch of issues with your code and it would take a while to identify them all and produce a working example. Here are a few things that might get you going in the right direction: 1) References to globals like

Re: GWT Validation Framework

2011-01-17 Thread Nick Chalko
On Mon, Jan 17, 2011 at 7:43 AM, SVR svr...@gmail.com wrote: Has anybody used the GWT Validation Framework based on the JSR-303http://code.google.com/p/gwt-validation/ Can you please provide your thoughts on its usefulness and can you please point to some useful links on its usage with

Re: gwt mvp sessions

2011-01-17 Thread Y2i
There are many ways to implement logins, depending on the server side you use. If you use servlets then the servlet spec will guide you: http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html Look at login-config/, auth-method/, realm-name/, security-role/, security-role/ tag

Re: GWTUpload and 2GB files across DIFFERENT browsers

2011-01-17 Thread Jim Douglas
You need to upload files 2GB? On Jan 17, 8:49 am, omsrobert omsrob...@gmail.com wrote: FireFox and IE have 2GB limits on the file size that can be uploaded to a server whereas Chrome does not have this limit.  Does GWTUpload work around this limitation in FF + IE? -- You received this

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Y2i
For full Java stack RequestFactory may be another option for a new project. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.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

Re: GWT Validation Framework

2011-01-17 Thread SVR
This is not part of any released code? Is it planned to be part of ver x.y? Is http://code.google.com/p/gwt-validation/ a different project? thanks On Mon, Jan 17, 2011 at 2:47 PM, Nick Chalko ncha...@google.com wrote: On Mon, Jan 17, 2011 at 7:43 AM, SVR svr...@gmail.com wrote: Has

Re: GWT Validation Framework

2011-01-17 Thread Nick Chalko
On Mon, Jan 17, 2011 at 12:02 PM, SVR svr...@gmail.com wrote: This is not part of any released code? Is it planned to be part of ver x.y? Eventually it will be in released code. No time line yet. Is http://code.google.com/p/gwt-validation/ a different project? yes it is a different project

Re: Error when initiating an rpc call with custom class object

2011-01-17 Thread Y2i
Make sure your UserRoles satisfy requirements outlined here: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#serialize Also, does Hibernate enhance server-side classes in a way that makes them incompatible with these requirements? -- You received this message because you are

Re: GWT - Update Widget when java.util.List changes

2011-01-17 Thread Y2i
Did you have a chance to go through this tutorial? http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html When you get the data, you need to populate the widgets as shown here: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#invoke -- You received this message

Re: Checking User activity on browser

2011-01-17 Thread Y2i
May be Scheduler.scheduleEntry()http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/Scheduler.html#scheduleEntry(com.google.gwt.core.client.Scheduler.ScheduledCommand)may be of help? -- You received this message because you are subscribed to the Google Groups

Re: Who handles UI rules...the Activity?

2011-01-17 Thread Ben Imp
The view part of a pure MVP design is entirely passive. It will expose (via an interface) a set of methods and widgets (interfaces only) to the presenter, and thats pretty much it. It takes no action on its own, or at least as little as it can get away with given whatever framework restrictions

Eclipse false error

2011-01-17 Thread ahhat...@gmail.com
Hi everyone, I have a large project on eclipse that runs and compiles correctly in dev mode and script mode... everything is great...except that it shows an error for UiBinder classes in a certain package... which compiles, runs , auto-completes in IDE and does everything correctly... except

Eclipse false error

2011-01-17 Thread ahhat...@gmail.com
Hi everyone, I have a large project on eclipse that runs and compiles correctly in dev mode and script mode... everything is great...except that it shows an error for UiBinder classes in a certain package... which compiles, runs , auto-completes in IDE and does everything correctly... except

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Thomas Broyer
Not to mention that you can do in process unit-testing with RequestFactory, which is very helpful! (this also means you can build a RequestFactory client in a few lines of pure-Java code, you'd just have to code and provide an appropriate RequestTransport to reach your servlet) -- You

Re: GWT - Update Widget when java.util.List changes

2011-01-17 Thread Vrto
Hello, yes. I quite misunderstood basic principles, I asked on Stackoverflow and issue was fairly easy. Issure resolved here: http://stackoverflow.com/questions/4708486/gwt-update-widget-when-java-util-list-changes On Jan 17, 9:22 pm, Y2i yur...@gmail.com wrote: Did you have a chance to go

Re: onKeyPress called twice on a single keypress

2011-01-17 Thread Ben Imp
Suggest boxes currently have a bug. http://code.google.com/p/google-web-toolkit/issues/detail?id=3533 I went through the same hassle ... icky stuff. I ended up wrapping the SuggestBox with another class that intercepted any handlers added to it and wrapped them with a de-duplication handler.

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-17 Thread David Chandler (Google)
Hi Aldo, RequestFactory doesn't support composite keys, only String or Long types. In order to simulate @ManyToMany, your intersection table should have a String or Long id, product, and item as fields of the entity itself rather than an embedded PK class as shown. HTH, /dmc On Jan 6, 6:23 pm,

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Ryan Mehregan
with GWT 2.1, there is another client-server communication mechanism called RequestFactory. RequestFactory uses JSON behind the scene, and aggressively caches data, when your data model changes, RequestFactory only sends the changed bits over the wire, not the entire object graph; Which results in

embed GWT into a swing app

2011-01-17 Thread offbyone
I have a large app where the front end is java swing and the back end is tomcat/spring httpinvokers. I need to add and integrate an appointment calendar to the application. I really like the GWT-cal widgets and was considering trying to embed this into my swing app. Is there an easy way to do

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Ryan Mehregan
If you decided to go with REST-like architecture, exchanging JSON encoded data, there are some resources that can either make the job easier for you, or be source of inspiration. make sure to also checkout AutoBean http://code.google.com/p/google-web-toolkit/wiki/AutoBean GWT-REST

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Ryan Mehregan
RequestFactory comes with some helper classes that allow you to run your tests within the JRE environment, which means your tests are executed in miliseconds.

Re: gwt mvp sessions

2011-01-17 Thread Ryan Mehregan
The best practice for developing GWT applications is to keep the server-side of your code as Stateless as possible. In the past, with traditional web frameworks, there was not much you could do on the client, we only had basic html forms, which we asked user for input, and most of the processing

Re: GWTUpload and 2GB files across DIFFERENT browsers

2011-01-17 Thread Ryan Mehregan
You might want to checkout AjaxFileUpload (also known as Valum file upload) http://valums.com/ajax-upload/ it is pure JavaScript, which means you do not need to also add a JavaScript such as JQuery to make it work. You can wrap it with JSNI and use it. I found it to be more powerful than

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Ryan Mehregan
some useful resources on RequestFactory: GWT Documentation: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html excellent source of GWT related articles http://tbroyer.posterous.com/ in-progress sample project http://code.google.com/p/listwidget/ -- You received this

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Jeff Larsen
Thomas, How hard would it be to change the RequestTransport to use a less obfuscated JSON, standard jackson JSON payload? I'm curious because I am currently tasked with writing a framework that needs to be server agnostic. I'd gladly sacrifice some of the speed and transport efficiency for a

Re: GWTUpload and 2GB files across DIFFERENT browsers

2011-01-17 Thread Ryan Mehregan
You might want to checkout AjaxFileUpload (also known as Valum file upload) http://valums.com/ajax-upload/ it is pure JavaScript, which means you do not need to also add an additional JavaScript library such as JQuery to make the file upload script work. You can wrap it with JSNI and use it. I

Re: onKeyPress called twice on a single keypress

2011-01-17 Thread Thomas Broyer
In this specific case, you have access to the wrapped TextBoxBase (or RichTextArea in the case of the custom suggestbox that the OP is creating) and you can add handlers directly to it, instead of the SuggestBox widget (according to comment 7 on the linked issue, this should work) -- You

Re: CellTable MVP

2011-01-17 Thread rlhawk1
Thank you so much! Using what you said I was able to get it working in just a few minutes. I'm using your sample project to help arrange some other stuff better as well. I probably need to work on my event handling rather than just using History.newItem(), but here's the code I have in my

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-17 Thread Thomas Broyer
On Monday, January 17, 2011 10:33:00 PM UTC+1, David Chandler (Google) wrote: Hi Aldo, RequestFactory doesn't support composite keys, only String or Long types. You need some vacations David! ;-) It was the case on 2.1.0 but no longer in 2.1.1, where you can have composite keys. They

Re: Attach a ClickHandler to a CellTable row

2011-01-17 Thread rlhawk1
This might help: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1f95c5e6172bb929/e9421aca73c3f9fd On Dec 27 2010, 7:04 am, Matias matiassu...@gmail.com wrote: Could somebody provide an example or any instructions on how to listen for a click event on a CellTable row?

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Thomas Broyer
The RequestTransport is given the already-JSON-encoded payload as a String, so unless you parse it to re-serialize it as a different JSON (and doing the same on the server side in e.g. a servlet filter) I doubt it's possible. The JSON payload is not that obfuscated though. It's entirely based on

Re: gwt mvp sessions

2011-01-17 Thread Y2i
P.S. Forgot to mention that if you use GAE, it's better to start from this pagehttp://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

request factory: collections of collections

2011-01-17 Thread Simon M
Hello, It would be convenient for me that request factory manages collections of collections. Is that planned ? If it is not planned, it would be nice to have an explicit error instead of current strange error. -- You received this message because you are subscribed to the Google Groups

is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread zixzigma
I am facing a dilemma. when an Activity starts, I use RequestFactory to retrieve some data. - I don't know however when should I update the view responsible for displaying the data. in the code below, I have identified two place holders ## A ## and ## B ### and another question: - is a call on

Re: Speed of UI tests with WebDriver

2011-01-17 Thread Kyle Baley
We make heavy use of both JUnit tests and MVP through the use of Jukito (http://code.google.com/p/jukito/) and gwt-platform (http:// code.google.com/p/gwt-platform/). They've both been a tremendous help but I feel UI tests are useful as well. But many of the benefits have to be weighed against the

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread Y2i
The call is non-blocking. When response arrives, you can populate the widget and call setWidget() on the display. Start() javadochttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/activity/shared/Activity.html#start(com.google.gwt.user.client.ui.AcceptsOneWidget,

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread zixzigma
calling setWidget, should be done within Receiver#onSuccess anonymous inner class, or after that code ? On Jan 17, 7:17 pm, Y2i yur...@gmail.com wrote: The call is non-blocking. When response arrives, you can populate the widget and call setWidget() on the display.  Start()

Re: Checking User activity on browser

2011-01-17 Thread saket kumar
Thanks for your suggestion. But how am I going to use it? I basically need a listener which gets triggered whenever an activity happens on the browser window ( Say, Mouse click/Move, Key Press etc.) Can anybody suggest? On Tue, Jan 18, 2011 at 1:57 AM, Y2i yur...@gmail.com wrote: May be

Displaying one-line summary when dealing with list of long paragraphs. What would YOU do ?

2011-01-17 Thread zixzigma
Take GMail for example. in the Inbox, you have a list of received emails, in addition to the mail Subject, there is a sentence from the opening of the email. in other words we have Subject + MAIL_BODY.substring(0, LENGTH) what is the best way to implement this feature ? if we were dealing with

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread Y2i
*within Receiver#onSuccess anonymous inner class*, it's where you actually receive the data. *After that code* the data is not yet available. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Checking User activity on browser

2011-01-17 Thread Y2i
The registered callback will be executed before an event (*Mouse click/Move, Key Press etc*) gets to the message loop. Scheduler.scheduleEntry(new RepeatingCommand() { boolean execute() { // some activity occurred return true; // to be called again, false to stop from being called }

[gwt-contrib] Issue 5599: HasDataEditor doesn't handle removes from the list (never calls HasData#setRowCount) (issue1297801)

2011-01-17 Thread t . broyer
Reviewers: bobv, rjrjr, jlabanca, Description: http://code.google.com/p/google-web-toolkit/issues/detail?id=5599 Bob suggested that It should check to see if the size of the exported list has changed whenever create() or dispose() is called.

[gwt-contrib] Re: Move the TCK report task to user/build.xml and (issue1288801)

2011-01-17 Thread rchandia
LGTM http://gwt-code-reviews.appspot.com/1288801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add optimizations for redundant and trivial 'switch' statements (issue1286801)

2011-01-17 Thread rice
http://gwt-code-reviews.appspot.com/1286801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Match Classes to validate in the order specified in the GwtValidaiton (issue1294802)

2011-01-17 Thread nchalko
Reviewers: rchandia, Description: Match Classes to validate in the order specified in the GwtValidaiton Annotation. [JSR 303 TCK Result] 62 of 258 (24.03%) Pass with 27 Failures and 5 Errors. Please review this at http://gwt-code-reviews.appspot.com/1294802/show Affected files: M

  1   2   >