JSON requests with authorization and cross-site
Hi there, im quite new to GWT and i can not figure this one out... I want to do a JSON request to a server which would normally show me a popup to fill in my username and password. How can i access this with GWT? i tried the request builder and using setPassword and setUser but it doesnt work for me. The statuscode I receive after I make my request is '0' which i think is weird... can anybody help me out with this? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Javascript problem in cache.html
Sri, Thanks, it worked! Once I set the style=DETAILED flag using the "GWT Compile project" button in eclipse I soon discovered the problem. One of my variables was null in some cases. Once I fixed this my application works again. Thanks Wouter On Dec 22, 9:19 pm, Sripathi Krishnan wrote: > Pass the style = DETAILED flag > (seehttp://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...) > to the GWTC compiler and then run the application. It won't solve your > problem, but will atleast point you to the method/variable that has the > problem. > > --Sri > > 2009/12/23 Wouter > > > > > Hi all, > > > I have a strange problem in a .cache.html that is generated by > > GWT. When I click on an specific radio button in my application the > > application seems to hang (the "please wait" indication remains > > displayed). This problem occurs in Chrome, FF and IE. In IE an JS > > error appears which says: > > > line 2965 > > char 368 > > Error 'b.a' is null or not an object > > Code:0 > > URL: .cache.html > > > I use GWT-EXT and my application is hosted on Google App Engine. > > > Does anybody seen this error before and give me some pointers where to > > look ? > > > regards > > Wouter > > > -- > > > 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 > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Javascript problem in cache.html
Hi all, I have a strange problem in a .cache.html that is generated by GWT. When I click on an specific radio button in my application the application seems to hang (the "please wait" indication remains displayed). This problem occurs in Chrome, FF and IE. In IE an JS error appears which says: line 2965 char 368 Error 'b.a' is null or not an object Code:0 URL: .cache.html I use GWT-EXT and my application is hosted on Google App Engine. Does anybody seen this error before and give me some pointers where to look ? regards Wouter -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
My GWT app does not work in Chrome & FF, only in IE
Hi, I´ve created an GWT application using Eclipse and dpeloyed it on GAE Here is my problem: currently my app only works (the main screen loads) in IE and not in Chrome or Firefox 3.5 In Chrome I get the following error on my JS console ( I removed the domain name) .../88D2A45371F8A216E4553826DFDE29B8.cache.html:432Uncaught TypeError: Cannot call method 'removeChild' of null In Firefox 3.5 I get Fout: as((yr(), a)) is null ../29CCB0A0F2B5C650C47D673255C06429.cache.html Regel: 435 I´ve create a simple GWT UI consisting of 2 AbsolutePanels which are both filled with Async backend calls. According to my logging these are not called. I´m using GWT 1.7 Does anybody have any ideas how to resolve this ? regards Wouter --~--~-~--~~~---~--~~ 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: Thinking about learning GWT
I have a real life application with GWT - GXT client, PHP server scripts, a MySQL database and JSON objects for data exchange. The host is a standard web host. Works all right but there are some considerations : - (in my case) security is weak as I don't use SSL - you have to realize you're writing java but the result is javascript which has implications for eg memory management - be aware that data exchange is asynchronous I looked into google app engine but decided to keep my architecture. Mainly because I have some doubts about the direct datastore access possibilities in app engine. I often need to execute non - standard queries on the database. But I might be missing something of course ... --~--~-~--~~~---~--~~ 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: SuggestBox:How to show suggestion list when clicking?
Alex, You don't need to click for the list to appear. Just type part of the search text in the box, the list of corresponding items should appear (if the limit is respected, I think default value is 20). You scroll to or click one of those items to select. Your SelectionHandler then processes the selected item. Wouter --~--~-~--~~~---~--~~ 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: Accessing external widgets from my Handler
Trevor, Somehow you need to pass references. You could do that in your own EventHandler or Callback implementation. In my app I have a Callback implementation that takes a reference to a panel, I suppose the equivalent of your Page object, in the contructor. The Callback keeps the reference in an instance variable, parses the response from the server and then sends that response to some method in the panel. The panel itself has the necessary references to its children., like your button and table. I think you could implement an EventHandler in a similar way. Of course you have to evaluate if all that referencing is worth the trouble. If you want to do something simple, perhaps keeping all the code in the Page object is not such a bad idea after all. Wouter --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Navigate between a list and details screen
Hi all, I´m struggeling with the following problem for a while now. I´ve created a GWT app that displays a FlexTable. This FlexTable consists of HyyperLinks There are constructed as follows: link = new Hyperlink(item.getItemDescription(), "item"+item.getId ().toString()); link.addClickHandler(handler); in the same piece of code I add a History Item History.newItem("item" + item.getId()); When I click on the link the ClickHandler gets fired as expected. I then retrieve the HistoryToken as follows String token = History.getToken(); if (token.substring(0, 4).equalsIgnoreCase("item")){ selectedItem = token.substring(4, token.length()); Long selectedLong = Long.decode(selectedItem); I order to pass that to a backend service and fill my screen with the retrieved data My problem is as follows: If I have 2 items in my table it always opens that last item on the list no matter which link I click. I must be missing something basic here but can´t figure out what it is What am I doing wrong ? regards Wouter --~--~-~--~~~---~--~~ 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: setIconCLS on Accordion view
Fanie, Did you set a correct path to your icon ? The path you use now would need user.gif in the root of your war directory (assuming GWT 1.6.x and standard build). Wouter --~--~-~--~~~---~--~~ 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 do i
As far as I know there are no specific classes to generate or manipulate csv. There are for JSON and XML. You can of course do you own string manipulation. But for what you want to do, it might make sense to generate the file on the server in java, PHP or whatever language you're using and "download" it with Window.open(...) --~--~-~--~~~---~--~~ 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: making gwtext's toolbarbutton ICON appear
Stumbled on that too. Solved my problem using GWT PushButtons and wrapping them in GXT AdapterToolItems. --~--~-~--~~~---~--~~ 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 create a live suggestion box using GWT-Ext
Can you tell what you already have and where you're stuck ? --~--~-~--~~~---~--~~ 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: Getting started with GWT SL
Sorry, pushed a wrong key. I continue ... allow you to implement a persistence layer without having to write an enormous amount of SQL. And a J2EE application server is mainly useful if you have a heavy application with lots of users and objects. Finally you could also consider implementing the serverside in another language or technology, like PHP which is widely available in webhosting. Wouter --~--~-~--~~~---~--~~ 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: Getting started with GWT SL
I see your point but much depends on your own preferences. I finished my last J2EE project in the summer of 2004, so I'm not an expert in that field. But in my experience you should always check if a tool is worth the cost in learning and performance. Nobody has ever been able to convince me to use spring, although it has been a hype for years now. Tools like Hibernate or (as I prefer) OpenJPA are very useful as they a --~--~-~--~~~---~--~~ 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: Getting started with GWT SL
Wualla, If you really are a total newbie in java and GWT, best start learning java first. Java.sun.com is a good starting point. IDE's like eclipse are a great help if you already know what you're doing. But if they give you the impression you can build a project without programming skills, that impression is false. Once you have a basic knowledge of java, come back to GWT. Anyway, there are several options if you want to create "a database driven AJAX application". GWT for client is a good choice (I wouldn't be here if I wasn't convinced), server side will also depend on what server you have and what technology it offers. Greetz, Wouter --~--~-~--~~~---~--~~ 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: java.sql.Date.valueOf("2009-01-08") throws IlegalArgumentException
Yes, have the same problem. Your explanation corresponds to what I see. How do you solve it ? I intended to suppress the leading zeros. --~--~-~--~~~---~--~~ 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 create a website using GWT
Venkat, There is a GWT plugin for Netbeans that allows you to create a GWT project. I tried it out and found it imposes a lot of choices I prefer to make myself, especially since I don' t have Java on the serverside. Having discarded the plugin, I discovered it's quite easy to create a GWT client project (with the project builder tool) and let Netbeans treat it as a common java project. I just had to write a build.xml to compile and upload my project. My server code is PHP and I treat it as a separate project in Netbeans. And perhaps there are other options I didn't consider. Anyway, Netbeans is a suitable IDE for GWT development. What tools you use and how is up to you and will certainly depend on the architecture of your project. Wouter --~--~-~--~~~---~--~~ 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: Multiple Json requests problem in parsing
Do you use the same RequestCallback object for all requests ? That would explain your problem, responses arrive in a random order and your callback has no way of knowing what response it's handling. If I'm right, perhaps try using a specific callback per request. On Dec 17, 12:25 pm, jake H wrote: > so is there any solution about asynchronous communication? > should i work with deadlocks? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---