Problem with GWT 1.5 and IE 7

2008-11-17 Thread jamer
Hello I write because I found that if you use a image as a button in GWT, and we associate a MouseListener, if you use the function onMouseDown, like a click, in IE 7, the application will not be able to click on any button browser, or use the scroll bar of it (not the browser application) or anyt

Re: How to use Regular Expressions (regex) in GWT?

2008-11-17 Thread alex.d
No GWT magic here - just POJ: if(!tbEmail.getText().matches("[a-z0-9!#$%&'*+/=?^_`{|}~-]+...bla bla bla...")) { Window.alert("Invalid email"); } On 17 Nov., 20:06, omsrobert <[EMAIL PROTECTED]> wrote: > How do you use regular expressions in GWT?  Can someone post a small > code sample?  I'm l

Re: Hosted Browser Issue

2008-11-17 Thread jagadesh
iam Using Internet Explorer 6. is there any thing with this one. thank u --~--~-~--~~~---~--~~ 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@googlegro

Re: Hosted Browser Issue

2008-11-17 Thread jagadesh
First Thanks For The Response Ian, i am working on Gwt 1.5.3 and Gxt 1.1.2. i developed my application . but when i tried to view the application in the hosted mode . it is not going to display it. iam going to click refresh button multiple times[may be 8 to 10 times].then i am going to load t

Re: Resizable Popup Panel or DialogBox

2008-11-17 Thread Allahbaksh
HI, Wonderful project and that too with Apache License. Thanks for Luciano Broussal. Regards, Allahbaksh Asadullah http://allahbaksh.blogspot.com On Nov 14, 1:08 pm, Jason Morris <[EMAIL PROTECTED]> wrote: > I would say take a look at the GWT Mosaic project: > > http://code.google.com/p/gwt-mosai

Read XML after Uploading

2008-11-17 Thread Madz
Hi, I have a problem in reading upload XML file from UI using fileupload widget. I implement the XML parsing in FormPanel onSubmitComplete method but it didn't find the file. How can I read an xml file coming from user and upload in public folder then parse the content? So far this is all I got.

History list problem in IE6 - Do I really need to patch GWT's jar

2008-11-17 Thread Ganesh
I am using GWT 1.5 and want to manage history. Whenever I call History.newItem(token), Mozilla displays the window title in history list But Internet Explorer shows http://localhost:/com.TestEntry/8DF40326B05334ADE3B6DCA8E9DD3DA2 in the list i.e. URL of my page instead of showing window titl

Re: missing images in IE

2008-11-17 Thread Manik Chand
Sorry mon3y, this reply is for Rehek.michal On Tue, Nov 18, 2008 at 9:48 AM, Manik Chand <[EMAIL PROTECTED]> wrote: > Hi mon3y, > try to open in Firefox and write us the differences you notice. > > > On Tue, Nov 18, 2008 at 7:25 AM, [EMAIL PROTECTED] < > [EMAIL PROTECTED]> wrote: > >> >> Sorry t

Re: missing images in IE

2008-11-17 Thread Manik Chand
Hi mon3y, try to open in Firefox and write us the differences you notice. On Tue, Nov 18, 2008 at 7:25 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Sorry there is a typo in example, instead of > > Image img2 = new Image("icons/img2.png"); > > it should be the same url as for img: > > Im

Re: Hosted Browser Issue

2008-11-17 Thread Ian Bambury
Come On Jagadesh, Give Us A Clue As To What You Are Doing (Apart From Clicking Refresh) Ian 2008/11/18 jagadesh <[EMAIL PROTECTED]> > > Come On Guys, No Solution --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Goog

Re: Limits to byte[] size in RPC?

2008-11-17 Thread Ian Petersen
On Mon, Nov 17, 2008 at 11:15 AM, Axel <[EMAIL PROTECTED]> wrote: > Here's the code that seems to be doing the serialization of a byte[] > object, from > com.google.gwt.user.client.rpc.core.java.lang.Byte_CustomFieldSerializer: > > public static void serialize(SerializationStreamWriter streamWrit

Re: Hosted Browser Issue

2008-11-17 Thread jagadesh
Come On Guys, No Solution --~--~-~--~~~---~--~~ 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 em

Re: Observer pattern on this design, yes or no/how and why?

2008-11-17 Thread gregor
That's a "Windows" way of looking at things. Check the link I gave, and there are others both on this group and around the net, that explain better than I can why you should maybe reconsider that idea. On Nov 18, 1:51 am, mives29 <[EMAIL PROTECTED]> wrote: > Well, the reason for the two entrypoi

Eclipse GWT UI App Engine Backend

2008-11-17 Thread Bob
I am building an app with a GWT Javascript UI and a Python App Engine back end. I setup 2 projects in Eclipse. The App Engine project uses a linked resource folder from the GWT project to access the compiled GWT UI. The problem: I need to use path = os.path.join(os.path.dirname (__file__), 'GWT fi

Re: missing images in IE

2008-11-17 Thread [EMAIL PROTECTED]
Sorry there is a typo in example, instead of Image img2 = new Image("icons/img2.png"); it should be the same url as for img: Image img2 = new Image("icons/img.png"); corrected whole example: FlexTable table = new FlexTable(); Image img = new Image("icons/img.png")

Re: Observer pattern on this design, yes or no/how and why?

2008-11-17 Thread mives29
Well, the reason for the two entrypoints is that me and my colleagues are looking for a way to implement a sort of "pop-up" dialog box, but, something that resides on a separate window, so it wouldn't overlay with the main page. (so the user can alt+tab between the two windows). If there's anoth

Re: Limits to byte[] size in RPC?

2008-11-17 Thread gregor
Hi Axel, I understand your frustration not being able to return a Route object from a file upload servlet, but I cannot see why, having just slogged through downloading a 1MB binary, you want to struggle through orders of magnitude greater slog trying to upload it again to the client from whence

Best way to customize nocache logic...?

2008-11-17 Thread [EMAIL PROTECTED]
I'd like to add some of my own logic to the nocache file in order to implement a custom localization scheme. I'm aware of the kinds of things you can do with generators and linkers, but it's not clear to me if there is some simple way to customize the existing logic vs. writing and maintaining my

No errors displayed after failures in hosted mode, just http://localhost:8888

2008-11-17 Thread just marvin
My OSX (10.5.1) system suddenly stopped working at all with GWT. Downloading a fresh install and running any of the samples (e.g., Mail- shell) brings up the GWTShell and then WebKit browser, but the browser simply displays http://localhost: (not the URL for the Mail app). I can run with -log

Re: GWT-Ext Instant Messenger Attempt

2008-11-17 Thread Sandile Keswa
Thanks so much, I have finally solved my problem On Mon, Nov 17, 2008 at 4:23 AM, eggsy84 <[EMAIL PROTECTED]> wrote: > > I've never done any GWT-Ext programming but as its a build upon GWT. > > To perform the items at runtime surely you can simply do: > > button.addClickListener(new ClickListener

An RPC server could not be reached

2008-11-17 Thread Martin Miethe
Hi @all, I am trying to set up the DynaTable Example in a Dynamic Web Project using Eclipse WTP and Cypal Studio. The GWT complier output goes directly to the WebContent directory. Everyting looks fine in Eclipse, no errors etc. But when I call the dynatable.html in the Browser I get a GWT popup

Re: Native GWT Compiler

2008-11-17 Thread Alex Epshteyn
I interpreted "available in trunk" to mean that it's a separate version of the compiler in the trunk. Has it replaced the single- threaded compiler and can just be built and used as usual? Alex On Nov 12, 2:20 pm, eric <[EMAIL PROTECTED]> wrote: > get it : "The new multi-threaded compiler is a

Re: Limits to byte[] size in RPC?

2008-11-17 Thread Axel
Here's the code that seems to be doing the serialization of a byte[] object, from com.google.gwt.user.client.rpc.core.java.lang.Byte_CustomFieldSerializer: public static void serialize(SerializationStreamWriter streamWriter, Byte instance) throws SerializationException { streamWriter.

How to use Regular Expressions (regex) in GWT?

2008-11-17 Thread omsrobert
How do you use regular expressions in GWT? Can someone post a small code sample? I'm looking to validate an e-mail address against a RFC. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

Re: how to get file path at server side.

2008-11-17 Thread David Durham, Jr.
On Mon, Nov 17, 2008 at 6:16 AM, rajasekhar <[EMAIL PROTECTED]> wrote: > > Hi All, > > how to get the Context Path in gwt.I placed a XML in server > folder,to read the file I need to get the path.Please let me know how > to get the path and read file from server folder. http://tomcat.ap

Re: Pagination Widget?

2008-11-17 Thread Suri
Hey Isaac, Thanks for that information. Based on that let me know what I have below is correct public class TestTableModel extends TableModel { // code to initialize the RPC service - possibly in a constructor? public void onRequest() { // code to use the use the service and make a ca

Re: Cookies in hosted mode won't go away

2008-11-17 Thread yunhui song
Cookies.removeCookie("userId") doesn't work here too. I use expire time to remove it, it works. > int COOKIE_TIMEOUT = 0; > Date removeExpire = new Date((new Date()).getTime() + COOKIE_TIMEOUT); >// //remove the cookie, works. Cookies.setCookie("cookieName",null, removeExpire); > Goo

Re: Cookies in hosted mode won't go away

2008-11-17 Thread Eros
I finally managed to get rid of the cookie: I had set it to expire in 14 days, so I set the system time 30 days in the future and it finally worked. Still there's gotta be a way of getting rid of unwanted cookies in hosted mode, is this a bug? (or maybe a feature ;-)) --~--~-~--~~

GWT 1.5.3 upgrade problems

2008-11-17 Thread [EMAIL PROTECTED]
Hi I have recently upgraded my application from GWT 1.4.60 to GWT 1.5.3. After the upgrade the I am not able to run my application in the hosted mode. It simply throws 404 NOT FOUND error. GWT does throw a lot of messages, When "ALL" messages are enabled. But, the messages themselves don't pro

how to get file path at server side.

2008-11-17 Thread rajasekhar
Hi All, how to get the Context Path in gwt.I placed a XML in server folder,to read the file I need to get the path.Please let me know how to get the path and read file from server folder. Regards, Rajasekhar --~--~-~--~~~---~--~~ You received this mes

Cookies in hosted mode won't go away

2008-11-17 Thread Eros
Hi, I can't get rid of cookies in hosted mode. I wrote a "userId" cookie using: Cookies.setCookie("userId", userId); and now I can't remove it. I tried the following: - Cookies.removeCookie("userId"); - restarting the hosted mode - Eclipse -> Project -> Clean... - restarting Eclipse - removin

IE6 + HTTPS + Flaky Proxies = :(

2008-11-17 Thread WillM
Hi all We've deployed a fairly meaty GWT app to about 500 users and for the vast majority it works a treat. Unfortunately some of our users (~1%) are having problems. It appears that for a minority of users, who are all using IE6 (and we think are operating behind rather flaky proxies), they ge

Paths Problems? RPC Serialization? HostPageBaseURL?

2008-11-17 Thread Evan Ruff
Hey Guys, I'm having some trouble with my GWT project. I'm getting some weird errors and I think it's related to either my project setup, my gwt.xml files or something of that nature. I'm running in hosted mode with the embedded Tomcat. Basically, I'm getting a couple of weird errors. First off,

Re: calling new DOMParser()

2008-11-17 Thread markww
Thanks guys, this is where I'm confused - I'm creating a 3rd party js object, which internally creates the DOMParser: private native void test() /*-{ // inside the 'constructor' of 'thirdPartyObject' is where "new DOMParser" gets called. var x = new $wnd.thirdPartyObject();

Re: logging system property

2008-11-17 Thread David Durham, Jr.
On Mon, Nov 17, 2008 at 10:55 AM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > Hi all, I'm trying to setup log4j with GWT in hosted mode, and it > looks like GWT will set the system property > > org.apache.commons.logging.Log > > to something like: > > com.google.gwt.dev.shell.tomcat.CommonsLo

Re: calling new DOMParser()

2008-11-17 Thread Jason Essington
once you step into JSNI, you are in the javascript world, accessing java objects is a bit more complicated than in non-JSNI methods. http://code.google.com/docreader/#p=google-web-toolkit- doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript -jason On Nov 17, 2008, at 9:29 AM, ma

Re: GXT vs GWT-EXT ?

2008-11-17 Thread glidealong
for our application i had tried gwt-ext first bcuz of the licensing issues and the maturity, at that point gwtext was running 2.0.1 and gxt was getting it's 1.0 release. so lot's of api's and functionalities were missing in gxt compared to gxt. but sooner than later i found out it was really thor

logging system property

2008-11-17 Thread David Durham, Jr.
Hi all, I'm trying to setup log4j with GWT in hosted mode, and it looks like GWT will set the system property org.apache.commons.logging.Log to something like: com.google.gwt.dev.shell.tomcat.CommonsLoggerAdapter I did a search through the GWT code for "commons": http://tinyurl.com/5wcgz

Re: calling new DOMParser()

2008-11-17 Thread olivier nouguier
All included js are accessible through the $wnd pointer on hosting page. You should try something like (I don't know if it is js correct ). private native void test() /*-{ var x = new $wnd.DOMParser(); }-*/; On Mon, Nov 17, 2008 at 5:29 PM, markww <[EMAIL PROTECTED]> wrote: > > H

calling new DOMParser()

2008-11-17 Thread markww
Hi, I'm wrapping some native javascript code which calls: var x = new DOMParser(); This call results in an exception being thrown, stating that DOMParser cannot be found. I'm testing it like: private native void test() /*-{ var x = new DOMParser(); }-*/; I don't know much

Tree Key Preview

2008-11-17 Thread Jose Santa Elena
Hi all... When I press any key (i.e: Alt) with my Tree selected, it refreshs! Is it normal?! --~--~-~--~~~---~--~~ 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-

Re: how to change response in order to open excel

2008-11-17 Thread woody
I know that the example builds a string containing html and opens the html with excel. But in the jsp app of my collegue it looks okay. Your approach seems to point me into the right direction. I'm using gwt-ext and the data which I want to export to Excel is already available in the frontend. Tha

Re: how to change response in order to open excel

2008-11-17 Thread woody
The stachtrace looks like this: javax.servlet.ServletException: Content-Length must be specified at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:131) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.j

Re: Pagination Widget?

2008-11-17 Thread Isaac Truett
Suri, PagingScrollTable gets data from a TableModel using a Request/Callback mechanism similar to RPC. The simplest way to get that data from the server would be to implement TableModel and have onRequest() invoke an RPC service. The RPC AsyncCallback's onSuccess() would call the table Callback's

Re: how to change response in order to open excel

2008-11-17 Thread Lothar Kimmeringer
woody schrieb: > The stachtrace looks like this: > javax.servlet.ServletException: Content-Length must be specified > at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 > (RPCServletUtils.java:131) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent >

Re: how to change response in order to open excel

2008-11-17 Thread woody
The stachtrace looks like this: javax.servlet.ServletException: Content-Length must be specified at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:131) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.j

Re: how to change response in order to open excel

2008-11-17 Thread woody
The stachtrace looks like this: javax.servlet.ServletException: Content-Length must be specified at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:131) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.j

Re: Pagination Widget?

2008-11-17 Thread Suri
Hi Isaac, I understand quite a bit of the code now and how to use it. I set up a simple example that uses the ScrollTableDemo like code initially to understand what's going on. However, there is one aspect I'm not able to understand clearly. Could you possibly help me understand how the Data is re

Re: Client Side Checked Exceptions

2008-11-17 Thread [EMAIL PROTECTED]
Turns out it was just not catching NullPoiterException. probably related to the difference between null and undefined On Oct 28, 5:20 pm, Ravi M <[EMAIL PROTECTED]> wrote: > Stephen > > I _think_ Lothar's point is that MyException needs to extend > com.google.gwt.user.client.rpc.SerializableExcep

Re: implement Rest with RequestBuilder

2008-11-17 Thread Thomas Broyer
On 14 nov, 15:34, jake H <[EMAIL PROTECTED]> wrote: > Hello , > I m trying to implement Rest 'commands' , like PUT or DELETE with > RequestBuilder. s/implements Rest 'commands'/use HTTP methods/ > As much as i read, i saw that we can avoid them by using POST and > modifying the header. You'd f

GWT, Netbeans and debugging

2008-11-17 Thread Rick
I have been working on a GWT project with Netbeans and the client side debugging in hosted mode has stopped working. I created a test helloworld project from scratch and the debugging works fine there. I am using gwt4nb and I created another test project, copied over all my sources but used all ne

Re: Limits to byte[] size in RPC?

2008-11-17 Thread Matt Bishop
If you have time, please prepare a bug report. Regardless of the real- world use case, this should be addressed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, sen

Re: missing images in IE

2008-11-17 Thread mon3y
Hi I don't quiet understand the problem. FlexTable table = new FlexTable(); Image img = new Image("icons/img.png"); table.setWidget(0, 0, img); Image img2 = new Image("icons/img2.png"); table.setWidget(0, 0, img2); should it not be : Flex

Re: how to change response in order to open excel

2008-11-17 Thread Lothar Kimmeringer
woody schrieb: > > I always got a Internatl Server Error 500 when calling the servlet. > Does anybody has an idea. The Logfile should contain more than this (e.g. a stacktrace) to let you track down the specific problem. Regards, Lothar --~--~-~--~~~---~--~~ Yo

My Hack to Get The Browser Scrollbars Useable

2008-11-17 Thread Adligo
Hi All, So I just reworked adligo.com to use all mostly gwt (did some basic animation). One thing I got caught on for a bit was the browser scroll bar was disabled when the content was longer than the browser window. The fix ended up being; rootPanel = RootPanel.get(); rootPanel.setStyleNam

Re: how to retrive images from client side to server side

2008-11-17 Thread mon3y
how did you know i was a sir? Code snippet from your client and server side would be nice, so we can try and see where you are going wrong, :) mon3y On Nov 17, 8:14 am, avd <[EMAIL PROTECTED]> wrote: > dear sir, > i want to know that how server can get images that are exists at > client side.Be

Re: implement Rest with RequestBuilder

2008-11-17 Thread Jim Freeze
Hi Jake My RESTRequestCallback is just a wrapper for now. Here is the code: import com.google.gwt.http.client.Request; import com.google.gwt.http.client.Response; public interface RESTRequestCallback { void restRequestCallback(int status, String body); } This may need to change in the futur

how to change response in order to open excel

2008-11-17 Thread woody
Hi, I don't know if it is possible, but I'm trying to make a call to a HttpServlet from a GWT app. The response should force the browser to open excel with the returned data. In one of our jsp apps we are doing something like this: private void openResponse(HttpServletResponse res, boolean expor

Re: Observer pattern on this design, yes or no/how and why?

2008-11-17 Thread gregor
this is a good post about opening windows in various ways and their implications: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/1bbdece5faa96018/0a2585172e66a671?lnk=gst&q=open+separate+window#0a2585172e66a671 On Nov 17, 11:54 am, gregor <[EMAIL PROTECTED]> wrote: > Cl

Re: Observer pattern on this design, yes or no/how and why?

2008-11-17 Thread gregor
Clearly if a module is using a class declared in another module it must explicitly inherit the other module in it's module.get.xml file otherwise the GWT compiler won't have access to the class's source which it needs. Frankly I'm not sure how this would work in the situation as you describe sinc

Re: implement Rest with RequestBuilder

2008-11-17 Thread jake H
ty a lot !! One question about doDelete. What am i supposed to write for 'RESTRequestCallback restCallback' private class RESTRequestCallback implements RequestCallback { public void onError(Request request, Throwable exception) { } public void onResponseReceived(Request reques

Re: Any free UI designer available for Eclipse?

2008-11-17 Thread Lonifasiko
Thanks for pointing me to the Netbeans option. Nevertheless, must say that it's so similar to the one for Eclipse, that even does not allow visual web development. Although not for free, I think I should take a look at GWT Designer. Anyway, I'll keep an eye on these other plugins... Thanks very

Re: Observer pattern on this design, yes or no/how and why?

2008-11-17 Thread mives29
The problem is im using two entrypoints, running on two windows, where the 2nd composite is shown thru Window.open(). I need the first entrypoint's composite to listen to the second entrypoint's composite, but I cant do that since the second entrypoint's composite is instantiated on the second com

Re: GWT-Ext Instant Messenger Attempt

2008-11-17 Thread eggsy84
I've never done any GWT-Ext programming but as its a build upon GWT. To perform the items at runtime surely you can simply do: button.addClickListener(new ClickListener() { public void onClick(Widget sender) { String message = myTextField.getText(); // Do something? }

Re: Limits to byte[] size in RPC?

2008-11-17 Thread Axel
> That's a good guess, but you have to remember one thing: Javascript's > only number type is equivalent to Java's double.  It's been a while > since I've looked at the RPC internals, so things may have changed, > but it has been true that a byte[] would be converted into the > equivalent of a dou

Re: errors with inherited own module

2008-11-17 Thread pepgrifell
We are moving an existing project to GWT and the project has a lot of sub-projects (JAR's) that use these classes. If I change the package to be unique, I will have to change lots of classes that were using classes in Keys.jar !!! On 14 nov, 14:13, gregor <[EMAIL PROTECTED]> wrote: > Hi Pepgrifel

Re: Observer pattern on this design, yes or no/how and why?

2008-11-17 Thread mives29
I tested it on same module, this implementation of the observer pattern works. however, when using this on two modules it doesn't. Do I need to do deferred binding here? I hope not coz I dont know how to. =) On Nov 17, 1:29 pm, mives29 <[EMAIL PROTECTED]> wrote: > oops CnP mistake. on this line: