help with jsni

2010-05-03 Thread rjcarr
I've recently began using a javascript library that is based on (requires) jquery so I'll be needing to write a lot more JSNI than I have in the past. I've actually got jquery working with jsni without too much trouble, but now I'm having problems with data types. I struggled quite a bit getting

Re: TabPanel broken in new Chrome version

2010-05-03 Thread Frank
I starred it and added a reply with my findings about the issue. On 30 apr, 15:23, Steve strat...@gmail.com wrote: The issue is 4698 - you might want to star it. On Apr 30, 9:21 am, Steve strat...@gmail.com wrote: I believe I already submitted this as a GWT bug. Was driving me crazy

Re: help with jsni

2010-05-03 Thread Sripathi Krishnan
Have you tried using Javascript Overlays? See this page - http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html It allows you to pass objects back and forth, including JsArray. It has an example of JsArrayCustomer that you could peruse. --Sri On 3 May 2010 12:09, rjcarr

Re: help with jsni

2010-05-03 Thread Robert J. Carr
Hi Sri- That's a great reference, thanks, but it is effectively what I'm already doing (just encapsulating it better). I think my point is, in the example they gave: class JsArrayE extends JavaScriptObject extends JavaScriptObject { ... } I feel this should be part of the standard library.

Re: What is the point of ensureInjected?

2010-05-03 Thread opn
Don't know either, would like to know. What problem can occur when i dont use it? cause i am not using it right now (ensureInjected()) and everything works pretty well! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: help with jsni

2010-05-03 Thread Robert J. Carr
Ah ... spoke too soon. You'll see in the collections examples the constructors are still protected, i.e., they still need to be created by the underlying javascript (which is sketchy). Anyway, it seems if I encapsulate all of the creation and manipulation of the array it will be transparent, I'm

Re: help with jsni

2010-05-03 Thread Sripathi Krishnan
You'll see in the collections examples the constructors are still protected, i.e., they still need to be created by the underlying javascript (which is sketchy). You could also write it like this // Return the whole JSON array, as is private final native JsArrayCustomer getCustomers()

Re: Synchronized RPC requests

2010-05-03 Thread mmoossen
now improved patch providing a simple to use @SynchronizedRpcRequest annotation ;) HTH Michael On Apr 29, 4:20 pm, mmoossen mmoos...@gmail.com wrote: Dear all! i just submitted a patch for sync-rpc:http://code.google.com/p/google-web-toolkit/issues/detail?id=4898 may be somebody can use

Re: help with jsni

2010-05-03 Thread Thomas Broyer
On May 3, 9:30 am, Robert J. Carr rjc...@gmail.com wrote: Ah ... spoke too soon.  You'll see in the collections examples the constructors are still protected, i.e., they still need to be created by the underlying javascript (which is sketchy). JsArrayString listOfStrings =

Re: help with jsni

2010-05-03 Thread Robert J. Carr
Thanks for the pointer, clearly I didn't know that existed or I wouldn't have made the standard library comment. On Mon, May 3, 2010 at 1:50 AM, Thomas Broyer t.bro...@gmail.com wrote: On May 3, 9:30 am, Robert J. Carr rjc...@gmail.com wrote: Ah ... spoke too soon.  You'll see in the

Re: GWT not using CssResources??

2010-05-03 Thread Ed
Hi, I opened an issue in the issue tracker concerning above problems: http://code.google.com/p/google-web-toolkit/issues/detail?id=4903 Let's hope enough people experience the same problems (and vote the issue) such that improvements are made. -- You received this message because you are

Re: RichTextArea - onBlur not getting called

2010-05-03 Thread chillyspoon
Ok - this might catch out other folks even though it was something of a donkey moment. I was adding the HandlesAllFocusEvents instance as a FocusHandler .. so of course onBlur would never be called. I would need to also add the same instance as a BlurHandler for that to be the case. :) On May

Setting GWT project from existing GWT project code.

2010-05-03 Thread vinayak
Hello, There are several posts in this group which ask about how to integrate gwt project inside another type of projects but my question is different and simple too. I have created a gwt project and developed it to certain extent and now I want to give this code to my

How to use AOP for GWT RemoteServlets

2010-05-03 Thread kirti
Hi!!! I followed this article http://code.google.com/p/gwt-ent/wiki/AOP and included gwt-ent jar in my project. Then I tried writing interceptors for impl class that extends gwt RemoteServiceServlet, but those are not getting executed. I made this servlet class implement Aspectabe interface, not

How to create Save as button ?

2010-05-03 Thread vmastermac
Hi. I'm wondering, how to save file ( that means - text from TextArea). Is there any special option, function in GXT or GWT ? How to create Save as button ? Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: how to send data to google app engine datastore api

2010-05-03 Thread naeem
HERE IS AN EXAMPLE FOR U https://docs.google.com/leaf?id=0B8-wIQvtpx2WYWIxOTllYTktZjlkYS00YjdkLWEwNjQtNjU2MDdiMDZkZTEwhl=en I also have the same problem in netbeans. would u like to help me? -- You received this message because you are subscribed to the Google Groups Google Web

How to show different hyperlinks depending on user roles.

2010-05-03 Thread marypfc
Hi! I'm building a user interface which has a sidebar. This sidebar should show different hyperlinks depending on the user roles, so login must be done previously. I was building the sidebar widget with all possible links and trying to make those links that are not related to the user roles

GTW - getting started (Eclipse+widnows7)

2010-05-03 Thread clicko
Hi there, I am still trying to start building apps with google web toolkit. It's seams wery hard to me. I can't start project, I really don't know what is problem with this google web toolkit... I think that this should be wery easy to use. But I can't wrote my frst progra - hello world! I

Handling mouse double click event in GWT 2.0.3

2010-05-03 Thread Nguyen
I have a flextable and want to handle mouse double click for rows. Could you please show me how to get it done. TableListener is marked as deprecated as version 2.0.3. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: The repository works fine - but Eclipse under Ubuntu 10.04 not.. :-(

2010-05-03 Thread Rytis
This is probably your problem and solution http://rytisb.com/lite/2010/05/ubuntu-10-04-lucid-lynx-getting-gwt-to-play-nice-in-eclipse/ On Mar 13, 1:34 pm, Makielski makiels...@googlemail.com wrote: I tried to install the Plugin under WinXP. Here it works. The repository works fine - but

Re: Sprite image mechanism problem on IE

2010-05-03 Thread jgonian
Related Issue (4521): http://code.google.com/p/google-web-toolkit/issues/detail?id=4521q...@sprite%20background On Mar 8, 6:41 pm, Michel micg...@gmail.com wrote: I am facing a problem when usingspriteimages in my CssResource class. Problem occurs when creating a CSS styled menu with UL and LI

GWT 2.0 + jetty continuation

2010-05-03 Thread Michał Jabłoński
I've got some problem with integrating GWT 2.0 with jetty continuation. There problem is I made default GWT application in eclipse, added jetty-gwt-7.0.0.pre5.jar servlet-api-3.0.pre1.jar to war/WEB-INF/lib and class path and changed in server class only RemoteServiceServlet to

Re: How to create Save as button ?

2010-05-03 Thread Sripathi Krishnan
You can't directly save the contents of a text area as a file - its a security threat. You have to send the data to your server as a POST request, and then send it back to the client with Content-Disposition:attachment http response header. --Sri On 2 May 2010 15:33, vmastermac

Problem with Window.ClosingHandler

2010-05-03 Thread Bruno Santos
I am using: Window.addWindowClosingHandler(new ClosingHandler() { public void onWindowClosing(ClosingEvent event) { somethingService.logout(new AsyncCallbackVoid() { public void onFailure(Throwable caught) { }

Re: Any svn users? Which folders / files can we ignore?

2010-05-03 Thread andrew_d_mackenzie
Hi DJ, I hope you don't mind me expanding on your question a bit, as I had similar doubts. In my /war folder I had ignored everything (recursively) initially, then I have selectively added to source control (svn) the source files I have gradually been adding in /war, like: - favicon.ico -

Re: -- 'com.google.gwt.core.client.RunAsyncCallback'

2010-05-03 Thread Naveen
Got a simple solution for all my probs.. use webappcreator for building the build.xml... this will solve most or all the issues relating to classpath I made a mistake of trying to construct my own which caused me all these issues.. Thanks for all your suggestions... On Apr 27, 9:32 pm,

GWTTestCase browser not using history

2010-05-03 Thread Oliver Uvman
Hello! So I was unittesting my history handler and found some errors. When used in my project, the HistoryHandler works, with back/forward buttons, bookmarks, etc. In my unit-tests, however, it doesn't. Am I doing something wrong here? The unit testing code basically looks like this:

Re: GWTTestCase browser not using history

2010-05-03 Thread Thomas Broyer
On May 3, 4:54 pm, Oliver Uvman embry...@gmail.com wrote: Hello! So I was unittesting my history handler and found some errors. When used in my project, the HistoryHandler works, with back/forward buttons, bookmarks, etc. In my unit-tests, however, it doesn't. Am I doing something wrong

Re: Problem with the datebox : handling to value change events when setting a format

2010-05-03 Thread Fabio
Same problem. On 24 mar, 12:38, Diego Alvarez Araujo Correia dal...@gmail.com wrote: Hi Youen,           I'm facing the sameproblemhere.           After I set theformatof adatebox(and I do it only once) everytime Ichangethevalueof the widget it throws two ValueChangeEvent.           It

Re: uiBinder with RootLayoutPanel problem

2010-05-03 Thread suresh
Sorry. I put the code in reverse order. Option 1) RootPanel root = RootPanel.get(module1); - working Option 2) RootLayoutPanel root = RootLayoutPanel.get(); - not working with jsp headers and footer. Option 1 is working but when the page is re-sized, the page is displayed unnecessary scroll

Re: GWT - Visualization of graph/tree containing nodes and edges, moving and adding nodes...

2010-05-03 Thread leyg
Thanks very much Peter! That helpted a lot, i was nearly getting crazy because of that :) I put a comment on the wiki of raphaelgwt, so that everybody knows how to configure it easily with the .jar-file... Its because the distribution (raphaelgwt-r16.zip), by extracting it, there are nowhere in

Re: Problem with Window.ClosingHandler

2010-05-03 Thread mmoossen
Hi Bruno! the problem is that RPC methods are async, so you fire the RPC request, and the page is unloaded before the request finishes, leaving your app in a unknown state. my solution is to teach gwt to handle sync rpc requests. see

Chrometric - simulates color blindness with GWT+AIR (using Aptana)

2010-05-03 Thread Marc Englund
Hi, I've just released a free tool called Chrometric; it simulates eight types of color blindness, blur (forgotten glasses), and reduced contrast (a.k.a my laptop screen on a sunny day). It is essentially a browser, and allows you to check webpages. http://enably.com/chrometric Chrometric is a

Re: new GWT MVP article (part 2)

2010-05-03 Thread Manuel Carrasco Moñino
Hello there, IMHO, one of the issues of MVP and Gwt is the lack of good examples showing how to use all the layers (including command pattern, injection and event bus), how to test all the code, and how to integrate the set of libraries available. Taking the project Hupa as reference, I have

Could not get the encoding property.

2010-05-03 Thread Jeff Chimene
Only in ie 6 7, gwt 2.0.3 17:15:00.305 [ERROR] [XXX] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (Error): Could not get the encoding property. Invalid argument. number: -2147024809 description: Could not get the encoding property. Invalid argument. The stack

non-widget views in mvp

2010-05-03 Thread Stephen Haberman
Hi, Just curious, is anyone doing non-Widget views in an MVP app? Coming from gwt-presenter, it has a Display and WidgetDisplay, where WidgetDisplay has a Widget asWidget method, but Display doesn't (the idea being Display is not tied to Widget, I guess). However, I only use WidgetDisplay.

Unable to work with FastTree from incubator project

2010-05-03 Thread Subhrajyoti Moitra
Hello, I am using com.google.gwt.widgetideas.client.FastTree from the incubator project along with UiBinder. I cant seem to add new FastTreeItem to the the tree object and see the updated values in the view. public class NavigatorView extends Composite implements INavigatorDisplay { public

Re: new GWT MVP article (part 2)

2010-05-03 Thread Mike
You can download the project and play with it: svn checkouthttp://gwt-workshop.googlecode.com/svn/trunk/GwtWsMvpContacts GwtWsMvpContacts mvn clean test gwt:run package Looks very interesting. I've downloaded the project and imported to Eclipse (don't have Maven yet). First question: The

[gwt-contrib] Re: How to serialize client side objects to string?

2010-05-03 Thread mmoossen
i got it working the problem was that i was using com.google.gwt.user.RemoteServiceObfuscateTypeNames in my module but my faked SerializationPolicy does not implements TypeNameObfuscator. so the next question is: what is the best approach to get the right SerializationPolicy for

[gwt-contrib] Question about CompilePerms and adding gwt module source at runtime.

2010-05-03 Thread Marko Vuksanovic
I am trying to distribute my gwt build process so that compilePerms step is executed on a remote machine. I am making a small java program for that purpose. I have successfully transfered the result of the Precompile step to the other computer as well as the source files... So I now have a folder

[gwt-contrib] Re: Question about CompilePerms and adding gwt module source at runtime.

2010-05-03 Thread Marko Vuksanovic
I solved the problem... This had nothing to do with the GWT. The problem was with adding a folder to java class path dynamically. Although at first I thought I had done it correctly, it turned out that that's a little tricky... For anyone else with the same problem - here's a gist on how to solve

[gwt-contrib] Re: Fixing division by zero while evaluating constant expression. (issue435801)

2010-05-03 Thread spoon
LGTM http://gwt-code-reviews.appspot.com/435801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: CFG: fixing case fallthrough. (issue434801)

2010-05-03 Thread spoon
LGTM I tricked myself into thinking fallthrough work, because fallthrough does happen from a statement to the following case: node. However, the case: node turns into a conditional, so it's important to skip that conditional if there's a fallthrough. I'm surprised this hasn't bitten more

[gwt-contrib] Re: Introducing TOP value for constants analysis and using it (issue436801)

2010-05-03 Thread spoon
This is a great change! It simplifies the setup code for constant analysis, and it means that the common case of a top assumption doesn't require an explicit entry in the map. Some small changes are requested in the implementation. http://gwt-code-reviews.appspot.com/436801/diff/1/2 File

[gwt-contrib] Re: Fix zero-padding of 4-digit year patterns. (issue433801)

2010-05-03 Thread rchandia
Needs work. There is a discrepancy between the documentation and the proposed implementation. For example for year 1996 and y the documentation says 01996 should be printed. But the proposed fix would print 1996 instead as it only pads patterns. Zero padding by default (that is, for

[gwt-contrib] Correcting the output names for SoycTest.java (issue442801)

2010-05-03 Thread fabbott
Reviewers: Lex, Description: Correcting the output names for SoycTest.java Review by: sp...@google.com Please review this at http://gwt-code-reviews.appspot.com/442801/show Affected files: M dev/core/test/com/google/gwt/dev/SoycTest.java Index:

[gwt-contrib] Re: Correcting the output names for SoycTest.java (issue442801)

2010-05-03 Thread Freeland Abbott
I'd been tracking down this error, which was initially convolved with some code I'd added to Hello for an unrelated issue I was tracking with Kathryn... but I don't have a good explanation why I'm now seeing zero-based values. But it seems, AFAICT, legit On Mon, May 3, 2010 at 1:43 PM,

[gwt-contrib] Re: Correcting the output names for SoycTest.java (issue442801)

2010-05-03 Thread spoon
LGTM Let's not quibble about the exact numbers right now. There was a lot of discussion about them, but I can't remember what the decision was. The important thing now is that the test passes. If someone can argue the number should be different, let's file that as a separate bug.

[gwt-contrib] Re: Fix zero-padding of 4-digit year patterns. (issue433801)

2010-05-03 Thread jat
http://gwt-code-reviews.appspot.com/433801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Fix zero-padding of 4-digit year patterns. (issue433801)

2010-05-03 Thread rchandia
LGTM http://gwt-code-reviews.appspot.com/433801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Edit views can now display errors. Weak in that they implement (issue444801)

2010-05-03 Thread rjrjr
Reviewers: amitmanjhi, Description: Edit views can now display errors. Weak in that they implement ShowErrors(MapString, String) rather than ShowErrors(MapProperty?, String), but it's a start. Please review this at http://gwt-code-reviews.appspot.com/444801/show Affected files: M

[gwt-contrib] Re: How to serialize client side objects to string?

2010-05-03 Thread mmoossen
i thought i was subscribed to lombardi dev channel, but i was not :( but now i am, at least i hope so ;) thanks for the ref Michael On May 3, 11:34 am, Thomas Broyer t.bro...@gmail.com wrote: On May 3, 10:32 am, mmoossen mmoos...@gmail.com wrote: i got it working the problem was that

[gwt-contrib] [google-web-toolkit] r8027 committed - Edit views can now display errors. Weak in that they implement...

2010-05-03 Thread codesite-noreply
Revision: 8027 Author: rj...@google.com Date: Mon May 3 09:01:39 2010 Log: Edit views can now display errors. Weak in that they implement ShowErrors(MapString, String) rather than ShowErrors(MapProperty?, String), but it's a start. Review at http://gwt-code-reviews.appspot.com/444801 Review

[gwt-contrib] Re: Fix GWT logging in Devmode (issue437801)

2010-05-03 Thread scottb
I think DevModeLogManager still needs some work, the rest is just style stuff. http://gwt-code-reviews.appspot.com/437801/diff/1/3 File /dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java (right): http://gwt-code-reviews.appspot.com/437801/diff/1/3#newcode43

[gwt-contrib] Re: Implement GWT logging (issue438801)

2010-05-03 Thread unnurg
http://gwt-code-reviews.appspot.com/438801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Added server side validation using JSR 303. On the server side, one can now do (issue450801)

2010-05-03 Thread amitmanjhi
Reviewers: Ray Ryan, Description: Added server side validation using JSR 303. On the server side, one can now do validations before persisting an entity. Also, added a callback for sync request so that any validation errors can be shown on the client. Patch by: amitmanjhi Review by: rjrjr (desk

[gwt-contrib] Re: Implement GWT logging (issue438801)

2010-05-03 Thread fredsa
Sorry I wasn't clear on the add/setWidget comment. http://gwt-code-reviews.appspot.com/438801/diff/1/5 File /user/src/com/google/gwt/logging/client/BasicLoggingPopup.java (right): http://gwt-code-reviews.appspot.com/438801/diff/1/5#newcode55

[gwt-contrib] Re: Implement GWT logging (issue438801)

2010-05-03 Thread unnurg
http://gwt-code-reviews.appspot.com/438801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Implement GWT logging (issue438801)

2010-05-03 Thread unnurg
On 2010/05/04 01:02:17, unnurg wrote: We think that the latest changes to the DevMode fix CL (437801) which not only gives the server and client their own root logger, but now gives each client thread their own root logger, will fix the extra handlers issue, so that code is removed.

[gwt-contrib] Re: Implement GWT logging (issue438801)

2010-05-03 Thread unnurg
http://gwt-code-reviews.appspot.com/438801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Moved the showErrors method into the generator. (issue451801)

2010-05-03 Thread amitmanjhi
Reviewers: Ray Ryan, Description: Moved the showErrors method into the generator. Patch by: amitmanjhi Review by: rjrjr (desk review) Please review this at http://gwt-code-reviews.appspot.com/451801/show Affected files: M trunk/bikeshed/src/com/google/gwt/app/client/EditorSupport.java M

[gwt-contrib] Re: Fix GWT logging in Devmode (issue437801)

2010-05-03 Thread unnurg
all done http://gwt-code-reviews.appspot.com/437801/diff/1/3 File /dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java (right): http://gwt-code-reviews.appspot.com/437801/diff/1/3#newcode43 /dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java:43: * should be

[gwt-contrib] Re: Fix GWT logging in Devmode (issue437801)

2010-05-03 Thread unnurg
http://gwt-code-reviews.appspot.com/437801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] The scaffold app is now a master / detail app. And it even warns (issue452801)

2010-05-03 Thread rjrjr
Reviewers: cromwellian, Description: The scaffold app is now a master / detail app. And it even warns you of unsaved changes. Review by: cromwell...@google.com Please review this at http://gwt-code-reviews.appspot.com/452801/show Affected files: M

[gwt-contrib] Re: The scaffold app is now a master / detail app. And it even warns (issue452801)

2010-05-03 Thread rjrjr
Ray, if you manage to review this tonight I'll submit it tonight. http://gwt-code-reviews.appspot.com/452801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors