Composite - capture arrow keys

2010-05-15 Thread HBA
Hi, I have written a small widget by extending the Composite (containing a flowPanel, image lable). I'm using the onBrowserEvent method to handle mouse clicks. That works well. However, now I'm trying to capture arrow key events. I'm not able to capture any keyboard events at all. I have

Re: Composite - capture arrow keys

2010-05-15 Thread rjcarr
Instead of adding your event handlers to your composite you should instead add them to the main component in your widget. Since you need to capture mouse and key events you'll want to use a FocusPanel (instead of a FlowPanel). You'll want to add a ClickHandler and one of the Key Handlers to the

Re: About Date object in GWT

2010-05-15 Thread rjcarr
What Jim said, or: com.google.gwt.i18n.client.DateTimeFormat On May 14, 7:00 pm, Jim Douglas jdoug...@basis.com wrote: Just use java.util.Date; ignore the deprecation warnings. On May 14, 6:13 pm, Sabbir leo.sh...@gmail.com wrote: the methods in Date objecat as getTime, getHour, etc are

Re: Code to run server or client with XML + XML-to-string

2010-05-15 Thread rjcarr
There are probably hundreds of java xml libraries out there to use. Also, you should read this: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsXML.html On May 12, 10:52 pm, MH zvi.schrei...@gmail.com wrote: I want to write some Java code that can run either server-side or in

Re: Large GWT project source code organization

2010-05-15 Thread Frederic Conrotte
Anyone ? I might ask the question in a different way: Do you see any potential issues in putting all JPA entities, webservices, JMS listener etc on the same Eclipse project than client side GWT code ? On 14 mai, 08:43, Frederic Conrotte frederic.conro...@gmail.com wrote: Hello On a large

Re: Large GWT project source code organization

2010-05-15 Thread mariyan nenchev
Hi, people may not answer, because gwt + jpa (or ejb) is not very popular combination. I suggest you make different project(archive) for every module. If you manage (i didn't fully managed yet) to combine them will you could use dev mode and ejb stuff together. There are many

gwt

2010-05-15 Thread Muhammad Saifullah
how can i check that browser supports JS or cookie from GWT?? -- 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

Re: Large GWT project source code organization

2010-05-15 Thread Stefan Bachert
Hi, I prefer option 3 - making a war with GWT-GUI and marshalling data till your container. - connecting to a stub simulating your server side app. Separate project, maybe jar - connecting to your server/model/business logic which any technique you like. Separate project, maybe jar There is no

Re: Large GWT project source code organization

2010-05-15 Thread Stefan Bachert
Hi mariyan, I am about to do JPA with my GWT project. Do you see some problems? Is something wrong with this combination? (The JPA will be rather simple, just a few classes(entities) Stefan Bachert http://gwtworld.de On 15 Mai, 14:39, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi,

Re: GWT Sprite adds height attribute in the style class

2010-05-15 Thread Stefan Bachert
Hi, did you try to overwrite height in your css? @sprite .MarkitButton { gwt-image : MarkitButtonBG_sm; height: none; Did not try, may work or not. Stefan Bachert http://gwtworld.de On 14 Mai, 22:13, Vaibhav vkaka...@gmail.com wrote: Hi,       I have implemented

Re: New to GWT

2010-05-15 Thread Stefan Bachert
Hi, there are some books (mostly based on GWT 1.4 - 1.6). However, there are outdated when they are coming out. Stefan Bachert http://gwtworld.de On 14 Mai, 19:53, aditya sanas 007aditya.b...@gmail.com wrote: Hi, There are few GWT tutorials available online some f them are PPTs but

Re: Development mode problem: Keep asking to install plugin

2010-05-15 Thread Olivier Monaco
Vj, This question is like what gaz to put in my car... which browser do you use? I had a similar issue with Firefox 3 under Debian Lenny (Linux). The problem comes from the firefox profile. I've done some manual cleaning (I don't remember what) and that worked. Maybe your problem... Olivier On

Re: GWT.isClient() always return true

2010-05-15 Thread Olivier Monaco
Hi, Great programmers write docs, like JavaDoc. Please respect their work by reading it. http://www.catb.org/~esr/faqs/smart-questions.html#before Olivier On 15 mai, 15:53, fonghuangyee fonghuang...@gmail.com wrote: Hi, I dun know why GWT.isClient() always return true even in web mode.

Re: Synchronous Calls with RPC??

2010-05-15 Thread Stefan Bachert
Hi, when the RPC is complete you get an event They are rare situations in which synchronous calls are appropriate. One was discussed and contributed recently by mmoossen http://code.google.com/p/google-web-toolkit/issues/detail?id=4898 Stefan Bachert http://gwtworld.de On 14 Mai, 17:05,

Debugging generated classes

2010-05-15 Thread Stefan Bachert
Hi, is there a way to debug through generated classes? How to supply the appropriate sources? Stefan Bachert http://gwtworld.de -- 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: Large GWT project source code organization

2010-05-15 Thread mariyan nenchev
I was referring to ejb (and JPA) with gwt. It is little tricky but it is doable. I didn't managed to run gwt part in dev mode because i faced problems while trying to integrate maven with the first version of the gwt eclipse plugin(some thing went wrong, but i think the newer version is fine). But

Re: Large GWT project source code organization

2010-05-15 Thread mariyan nenchev
I did use hibernate + gwt before about 2 years. I had two projects: one for the entities and one for gwt client/server part. Services and DAOs were in the server part and the client accessed everything through with DTOs (which were on the client side). I don't see any reason using only jpa(without

Re: New to GWT

2010-05-15 Thread Frederic Conrotte
Upcoming book on GWT2: http://www.amazon.com/Essential-GWT-Building-Toolkit-Developers/dp/0321705149 On 15 mai, 16:26, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, there are some books (mostly based on GWT 1.4 - 1.6). However, there are outdated when they are coming out. Stefan

Adding source code to GWT project from other projects

2010-05-15 Thread arkady
Hello, I have multiple projects that I build together via maven. One of them is a web application with GWT, I am trying to import some of the source code from other projects to use on the client side. I have made everything serializable, but upon compilation GWT cannot find source. [INFO]

Re: Adding source code to GWT project from other projects

2010-05-15 Thread Arkady Kamenetsky
I want to add that the projects build together and the code shared between all modules. I have no problem importing the actual objects within the GWT server side, but the client does not see it. On Sat, May 15, 2010 at 3:36 PM, arkady arkad...@gmail.com wrote: Hello, I have multiple projects

Re: Adding source code to GWT project from other projects

2010-05-15 Thread kozura
You need to add an inherit statement to the main project's xml to inherit the xml modules from the other projects, and of course ensure that source java files from them are in the main project's classpath. Here's some doc on modules:

Re: How do I register a window blur handler

2010-05-15 Thread Thomas Broyer
On 14 mai, 05:15, Joe Hudson joe...@gmail.com wrote: Hello, I'd like to be able to handler the window blur event but do not see an addBlurHandler on the Window object.  Could you please tell me how to do this? Use JSNI for now:

Re: GWT Sprite adds height attribute in the style class

2010-05-15 Thread Thomas Broyer
On 14 mai, 22:13, Vaibhav vkaka...@gmail.com wrote: Hi,       I have implemented ClientBundle in my application and so far it is working fine until I came across this issue. I have a css class which has a background image so I defined it as a sprite in my css. I am using this css class on

Re: Composite - capture arrow keys

2010-05-15 Thread HBA
Thank you! That worked perfectly. On May 15, 3:05 am, rjcarr rjc...@gmail.com wrote: Instead of adding your event handlers to your composite you should instead add them to the main component in your widget.  Since you need to capture mouse and key events you'll want to use a FocusPanel

Re: TabLayoutPanel with scroll buttons

2010-05-15 Thread dayre
Awesome. This saved me a few days work ! Thank you ! Small error, forgot to initialize the local image vars in the constructor though: ... super(barHeight, barUnit); this.leftArrowImage = leftArrowImage; this.rightArrowImage = rightArrowImage;

Force application javascript to be reloaded in the browser

2010-05-15 Thread kedar
I would like to make changes to either the client or server code and deploy these changes to tomcat while the application is in production with users logged on. In some cases where there are many changes, I would like to force the user to reload the html page (ie gwt application) and relogin.

Inherit service interface from server side

2010-05-15 Thread Frederic Conrotte
Hello In traditional JEE development you usually declare your service interface and related implementation on the server side and expose it to the client. With GWT it seems from the documentation and samples that the server side interface you want to call from the client side MUST be declared on

Re: Debugging generated classes

2010-05-15 Thread Gal Dolber
Add this parameter to the luncher: -gen /{SomeDir} Then when you step through the code and get into the generated class press Attach source and select the {SomeDir} 2010/5/15 Stefan Bachert stefanbach...@yahoo.de Hi, is there a way to debug through generated classes? How to supply the

Re: Lightweight Metrics in Firebug Console -- a bookmarklet

2010-05-15 Thread mmoossen
Hi Sri! i did check these lightweight metrics just a couple of weeks ago programming a small metrics panel, but your solution is far better! Thank you very much for sharing. Michael On May 14, 11:20 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: I created a

[gwt-contrib] [google-web-toolkit] r8153 committed - Fix GWT version in mave_script.sh

2010-05-15 Thread codesite-noreply
Revision: 8153 Author: rj...@google.com Date: Sat May 15 02:02:45 2010 Log: Fix GWT version in mave_script.sh http://code.google.com/p/google-web-toolkit/source/detail?r=8153 Modified: /branches/2.1/bikeshed/scripts/dataPopulator /branches/2.1/bikeshed/scripts/maven_script.sh

[gwt-contrib] [google-web-toolkit] r8154 committed - Modifying an Expense from mobile will now flash the expense on the des...

2010-05-15 Thread codesite-noreply
Revision: 8154 Author: jlaba...@google.com Date: Sat May 15 02:51:39 2010 Log: Modifying an Expense from mobile will now flash the expense on the desktop. http://code.google.com/p/google-web-toolkit/source/detail?r=8154 Modified:

[gwt-contrib] [google-web-toolkit] r8155 committed - Assigning IDs to new expenses manually because GPE is assigning duplic...

2010-05-15 Thread codesite-noreply
Revision: 8155 Author: jlaba...@google.com Date: Sat May 15 08:05:43 2010 Log: Assigning IDs to new expenses manually because GPE is assigning duplicates automatically. Also hard coded the user ID. http://code.google.com/p/google-web-toolkit/source/detail?r=8155 Modified:

[gwt-contrib] [google-web-toolkit] r8161 committed - Handling null values in SortableColumn.

2010-05-15 Thread codesite-noreply
Revision: 8161 Author: gwt.mirror...@gmail.com Date: Sat May 15 22:15:56 2010 Log: Handling null values in SortableColumn. http://code.google.com/p/google-web-toolkit/source/detail?r=8161 Modified: /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/SortableColumn.java