Problem while calling servlet using Jetty

2010-12-23 Thread Tushar
Hi Guys, I installed jetty on my ubuntu and uploaded my webapplication in webapps folder of jetty but when i am trying to call my servlet using $ajax $("#signIn").click(function(){ $.ajax({ type: "POST", url: "http://localhost:8090/myapp/myappmodule/getToken";, content

Re: requestfactory: server side query using JPQL

2010-12-23 Thread Mike
i tried, unfortunately it does not work, but, if i use the following query: select o from Person as o where o.address IS not NULL it work fine and just get all person that their address is not null. what's wrong with the original query? -- You received this message because you are subscribed

Re: 2.1 MVP and handlers

2010-12-23 Thread sunny...@gmail.com
Thanks Thomas and Y2i - shortly after I posted I read in the API that the EventBus passed in onStart is a ResettableEventBus (that wraps the EventBus given in the ActivityManager?) My application is a tabbed application (its quite good for our workflow) with a secure login. There is a full screen

Re: gzippen all gwt output files?

2010-12-23 Thread Ed
OK :( Couldn't let it rest... Found out that the above b) snippet isn't necessary, but was because I had somewhere in my apache config the following line that spoiled it: AddType application/x-gzip .gz .tgz So every file returned with .gz as extension got automatically this content type back whic

Re: ValueProxy example

2010-12-23 Thread jeremy rose
Thanks for your suggestion. It Worked!!! On Dec 23, 12:16 pm, Thomas Broyer wrote: > Even though they're not really relationships, they probably (I haven't yet > checked) obey the same > rules:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h... > > When querying the serv

Re: gzippen all gwt output files?

2010-12-23 Thread Ed
Did some more reading and trial and error and have it now working as followed: 1) In Apache config file: a): Options +MultiViews AddEncoding x-gzip .gz .tgz b): ForceType text/javascript 2) Remove all original not-gzipped files such that content negotiation occurs. If you remove b) (whi

Re: GWT 2.1.1 RequestFactory Strange Exception

2010-12-23 Thread zixzigma
SL vs DAL, one example of how they are different is that: let's say we have a DAO for accessing a Customer entity a DAO for accessing Account entity a DAO for accessing History/Trend entity // maybe not a good example, but just three separate entities a Service(object) living in a ServiceLayer,

Re: Is selectionModel.setSelected asynchronous?

2010-12-23 Thread Jaroslav Z?ruba
:( thank you -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more

Re: Is selectionModel.setSelected asynchronous?

2010-12-23 Thread Y2i
AbstractSelectionModel.setSelected() schedules selection change event to be fired at the end of the current event loop, so a new event will be fired after onSelectionChange() is executed. On Dec 23, 2:24 pm, "Jaroslav Z?ruba" wrote: > Hello > > I'm trying to clear selection on a list that has sel

Re: GWT 2.1.1 RequestFactory Strange Exception

2010-12-23 Thread zixzigma
Thank you so much for your feedback on this. I am going to experiment more, using your guidelines. as for the need for additional layer, a valid use case could be this: lets say you are going to deploy your app on GAE. for the persistence, there are several options: - JDO/JPA - DataStore LowLeve

Is selectionModel.setSelected asynchronous?

2010-12-23 Thread Jaroslav Z?ruba
Hello I'm trying to clear selection on a list that has selectionChangeHandler attached to it. This fires a new event that triggers the handler again. I'd like to ignore the event that has been triggered as result of me clearing the selection. The problem is that there seems to be stuff happenin

Re: gzippen all gwt output files?

2010-12-23 Thread Ed Bras
Thanks, I used to the public folder in the past but didn't like it in reusable components as you always got the public resources in your project when using the reusable component, even if you didn't use or want them :(... Where do you put your static resources ? Another thing: I am not sure if Mul

Re: GWT 2.1.1 RequestFactory Strange Exception

2010-12-23 Thread Thomas Broyer
RequestFactory sends diffs on the wire (client-to-server), so how would your Service Object (as you call it) would receive a "complete" domain object if the diff isn't applied to an object retrieved from the database/datastore? Things are a bit more "blury" than "service layer on top of data acce

Re: Confused about Servlet mapping and Url Pattern, RPC not working when Deployed

2010-12-23 Thread AmaraSat
Hello Nirmal, I have some questions (please also look for my above post and reply for it too) >From the StockWatcher application project, after i compile i have StockPriceServiceImpl.class, this means my server side code is compiled right? or do i have to do to the non eclipse method and build my

Re: gzippen all gwt output files?

2010-12-23 Thread Thomas Broyer
The public path allows for reuse (as for themes). In that sense, its not deprecate. Otherwise, yes, you'll put them in the "war", but then you're responsible for them (and thus for compressing them) -- You received this message because you are subscribed to the Google Groups "Google Web Toolki

Re: GWT 2.1.1 RequestFactory Strange Exception

2010-12-23 Thread zixzigma
from your explanation I get the feeling that Locators are DAOs, is this correct ? placing calls like these: EntityManager#find(clazz,id) inside a Locator, means Locator is now responsible for accessing datastore to perform actions. it also means that our DAOs are somehow directly coupled with Re

Re: gzippen all gwt output files?

2010-12-23 Thread Ed
Where do you put your static (not gwt) resources (css/images/js not part of clientbundles) ? I like putting them in the war folder (war/resources) and thought the public folder usage was a bit deprecated :( -- You received this message because you are subscribed to the Google Groups "Google Web

Re: ValueProxy example

2010-12-23 Thread Thomas Broyer
Even though they're not really relationships, they probably (I haven't yet checked) obey the same rules: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships When querying the server, RequestFactory does not automatically populate relations in the object graph.

Re: Compressing JSON?

2010-12-23 Thread Olostan
Just add handler to IIS 7 that will do gzip-compression, and browsers will automatically uncompress upon receiving. May be your UI getting slow because of other reasons then waiting for JSON? Try to use Speed Tracer (http://code.google.com/intl/uk-UA/ webtoolkit/speedtracer/) to investigate lag re

Re: How to add column titles for widget CellBrowser?

2010-12-23 Thread Y2i
I opened an issue related to column headers in the CellBrowser http://code.google.com/p/google-web-toolkit/issues/detail?id=5809 Please add your stars if you are interested the header support. On Dec 22, 10:45 am, Y2i wrote: > I would also be interested to learn how to add headers toCellBrowser

Re: json gwt

2010-12-23 Thread zixzigma
Petr, What did you do to make it work ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...

Re: How to force Spring to intercept RequestFactoryServlet

2010-12-23 Thread Ashton Thomas
I wish I could help more but I don't use RequestFactory so I don't have a Spring configuration with it:( On Dec 23, 5:03 am, zixzigma wrote: > Thank you for your feedback and support on this. > > I spent a very long time, trying many different combinations, > including those you suggested, unfort

Re: doPost mit RequestBuilder

2010-12-23 Thread sipungora
Thank you Thomas, but with builder.setHeader("Content-Type", "application/x-www-form- urlencoded") ; the servlet receives NO request :(. If I comment this, the servlet gains the request with null Parameters. Sorry. On 23 Dez., 10:28, Thomas Broyer wrote: > You're not setting the Content-Type of

Custom Map and relative Projection

2010-12-23 Thread Alberto
Hi, I want to create my custom Map using Google Maps 1.1 Library. I've a little problem... If I use the Mercator Projection class, my custom map repeat itself continuously in the x space... There's a way to see my map once (without repetitions)? -- You received this message because you are su

ValueProxy example

2010-12-23 Thread jeremy rose
I've got embedded objects within my entities and it appears as though ValueProxy is just what I need. When I tried it out, my values are always null. I verified the server-side is retrieving these embedded values but I'm very new to RequestFactory so I'm sure I did something wrong wiring things u

Re: Flextable with a locked in position header row despite scrolling

2010-12-23 Thread Sunit Katkar
Thank you so much. I think using standard Flextable the way it is used in the Email application is suitable for me. I dont want to use any components from incubator which might be deprecated or removed in the future. - Sunit Katkar http://sunitkatkar.blogspot.com/ On Wed, Dec 22, 2010 at 2:16

Where do KeyPress Events go?

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

Re: requestfactory: server side query using JPQL

2010-12-23 Thread Y2i
Have you tried @JoinColumn(name="AddressID", nullable=true) instead of @Column(name="AddressID") On Dec 23, 2:56 am, Mike wrote: > yes of course, without where i can get all person object with address is > null and not null. -- You received this message because you are subscribed to the Google

Re: json gwt

2010-12-23 Thread Petr Arsentev
Thomas Broyer Thank very much ) It is works! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubs

EnterButton

2010-12-23 Thread Greg Dougherty
I have a couple of places where I want the user to be able to hit enter, and have a button clicked. So I created the class EnterButton, which has all the default constructors, and the following bit of code: public void onKeyPress (KeyPressEvent event) { int key

Re: Confused about Servlet mapping and Url Pattern, RPC not working when Deployed

2010-12-23 Thread AmaraSat
Hello Nirmal, Sorry for reposting again, i am confused so i reposted it again. As you said i am pasting ym GWT.Xml and Web.Xml here, StockWatcher.gwt.xml: http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro- source/core/src/gwt-module.dtd"> web.Xml: http://java.sun.com/dtd

Re: GWT 2.1 MVP Multiple activities clarification help

2010-12-23 Thread Mauro Bertapelle
As an exercise I've build a little POC based on the concepts expressed by Thomas in his article. If someone is interested, the sources are here: http://95.110.143.4/layoutmvp/layoutmvp.tar.gz and here you can find a live demo: http://95.110.143.4/layoutmvp/layoutmvp.html -- You received this mes

Re: json gwt

2010-12-23 Thread Thomas Broyer
Because gdata.youtube.com explicitly allows it using CORS: http://www.w3.org/TR/cors/ which most browser implement (all recent versions of any browser except IE) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send

Re: GWT and HTML5 Client-side Storage

2010-12-23 Thread monkeyboy
Is there any plan to support client-side storage in GWT directly (I mean without third party libraries)? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscr

Re: HTML5 placeholder

2010-12-23 Thread Thomas Broyer
Works for me (tested in Chrome 10-dev using the Web inspector's JS console), but it has to be "placeholder" with a lower-case "h", not "placeHolder". -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to goo

Re: HTML5 placeholder

2010-12-23 Thread Daniel Simons
I tried a test using setPropertyString, and cannot get it to work. Am I wrong in thinking that 'this[name] = value;' is not useful in this case b/c placeHolder should be an actual element attribute rather than a property that is referenced in js? Daniel On Thu, Dec 23, 2010 at 9:12 AM, Thomas Br

Re: json gwt

2010-12-23 Thread Petr Arsentev
But when I use outsite resource String url = "http://gdata.youtube.com/ feeds/api/users/bogleg/uploads?alt=json-in-script&callback=1"; it is work correct. On Dec 23, 6:22 pm, Thomas Broyer wrote: > This is likely the sign of an SOP issue (127.0.0.1: and localhost:8080 > are not the same origi

Re: json gwt

2010-12-23 Thread Thomas Broyer
This is likely the sign of an SOP issue (127.0.0.1: and localhost:8080 are not the same origin: 127.0.01 != locahost, *and* != 8080) (note that by url="/JSONServlet" I really meant replacing the value of the 'url' variable in your code) -- You received this message because you are sub

Re: HTML5 placeholder

2010-12-23 Thread Harald Pehl
I created a simple subclass so that I can use the placeholder property in UIBinder: public class PlaceholderTextBox extends TextBox { public void setPlaceholder(String placeholder) { InputElement inputElement = getElement().cast(); inputElement.setAttribute("placeholder",

Re: HTML5 placeholder

2010-12-23 Thread Thomas Broyer
I'd rather use setPropertyString though, given that there's a property reflecting the attribute: yourField.getElement().setPropertyString("placeholder", ""); (i.e. in JS, you'll more likely write myInputText.placeholder="" than myInputText.setAttribute("placeholder", "")) -- You received this m

Re: json gwt

2010-12-23 Thread Petr Arsentev
Link url="/JSONServlet" give just text "{'data':'test'}" But I change code: @Override public void onResponseReceived(Request request, Response response) { Window.alert(response.getStatusCode() + " " +response.getStatusText() + " " + response.getText());

Re: HTML5 placeholder

2010-12-23 Thread Daniel Simons
You could call setAttribute on the UiField. This would look like the following: yourField.getElement().setAttribute("placeHolder",""); Daniel On Thu, Dec 23, 2010 at 8:41 AM, alexh wrote: > Hi, > > I was wondering there is a way to add an HTML5 attribute like > placeholder to a text input ta

HTML5 placeholder

2010-12-23 Thread alexh
Hi, I was wondering there is a way to add an HTML5 attribute like placeholder to a text input tag within UIBinder or doing so otherwise in normal Java code. Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, se

Re: Weird EOF Exception while trying to download file from GWT application

2010-12-23 Thread Patrick Tucker
I know this sounds crazy but in the past I've run into this and this seemed to fixed the problem... ... OutputStream os; try { os = response.getOutputStream(), BufferedOutputStream output = new BufferedOutputStream(os, DEFAULT_BUFFER_SIZE); ... } if (os != null) os.flush(); Also, have you

Re: gzippen all gwt output files?

2010-12-23 Thread Thomas Broyer
Yes, only "generated" files are compressed (this includes static resources though, as long as they come from a "public path" in a compiled GWT module, i.e. a theme's CSS). -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this g

Confused about Servlet mapping and Url Pattern, RPC not working when Deployed

2010-12-23 Thread AmaraSat
I have implemneted the example Stock Watcher application, i am trying to deploy the example in Apache Tomcat 5.5. After downloading the example from GWT @ http://code.google.com/webtoolkit/doc/trunk/tutorial/RPC.html, and implementing GWT RPC according to the tutorial: I haven't come across setti

Re: json gwt

2010-12-23 Thread Thomas Broyer
On Wednesday, December 22, 2010 2:46:36 PM UTC+1, Petr Arsentev wrote: > > > String url = "http://localhost:8080/JSONServlet";; > RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, > url); > Same Origin Policy ? What does url="/JSONServlet" give ? Just in case

Re: gzippen all gwt output files?

2010-12-23 Thread Ed
I am using the PreCompress linker now, but have problems precompressing my xml files. I added this line: As I want it to compress my static XML cms files, but it doesn't compress them. Might this because it only compress generated files ?... My static content is located in the war dir and I use

Re: Compressing JSON?

2010-12-23 Thread Miroslav Genov
Why you have to render trend on the client side ? You probably could ask the server to render graphic as image, then you could render it using Image widget ? This is just an idea, I don't know whether this is possible in your case. -- You received this message because you are subscribed to th

Re: Compressing JSON?

2010-12-23 Thread shahid
I agree and I do have pagination where I can possibly do so. The problem arise when I have for example a large form with data that should be populated in or the amount of data I am displaying on one screen itself is big enough e.g. in the case of showing trend data over a period of 4 weeks for exam

Re: Compressing JSON?

2010-12-23 Thread ?mit
Well I agree with mgenov. For tables and lists you should really consider only transferring data which is actually displayed. However sometimes this is not possible. For example in one of my applications I have to display around 50.000 dots in a 5 different scatterplots. My backend (cherrypy, p

Re: Compressing JSON?

2010-12-23 Thread Miroslav Genov
Are you sure that you have to transfer such amount of data to your client ? Have you considered some kind of data separation or maybe some pagination technique ? If you are returning so much data, this means that your users have to look into that data, which in most cases takes a lot of time.

Re: Centering an image in a SimplePanel

2010-12-23 Thread Jeff Schwartz
If you were using pure css to do this your outer container, a div, would have a width and the inner element, in this case an image, would set its left and right margins to auto causing the image to be vertically centered within its outer container. Try implementing the above using GWT semantics an

Is GWT MVP Appropriate For Modeless Application?

2010-12-23 Thread Jeff Schwartz
After implementing onUnload to remove event handlers (which worked, of course) I realized that this approach is inappropriate for my application. The reason is that my application is basically modeless - meaning that I can remove a widget from the dom and hold onto the widget object via a reference

Compressing JSON?

2010-12-23 Thread shahid
My application uses .NET C# on the server side and GWT on the client side/UI. I use JSON to interchange data between the UI and the server and the server application is served by IIS 7. There are situations when my JSON gets bigger and it causes a delay in UI display. Is there a way that I can comp

Re: json gwt

2010-12-23 Thread Petr Arsentev
Can you give example used Javascript Overlay? On Dec 23, 6:49 am, Subhrajyoti Moitra wrote: > adding to the above. > > - Fix an UncaughtExceptioHandler to see if there are exceptions that are not > being handled. > - Use Gson to construct and deconstruct JSON in to POJO and vice versa. u > can av

Re: json gwt

2010-12-23 Thread Petr Arsentev
Yes, I make configured for servlet JSONServlet com.trackstudio.JSONServlet JSONServlet /JSONServlet When I set this link in browser I get json objects On Dec 23, 6:39 am, zixzigma wrote: > have you configured your servlet in web.xml file ? -- You

Re: Centering an image in a SimplePanel

2010-12-23 Thread UseTheFork
I found a workaround, I used an horizontal panel containing one element and played with setVerticalAlignment/setHorizontalAlignment in the code. It works, but it is not 'clean'. If anyone knows a better solution, let me know. Thanks. On Dec 22, 11:41 pm, UseTheFork wrote: > I forgot to mention: I

Re: Modular rpc blues

2010-12-23 Thread Andreas Horst
Good job, Patrick! We're still using 1.3-SNAPSHOT ourself so I even wouldn't have been able to solve the problem. I guess I'll think it over more than twice before switching to newer versions. Anyway I'll leave a message as soon as I try it myself with 2.1.0-1. Until then maybe someone else could

Re: requestfactory: server side query using JPQL

2010-12-23 Thread Mike
yes of course, without where i can get all person object with address is null and not null. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this

Weird EOF Exception while trying to download file from GWT application

2010-12-23 Thread tarun
Hi, I am trying to download a file from GWT client. At server side there is a servlet which generates content of file as per request and send it back to the client. Test Scenarios: Scenario 1 If I hit url of servlet directly, it always give me desired result without any problems. Scenario 2 Usin

Re: GWT Classpath to add new libraries

2010-12-23 Thread roman_e
hi Nirmal Thank you for your help, now it works. :D Regards, Roman On Dec 23, 11:00 am, Nirmal Patel wrote: > You can create a folder "lib" under your project's root and place the jar > there. > If you are using eclipse, Project -> Build Path -> Configure Build Path. > Add the above "lib" under

Re: GWT Classpath to add new libraries

2010-12-23 Thread roman_e
Hi Nirmal Thank you for your help, now it works :D Regards, Roman On Dec 23, 11:00 am, Nirmal Patel wrote: > You can create a folder "lib" under your project's root and place the jar > there. > If you are using eclipse, Project -> Build Path -> Configure Build Path. > Add the above "lib" under

Re: How to force Spring to intercept RequestFactoryServlet

2010-12-23 Thread zixzigma
Thank you for your feedback and support on this. I spent a very long time, trying many different combinations, including those you suggested, unfortunately none of them worked. this topic was also discussed here, you can see my comments there. http://groups.google.com/group/google-web-toolkit/bro

Re: GWT Classpath to add new libraries

2010-12-23 Thread Nirmal Patel
You can create a folder "lib" under your project's root and place the jar there. If you are using eclipse, Project -> Build Path -> Configure Build Path. Add the above "lib" under Libraries. Regards, Nirmal -- You received this message because you are subscribed to the Google Groups "Google We

Re: GWT Tomcat 404 error RPC www.domain.com

2010-12-23 Thread Basdl
Your first link contains the path "/domain" therefore the RPC includes this path in its call. Your second call misses the path "/domain". I guess "www.domain.com/domain" should work for you. You may make a redirect from "www.domain.com" to "www.domain.com/ domain" or redefine your servlet-mapping.

Re: 2.1 MVP and handlers

2010-12-23 Thread Thomas Broyer
On Thursday, December 23, 2010 3:38:12 AM UTC+1, sunny...@gmail.com wrote: > > Hi everyone, > > Before 2.1 I created an application that use the "old" MVP > architecture of having models, views and presenters. This worked quite > well. I'm migrating this application to use the 2.1 MVP framewor

Re: Modular rpc blues

2010-12-23 Thread Coelho
I checked the content and I have the servlet tag in a the module descriptor ( Check the contents of the .jar file. Does it contain the module descriptor? Does the module descriptor contain tags for the RPCs? ) I wonder if it is not a matter of gwt-maven-plugin version because the all

Re: "Refreshing reference" message and eclipse extremely slow

2010-12-23 Thread Jerome C.
Any news about this ? It really slows down development... What's the reason ? Is it client bundle or not ? Is there something which should not do to avoid this performance bug ? 9 peoples have starred it, so I'm not the only one. I've tried to find release note of the last version of Google p

Re: doPost mit RequestBuilder

2010-12-23 Thread Thomas Broyer
You're not setting the Content-Type of the request payload, and servlet containers generally only decode request payload that are explicitly identified as application/x-www-form-urlencoded. In your doPost, you should add a builder.setHeader("Content-Type", "application/x-www-form-urlencoded") b

Re: new window

2010-12-23 Thread Shiv shankar
thanks for the information, so conclusion is like i have to pass arguments for the new window, during the time of calling window.open right. -shiv On Wed, Dec 22, 2010 at 9:53 PM, Ben Imp wrote: > Opening a new window is as simple as a call to Window.open. However, > since your GWT client keep

GWT Classpath to add new libraries

2010-12-23 Thread roman_e
Hello I'd like to add this library to my GWT project: http://code.google.com/p/gwt-mobile-webkit/wiki/StorageApi But theres only written I should add it to the classpath, but where is this exactly in a GWT project? -- You received this message because you are subscribed to the Google Groups "G

Re: Custom Maps

2010-12-23 Thread Alberto
Thank You! I had tried it but I had saw the wrong example in HelloMaps source tree... Now I've found the right one: http://code.google.com/p/gwt-google-apis/source/browse/?r=1533#svn%2Ftrunk%2Fmaps%2Fsamples%2Fhellomaps%2Fsrc%2Fcom%2Fgoogle%2Fgwt%2Fmaps%2Fsample%2Fhellomaps%2Fclient On 23 Dic, 0

Re: gwt-maven-plugin 2.1.0-1 compilation error

2010-12-23 Thread Coelho
using your original command mvn archetype:generate -DarchetypeRepository=repo1.maven.org -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.1.0-1 the script is asking for a groupId then arctifactId then Module and asks for confirmation (Y) and

Re: GWT 2.1 hellomvp using GIN

2010-12-23 Thread Frank Bølviken
Hi, Have you written any tests for this? Im curious about the testing abilities of a GWT app which uses GIN etc using EasyMock or Mockito or something. I've been told that it's very easy to test with Junit tests.. is this the case? Do you have any examples? Thanks in advance, Frank B On Oct 24,