ClickHandler not called on second click

2010-06-01 Thread Danny Goovaerts
I have a button with a ClickHandler. When I move the mouse over the button and click the button, the ClickHandler is called. When I do no move the mouse away from the button, the ClickHandler is not called on any subsequent clicks. I have to move the mouse away from the button and back. Then the

Re: ClickHandler not called on second click

2010-06-01 Thread Olivier Monaco
Danny, I had no problem (in dev mode). Here is my test case: public void onModuleLoad() { Button b = new Button(click me); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) {

Re: Calling Methode using JSNI failed

2010-06-01 Thread Olivier Monaco
And autoboxing does not works in JSNI. th...@de.test.designer::sendNode(Ljava/lang/String;Ljava/lang/ Integer)(TEST,@java.lang.Integer::new(I)(100)); Or change your sendNode method to take an int. Olivier On 1 juin, 04:25, Jim Douglas jdoug...@basis.com wrote: You should start by carefully

Re: Calling Methode using JSNI failed

2010-06-01 Thread Saima Waseem
Make and extra income from home. International company seek motivated individuals to work from home. Positions available data entry, research and more. *http://www.clicknearn.net/3527-8.html*http://www.clicknearn.net/3527-8.html -- You received this message because you are subscribed to the

Re: Updating Google App Engine datastore

2010-06-01 Thread Víctor Mayoral
Could anyone please give me a hand on this? I'm not sure about the path i should follow Thanks On 31 mayo, 19:29, Víctor Mayoral v.mayor...@gmail.com wrote: Hello, I've just an applications using GWT and GAE. After reading the docs and doing some examples I decided to begin coding but soon I

Re: How do you share css resources across multiple modules?

2010-06-01 Thread BimboJones
Hi, You can add stylesheet src='your.css'/ to the *.gwt.xml. On 28 Maio, 15:37, Tobias Herrmann t.herrm...@alkacon.com wrote: No, that is not what I was looking for. I know how to use the same CssResource across several widgets. In my case, I need to share the same resource across several

Re: Using SliderBar from incubator

2010-06-01 Thread mariyan nenchev
How do you create the slider? Try This: SliderBar slider = new SliderBar(0.0, 100.0); slider.setStepSize(5.0); slider.setCurrentValue(50.0); -- 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: Personalized table using thead / tfoot / tbody

2010-06-01 Thread Rizen
I created my table with TableElement and for the moment it seems to be the best way. The code is a little long and complex but less than the DOM.createTable function directly. Do you think the UIBinder is better by using a dynamic table or I can keep TableElement ? -- You received this message

Re: Updating Google App Engine datastore

2010-06-01 Thread Frank Harper
I'm wondering about the same problem. Actually you should ask this question on the GAE list, not on the GWT list. Also when you ask the question, it would help to know which persistence API you are using. 2010/6/1 Víctor Mayoral v.mayor...@gmail.com Could anyone please give me a hand on this?

Re: Updating Google App Engine datastore

2010-06-01 Thread Víctor Mayoral
Frank, Thanks for your answer. I didn't even know that there was a GAE list. Sorry about this. I will put it there, Cheers, Victor. On 1 jun, 12:22, Frank Harper frank.har...@gmail.com wrote: I'm wondering about the same problem. Actually you should ask this question on the GAE list, not on

getAbsoluteTop() / getOffsetHeight() always return 0

2010-06-01 Thread cy dev
i create a custom panel class which draws threads of messages inside. each message (several Labels) is wrapped in a FlowPanel. the flow panels are added to a LayoutPanel which i intend to do some animation. however, i failed to get neither the height nor the position of the flow panels through

Re: Using SliderBar from incubator

2010-06-01 Thread leslie
Hi Thank you both for your responses. I had been using an earlier version of the incubator code but have recently obtained a different version. I've downloaded a version from here...Revision 1747 http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?tm=2 So I obtained the jar

Re: Optimizing Dev Module with user.agent?

2010-06-01 Thread Andrew Hughes
Thanks Thomas, that's a really concise and helpful response :) On Mon, May 31, 2010 at 6:03 PM, Thomas Broyer t.bro...@gmail.com wrote: On 31 mai, 04:27, Andrew Hughes ahhug...@gmail.com wrote: Hi, I'm told that dev mode run's directly against java classes. Could I expect reduced

Re: Modules as directories

2010-06-01 Thread leslie
I discovered part of the the answer to this. I didn't realize that I had an additional attribute in the module element of the xml file called rename-to. So In the xml file of the module directory named bar, the module element looks like module rename-to='bar' Wheres for the other it is simply

Re: Using SliderBar from incubator

2010-06-01 Thread leslie
This one did the trick, inherits name='com.google.gwt.gen2.picker.Picker' / I've removed the previous two entries. I was able to compile, and run and I can move the slider in the desired manner. But I have a warning which I'll ignore for the time being If anyone has thoughts, let me

Re: getAbsoluteTop() / getOffsetHeight() always return 0

2010-06-01 Thread Thomas Broyer
On 1 juin, 13:59, cy dev cydevelo...@gmail.com wrote: i create a custom panel class which draws threads of messages inside. each message (several Labels) is wrapped in a FlowPanel.  the flow panels are added to a LayoutPanel which i intend to do some animation.  however, i failed to get

Problems with embed Flash in GWT

2010-06-01 Thread Florian Rhomberg
Hello! Since yesterday I have tried to add a flash file into my GWT app. The flash file should display an image and has zooming functions. The image is created by a servlet from a base 64 coding. The code works perfectly in Firefox, the image is displayed, but it does not work in IE, Chorme or

Re: Problems with embed Flash in GWT

2010-06-01 Thread mariyan nenchev
Hi, I am no flash expert either. I use flash in my app with pl.rmalinowski.gwt2swf.GWT2SWF. It works good, and very easy. Google for it. Regards. -- 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: Personalized table using thead / tfoot / tbody

2010-06-01 Thread jocke eriksson
Well I thought more like a normal HTMLPanel and a table in it, and you could declare the table as an ui:field and keep your TableElement. 2010/6/1 Rizen vianney.dep...@gmail.com I created my table with TableElement and for the moment it seems to be the best way. The code is a little long and

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

2010-06-01 Thread Mike Jiang
Thanks for a clear desc. What I'd like to say is that the refresh-save is not a new scenario at all for web apps. Actually I have heavily used the history tokens for back/forward/reloading following the sample code of GWT ShowCase. But saving states is a subtle thing for a stateful app. Accord to

Re: Exporting Grid data to MS-Excel

2010-06-01 Thread jhulford
Aside from Sri's advice (which is what my application does), the only way you'll be able to include more than 65536 rows in a single sheet is to produce an xlsx (ie. OOXML) formatted Excel file. However, if you do that, anyone using your application that doesn't have Excel 2007 or newer will have

Re: Which is the best: Hibernate, Ibatis, Toplink??

2010-06-01 Thread Stefan Bachert
Hi, this are not only three products. These are three different concepts. What is best for your project depends on your needs. From GWT side there is no prejudgement Stefan Bachert http://gwtworld.de On 31 Mai, 19:00, fomba collins fomba_coll...@yahoo.com wrote: Hi,     I wish to know which

How to test generators?

2010-06-01 Thread Stefan Bachert
Hi, GWT has these wunderful and powerful generators. But how to test own generators? A unit test may test the result of an generator but not the generator it self. Stefan Bachert http://gwtworld.de -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

2010-06-01 Thread g p
You could look into the Html5' s local storage mechanism for saving your application's state before a reload happens. You can also decide what part of the state you want to save, thus reloading gracefully the most important parts of your application and letting the user do the needed actions to

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

2010-06-01 Thread Ranjan
Simply put, it is impossible to avoid Page reload if the User clicks the 'Refresh' button on the browser. There is no way to avoid it if the user wants to refresh the page. And yes, when the page is refreshed, every object contained within the Page is lost. So you will have to create the whole

Re: ClickHandler not called on second click

2010-06-01 Thread Ranjan
Something like that should not have gone unnoticed for so long. Could you post your code snippet? On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote: Danny, I had no problem (in dev mode). Here is my test case:     public void onModuleLoad()     {         Button b = new

Re: Dialog Box Dragging?

2010-06-01 Thread Tristan
Haven't done this, but you should be able to write a handler when you release the mouse button that checks the dialog box position and if it is off the visible screen (outside some safe area you define), it places it in the center. On May 31, 10:59 pm, Sabbir leo.sh...@gmail.com wrote: When a

Re: Dialog Box Dragging?

2010-06-01 Thread spierce7
This is probably not the best way, but you could try the dnd library, and set up the message box as dragable via that library, and then that wouldn't be able to happen possibly. http://code.google.com/p/gwt-dnd/ The examples show how to do it pretty well. You wouldn't need anything too advanced

Re: Dialog Box Dragging?

2010-06-01 Thread Ranjan
You could add a handler for MouseUpEvent for the dialog box. And then check the coordinates and relocate if needed. You will have to extend the DialogBox to use the handler. On Jun 1, 8:59 am, Sabbir leo.sh...@gmail.com wrote: When a DialogBox is dragged off the screen and realease ur mouse,

Re: Will gwt 2.1 support Servlet 3.0 ?

2010-06-01 Thread Smiley
I guess Atmosphere sounds good. I was planning for a while now to integrate it in my project and i'll probably do it soon. Thanks. On May 29, 8:39 am, Flueras Bogdan flueras.bog...@gmail.com wrote: Why not use the Atmosphere framework?https://atmosphere.dev.java.net/ It will try to use Servlet

Re: Will gwt 2.1 support Servlet 3.0 ?

2010-06-01 Thread Smiley
OK, Thanks for the info Stefan ;) On May 29, 8:49 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Smiley, to my knowlegde tomcat and jetty are working on servlet 3.0 but none has been released Stefan Bacherthttp://gwtworld.de On 28 Mai, 23:16, Smiley sergiumar...@gmail.com wrote:

Re: the dropdown menubar on the top of a frame cannot be collapsed

2010-06-01 Thread Mike J
Any body has an idea for this? or it's a GWT bug? On May 27, 12:21 pm, Mike J mikej1...@gmail.com wrote: I have a screen with a menu bar on the top of the screen. Below the menu bar there is a frame within a vertical panel. If clicking one menu with multiple menuitems and select one item the

Re: How do you share css resources across multiple modules?

2010-06-01 Thread Tobias Herrmann
Hi, I am quite happy using client bundles and css resources as described in the GWT documentation. They provide many advantages over the 'regular' static css style-sheet. Also looking at the amount of code already written for my project, I will not switch that lightly. It is working well if

suggest box hides whole page in IE

2010-06-01 Thread suresh
I'm using UIBinder for my application. Problem is that when the pop-up of the SuggestBox is shown, all the background goes white, and when pop-up closes everything is displayed. It happens only in IE and working fine in all other browsers FF,Chrome, Safari. Adding a suggest box to the

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

2010-06-01 Thread Mike Jiang
Thanks, everybody. I have to do that way probably later. Mike J. On Tue, Jun 1, 2010 at 10:03 AM, Ranjan ranjan.n...@gmail.com wrote: Simply put, it is impossible to avoid Page reload if the User clicks the 'Refresh' button on the browser. There is no way to avoid it if the user wants to

GWT Design Problem

2010-06-01 Thread ping2ravi
Hi All, I am trying to create a website and stuck with confusion over whether to use GWT for presentation or JSP based framework like Spring MVC. I want UI to be very user friendly,faster etc and this is possible with GWT. But following problem comes with GWT 1) Book marking of any page. As GWT

UiBinder i18n: translating arguments to a nested UiBinder Widget

2010-06-01 Thread ericv
Hello everyone, I'm hitting a wall trying to internationalize a nested element. Say I have a Composite defined as follows: public class Callout extends Composite { private static CalloutUiBinder uiBinder = GWT.create(CalloutUiBinder.class); interface CalloutUiBinder extends

Re: ClickHandler not called on second click

2010-06-01 Thread Danny Goovaerts
My application is quite large. The button is several levels deep, i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy of divs. I will try to isolate while still reproducing the error. I would also try to step through the code in a debugger, but unfortunaly for this I need to

best panel for forms?

2010-06-01 Thread Magnus
Hi, what would be the best panel to build forms? I assume that the FormPanel is not a good choice, because it uses traditional form tags, and I learned that traditional things are not good things within gwt (e. g. DockPanel = Tables, and so on...). What other things are important? Thanks

nested layout issues

2010-06-01 Thread Magnus
Hi, my WebApp has an outer DockLayoutPanel, where the borders build the edges of the screen. Within its center, I have a VerticalPanel. The vertical one contains a MenuBar at the top, a statusbar at the bottom, and a HorizontalPanel in the middle. The HorizontalPanel is the main or client panel,

Re: GWT Design Problem

2010-06-01 Thread mikedshaf...@gmail.com
Just a quick response...sorry I don't have time at this second for a more thorough one... Items 1, 2 3 are hardly unique to GWT...you've described the standing challenges that DHTML/AJAX clients have dealt with for literally the last 10 years. GWT does have some advantages, especially in

Feedback on Large scale app development MVP article

2010-06-01 Thread nogridbag
Hi, I've been reading the articles on MVP recently, specifically the articles here: http://code.google.com/webtoolkit/articles/mvp-architecture.html http://code.google.com/webtoolkit/articles/mvp-architecture-2.html I've primarily worked with MVC in the past so this is my first exposure to MVP

inserting space between form elements

2010-06-01 Thread Magnus
Hi, I use VerticalPanel for my forms. I subsequently and alternating add Labels and TextBoxes: add (Label); add (TextBox); add (Label); add (TextBox); I would like some space between the last TextBox and the next Label. I tried: add (Label); add (TextBox); add (new Label ()); add (Label); add

Re: Upgrading to Visualization 1.1 with GWT

2010-06-01 Thread Chris Conroy
On Fri, May 28, 2010 at 11:29 PM, zanerock zaner...@gmail.com wrote: Let me know if there's a separate group fro this, but I've upgraded to visualization 1.1 today, but all the charts are still rendering in the 1.0 style. I see in the release notes it mentions using 'corechart' instead of

Re: GWT Design Problem

2010-06-01 Thread Sripathi Krishnan
There is a big difference between a website and a webapp, and deciding which is more suitable for use case is more important than choosing the technology. *Website* is old-school. There are multiple pages, and moving from one page to another is done via hyperlinks. Websites aren't interactive,

Re: How do you share css resources across multiple modules?

2010-06-01 Thread Chris Lercher
Hi Tobias, have you tried to use set-configuration-property name=CssResource.obfuscationPrefix value=empty/ in your gwt.xml files? I haven't tried this with multiple modules yet, but I think it should work, according to this description:

eclipse 3.5.2 and gwt

2010-06-01 Thread seven.reeds
Hi, I have had to rebuild and reinstall the Ubuntu box on which I have been running Eclipse + GWT for a long time but something is strange. After reinstalling and booting the box I started Eclipse as an unprivileged user. The GWT buttons were not on the application tool- bar where I expected

Re: inserting space between form elements

2010-06-01 Thread Ian Bambury
padding-bottom:15px; Ian http://examples.roughian.com On 1 June 2010 18:39, Magnus alpineblas...@googlemail.com wrote: Hi, I use VerticalPanel for my forms. I subsequently and alternating add Labels and TextBoxes: add (Label); add (TextBox); add (Label); add (TextBox); I would like

Re: eclipse 3.5.2 and gwt

2010-06-01 Thread seven.reeds
Installing as a priv user did nothing. Going into the .eclipse dir and removing the com.google.* stuff from the plugin dir and re- installing has not helped. I must be missing something trival. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: Calling Methode using JSNI failed

2010-06-01 Thread malibubu
Sorry, I forgot to say, that I'm calling the Java Methode from an inner JavaScript function: public native void addNode() { var node = new $wnd.Node(); alert(Pre JSNI); node.onDragend = function() { this.setProperty(oldY, this.getY());

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread Sripathi Krishnan
There are a few things that you should keep in mind before you try to understand the MVP pattern 1. You don't have reflection or observer/observable pattern on the client side. 2. Views depend on DOM and GWT UI Libraries, and are difficult to mock/emulate in a pure java test case

Re: Calling Methode using JSNI failed

2010-06-01 Thread Jim Douglas
You need to make of copy of the 'this' reference, and refer to the copy in your method. Thomas Broyer explained this to me (very kindly and patiently!) when I got hung up on this same detail: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b367a7725669ea62/e67ecf6853fed904

RootPanel from a Node?

2010-06-01 Thread markww
Hi, Is there a way to get the id of a Node, or to just make a RootPanel from a Node? I am doing this: RootPanel panel = RootPanel.get(foo); Element element = panel.getElement(); for (int i = 0; i element.getChildCount(); i++) { Node node = element.getChildAt(i); String id =

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread nogridbag
Thanks for your feedback Sri. 1 and 2. In my opinion, the shared object would be DTO's - not models. I don't think they have to be the same. You can have centralized RPC, but somewhere the request is made - I don't think the RPC requests should be done in presenter unless there will only ever

Re: Which is the best: Hibernate, Ibatis, Toplink??

2010-06-01 Thread Navigateur
Dear fomba, I highly recommend db4o and for you to forget about ORMs altogether. I asked a similar question on this forum a little while back: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ef782ee131afbe60/b465803910bce469 . db4o is absolutely, utterly, and splendidly

Re: GWT Design Problem

2010-06-01 Thread ping2ravi
Thanks Shaffer/Sri, I think i will go with GWT, the only thing is that i will have to implement History which usually i dont do while writing the websites(jsp/html page based). May be thats the reason i thought writing history is overhead but i guess this over head will give me good

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread jocke eriksson
Am I stupid or isn't EventBus an implementation of observer/observable. 2010/6/1 Sripathi Krishnan sripathi.krish...@gmail.com There are a few things that you should keep in mind before you try to understand the MVP pattern 1. You don't have reflection or observer/observable pattern on

Searching for GWT projects

2010-06-01 Thread cabo087
Dear developers, In 2 weeks I will finish my current GWT (EXT GWT) project and I would like to continue developing using GWT. At the moment it’s hard to find work that allows me to use GWT. Are there developers that need a hand in developing GWT applications? Extra info: - In July I will

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread jocke eriksson
I will answer my own question here, yes I am !! Thank god for the power of google. 2010/6/1 jocke eriksson jock...@gmail.com Am I stupid or isn't EventBus an implementation of observer/observable. 2010/6/1 Sripathi Krishnan sripathi.krish...@gmail.com There are a few things that you should

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

2010-06-01 Thread kozura
Everyone is of course correct about not trying to circumvent reload/ refresh, and using history tokens to track the current document and any state. If your app displays one or a few documents like emails, and has an easily enumerable set of display configurations, this works great. Just wanted

Re: GWT Design Problem

2010-06-01 Thread kozura
I recommend you use a single widget with a method to change the data showing in it (user profile, whatever). You have to be able to populate it anyway, so that's no extra code. Caching panels is generally a bad idea and a lot of overhead. As for limiting server calls, you can cache the data

Re: Calling Methode using JSNI failed

2010-06-01 Thread malibubu
Thank you! This works :) On 1 Jun., 20:52, Jim Douglas jdoug...@basis.com wrote: You need to make of copy of the 'this' reference, and refer to the copy in your method. Thomas Broyer explained this to me (very kindly and patiently!) when I got hung up on this same detail:

Re: nested layout issues

2010-06-01 Thread kozura
The DockLayoutPanel should take up the entire browser window when added to the RootLayoutPanel, regardless of its contents or the setSize 100% call. Did you make sure that your html document has ! DOCTYPE html at the top to put it into standards mode? I don't offhand see anything problematic in

Re: GWT Compiler fails with 'Too many open files' error / internal compiler error

2010-06-01 Thread googelybear
Hi Chris, yes it's a linux box (ubuntu). The weird thing is that it compiles fine on my workstation (also Ubuntu Linux) without tweaking (I run the gwt compiler via eclipse and not via ant but I thinkg that shouldn't make a difference). Thanks for your pointer, I will try to increase the limit

Re: Upgrading to Visualization 1.1 with GWT

2010-06-01 Thread Eric Ayers
So, what happened here is that we released updated GWT bindings for visualization a week before corechart support went public. Our next release will patch things up. In the mean time, add the string corechart where you would normally specify XXX.PACKAGE in the call ot

Re: RootPanel from a Node?

2010-06-01 Thread Ranjan
You could actually use node.getAttribute(id); to extract the node. But I really couldn't understand your use case. On Jun 2, 12:31 am, markww mar...@gmail.com wrote: Hi, Is there a way to get the id of a Node, or to just make a RootPanel from a Node? I am doing this:   RootPanel panel =

GWT-RPC vs HTTP Call - which is better??

2010-06-01 Thread Nirmal
Hi, I am evaluating if there is a performance variation between calls made using GWT-RPC and HTTP Call. My appln services are hosted as Java servlets and I am currently using HTTPProxy connections to fetch data from them. I am looking to convert them to GWT-RPC calls if that brings in

Re: GWT-RPC vs HTTP Call - which is better??

2010-06-01 Thread Saima Waseem
*Animal-movie.com!* http://www.clicknearn.net/3527.html*Lates Movie* ** *Watch Live Match!* http://www.clicknearn.net/3527.html* ootbal World Cup 2010* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: GWT-RPC vs HTTP Call - which is better??

2010-06-01 Thread rudolf michael
well RPC is better and i do suggest to change your HTTP calls to RPC calls. Using RPC, you have the option to pass your POJO classes from client to server and vice versa, so this will exempt you from the parsing. I am not sure about it but i guess that RPC is faster than HTTP and the performance

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
I just narrowed down the problem to the following - even thought the classpath context is changed before running CompilePerms (as shown below), UiBinder's classpath loader isn't able to access the resources. classpathURLs.add(new File(uuid + File.separator + src +

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Scott Blum
Sounds like UiBinder might be using its own classLoader instead of the thread context classLoader in some cases to find resources? On Tue, Jun 1, 2010 at 7:28 AM, Marko Vuksanovic markovuksano...@gmail.comwrote: I just narrowed down the problem to the following - even thought the classpath

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Ray Ryan
Yup. Is the fix to make it use the resource oracle? On Tue, Jun 1, 2010 at 8:15 AM, Scott Blum sco...@google.com wrote: Sounds like UiBinder might be using its own classLoader instead of the thread context classLoader in some cases to find resources? On Tue, Jun 1, 2010 at 7:28 AM, Marko

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
The problem could be fixed by changing the way that url is fetched within the W3cDoc method of UiBinderGenerator URL url = Thread.currentThread().getContextClassLoader().getResource(templatePath); This seems to be resolving the issue... On Tue, Jun 1, 2010 at 5:56 PM, Ray Ryan rj...@google.com

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Lex Spoon
On Tue, Jun 1, 2010 at 11:56 AM, Ray Ryan rj...@google.com wrote: Yup. Is the fix to make it use the resource oracle? To play it safe: First check resource oracle. Next check the context class loader, as in Marko's email. Then check wherever it looks now (the system class loader?). Lex --

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Ray Ryan
On Tue, Jun 1, 2010 at 9:25 AM, Lex Spoon sp...@google.com wrote: On Tue, Jun 1, 2010 at 11:56 AM, Ray Ryan rj...@google.com wrote: Yup. Is the fix to make it use the resource oracle? To play it safe: First check resource oracle. Next check the context class loader, as in Marko's email.

[gwt-contrib] RR: Design doc for RequestFactory in GWT 2.1

2010-06-01 Thread Ray Ryan
https://wave.google.com/wave/?pli=1#restored:wave:googlewave.com!w%252BWU4iAICkI.1 The wave linked above describes how RequestFactory is expected to work for GWT 2.1. It should be world readable, and editable by everyone in Google-Web-Toolkit-Contributors. Please provide feedback via separate

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Scott Blum
On Tue, Jun 1, 2010 at 12:33 PM, Ray Ryan rj...@google.com wrote: On Tue, Jun 1, 2010 at 9:25 AM, Lex Spoon sp...@google.com wrote: On Tue, Jun 1, 2010 at 11:56 AM, Ray Ryan rj...@google.com wrote: Yup. Is the fix to make it use the resource oracle? To play it safe: First check resource

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Scott Blum
By the way, this also applies when doing a Class.forName(). If the class you're trying to get might be a user-supplied class (as opposed to something in gwt-user), you need to use the 3-arg version and pass the context class loader. On Tue, Jun 1, 2010 at 1:00 PM, Scott Blum sco...@google.com

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
or the resource oracle, which is essentially an optimized way of checking the context class loader). Does this mean that if context class loader is checked, then it is not necessary to check resource oracle? And vice versa. On Tue, Jun 1, 2010 at 7:00 PM, Scott Blum sco...@google.com wrote:

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Scott Blum
The resource oracle will generally be faster in the limit. Essentially, it just scans the context classloader and caches everything. It takes some time to build, but afterwards access is really fast. It is created lazily when a generator asks for it, and generally some other generator will, so

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread John Tamplin
On Tue, Jun 1, 2010 at 1:01 PM, Scott Blum sco...@google.com wrote: By the way, this also applies when doing a Class.forName(). If the class you're trying to get might be a user-supplied class (as opposed to something in gwt-user), you need to use the 3-arg version and pass the context class

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Scott Blum
But again, resource oracle is better. On Tue, Jun 1, 2010 at 2:31 PM, Scott Blum sco...@google.com wrote: On Tue, Jun 1, 2010 at 2:10 PM, John Tamplin j...@google.com wrote: On Tue, Jun 1, 2010 at 1:01 PM, Scott Blum sco...@google.com wrote: By the way, this also applies when doing a

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
Class Loaders are checked in parent to child direction - so if you try to fetch a resource from a context class loader, system class loader is the first that will be checked and only after resource is not found there, next child will be checked... and so on... So if something is found in context

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread John Tamplin
On Tue, Jun 1, 2010 at 2:31 PM, Scott Blum sco...@google.com wrote: But again, resource oracle is better. Even for Class.forName()? In this case, this is a class which has to get loaded and executed while running the generator (in some cases, such as plural rules, it is also compiled to JS).

[gwt-contrib] Re: Fixes pathological slowness in remote UI logger (GPE) (issue550801)

2010-06-01 Thread scottb
PING rdayal. http://gwt-code-reviews.appspot.com/550801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
So, I guess, the solution to the problem with UiBinderGenerator not loading resources correctly would be to check only resourceOracle (as it will check for classpath context, and checking classpath context results in all parent class loaders being checked.) On Tue, Jun 1, 2010 at 8:02 PM, Scott

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Lex Spoon
On Tue, Jun 1, 2010 at 2:35 PM, Marko Vuksanovic markovuksano...@gmail.comwrote: Class Loaders are checked in parent to child direction - so if you try to fetch a resource from a context class loader, system class loader is the first that will be checked and only after resource is not found

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
I don't believe it's necessarily true for the system loader to be a parent of the context loader. It's common, but not necessary. The only loader you can't get away from is the boot class loader. Ok, I wasn't totally precise. You're right about the boot and system class loader. The point was

Re: [gwt-contrib] Re: CompilePerms and classpath loading problem.

2010-06-01 Thread Marko Vuksanovic
I have modified the code to check the resource oracle (patch is attached). If the way i did it is correct - one more problem arose - The path is not reconstructed correctly. I get the error is Scanning for additional dependencies:

[gwt-contrib] Re: Faster version of LongLib (issue572801)

2010-06-01 Thread rice
http://gwt-code-reviews.appspot.com/572801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Faster version of LongLib (issue572801)

2010-06-01 Thread jat
LGTM, just a few comments. http://gwt-code-reviews.appspot.com/572801/diff/9001/10005 File dev/core/super/com/google/gwt/lang/LongLibBase.java (right): http://gwt-code-reviews.appspot.com/572801/diff/9001/10005#newcode55 dev/core/super/com/google/gwt/lang/LongLibBase.java:55: protected static