Re: JavaScriptException: (NS_ERROR_DOM_SYNTAX_ERR): An invalid or illegal string was specified

2011-06-16 Thread Harald Schilly
On Thu, Jun 16, 2011 at 17:52, Thomas Broyer wrote: > the browser should then stop at the exception and allow you to look at the > snippet of code that caused it; there should be enough information there to > point you to the corresponding JSNI method Thanks for the fast reply. Ok, I tried that,

JavaScriptException: (NS_ERROR_DOM_SYNTAX_ERR): An invalid or illegal string was specified

2011-06-16 Thread Harald Schilly
Hi, I'm getting this error in OOPHM and I have no idea how to track down its cause. It works in a previous revision and when I look into the diff I can't find anything suspicious. Is there a way to further track down where the problem is? (GWT 2.3) 17:40:54.551 [ERROR] [k3] Uncaught exception e

Re: Why Composite?

2011-04-23 Thread Harald Schilly
When you want to design your own widget that modifies some data, you can combine more than one widget in such a Composite, additionally implement for example a HasValueChangeHandlers<...> interface, and much more. That helps to isolate all this into one class and you can use this as a bigger blo

Re: How to validate email here

2011-04-22 Thread Harald Schilly
You need to be a bit more specific. You cannot use arbitrary classes on GWT's client side. That code needs to be accessible to the GWT compiler! H -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to googl

Re: Using GWT only for UI design

2011-04-19 Thread Harald Schilly
On Tue, Apr 19, 2011 at 00:19, The Main Meyn wrote: > Does GWT have an XML parser, so that I could make sure all my servlets > return an XML. > Yes > For example how would I get a combo designed using GWT to load the > following servlet. > > http://202.54.180.145/Global/AddrXmlServlet?country_id

Re: size of my text remains unchanged when I zoom in/out

2011-04-19 Thread Harald Schilly
On Tue, Apr 19, 2011 at 03:26, dadada wrote: > is this a browser issue? > both of them use the webkit render engine. in chrome, you can go into the "tools" menu > developer tools. then open the "elements" tab, click on the magnification glass at the bottom left, then on the element in the website

Re: size of my text remains unchanged when I zoom in/out

2011-04-18 Thread Harald Schilly
Which browser (+version number) are you using? H -- 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+u

Re: MVP HasHandlers usage

2011-04-18 Thread Harald Schilly
On Monday, April 18, 2011 12:01:10 PM UTC+2, Jonas wrote: > > My question is when I have a TextBox for example and want > to use both addKeyDownHandler, addValueChangeHandler and also read the > text from it, should I have 3 methods in my view that returns > something like > > public HasValue g

Re: Using GWT only for UI design

2011-04-15 Thread Harald Schilly
On Friday, April 15, 2011 12:17:31 AM UTC+2, The Main Meyn wrote: > > I am ready to modify the servlets according to > what is required by GWT. If you don't plan to use GWT's own RPC mechanism (what you have implied, it think), you do not have to modify your servlets at all - you just have to

Re: MVP and boilerplate code

2011-04-15 Thread Harald Schilly
On Friday, April 15, 2011 4:25:42 PM UTC+2, Magno Machado wrote: > > When using the MVP framework built in GWT it seems that we have to write a > lot of boilerplate code. There are some mvp options avaiable, you can choose between more flexibility or a more tight framework (with less boilerplat

Re: gwt autocompile ;)

2011-04-09 Thread Harald Schilly
On Friday, April 8, 2011 10:02:38 PM UTC+2, Diego Lovison wrote: > > For example in JavaScript I can write the code, save on database, ... > You can do exactly the same in GWT as you are able to do in pure JavaScript. The reason is that there is this JSNI interface that lets you access the "lowe

Re: GWT & MVP

2011-04-06 Thread Harald Schilly
On Wednesday, April 6, 2011 12:04:47 AM UTC+2, Alex wrote: > > Which one should I be using? > You are maybe confused, because some terms are more theoretical (or abstract) and others are used in the Code. Also, there is not only one way to do MVP in GWT. You can check out mvp4g if it fits more

Re: Excluding Object from Serialization

2011-03-30 Thread Harald Schilly
Since that class is processed with the Java2JavaScript compiler, it uses a different Java API and there is no HttpSession class. That has nothing to do with serialization! For whatever reason you want to do that, it won't work that way. (Maybe by extending GWTs set of translate-able Java API cla

Re: Returning URL from RPC

2011-03-29 Thread Harald Schilly
On Tue, Mar 29, 2011 at 18:11, azuniga wrote: > How do I make the file visible to http requests? A file in /war/* is visible. I think we still don't really know what you want to accomplish, when you file is created and so on. Also, is the URL valid? H -- You received this message because you a

Re: Returning URL from RPC

2011-03-29 Thread Harald Schilly
When you do GWT.log("report path: " + GWT.getHostPageBaseURL() + "report.html"); in hosted mode, you can see the path in the log. Copy/Paste it into your webbrowser and see if it is valid. That will help you tracking down how to enter the correct path. H -- You received this message because yo

Re: Compressing cache.html files

2011-02-12 Thread Harald Schilly
Well, if I understand you correctly, I think you want to do something that's either not necessary or completely impossible. 1. you cannot send a .gz compressed file to gwt - you need to tell the browser to decompress the file before it is visible in the javascript application. 2. you have to co

Re: Compressing cache.html files

2011-02-11 Thread Harald Schilly
On Friday, February 11, 2011 1:22:58 AM UTC+1, Saim wrote: > > > Accept-Encodinggzip,deflate > I don't understand what you did, but I think you do not have to do anything. read this: http://code.google.com/appengine/kb/general.html#compression Just the quoted line from you above is enough to tel

Re: GWT Cookies returning null

2011-01-07 Thread Harald Schilly
On Thursday, January 6, 2011 2:23:04 PM UTC+1, Noor wrote: > > I am becoming almost mad with the GWT Cookies, > I got also mad with it, then I wrote a native function doing it "myself", still the same. Then I realized that it worked all the time in firefox, but not in chrome. I still don't kno

Re: Read, write, access a file using GWT

2010-12-30 Thread Harald Schilly
On Thursday, December 30, 2010 12:01:05 PM UTC+1, jc wrote: > > Is there is any way to read, write and access a file in a local > directory when application run i a browser ? This is only possible if the server runs on the client's computer and hence the server has access to the file. The sec