Re: GWT very slow on IE

2010-06-11 Thread Vitali Lovich
Above all, are you sure you're not running hosted mode? That'll slow things down significantly. On Fri, Jun 11, 2010 at 11:56 AM, Prema Monica premamon...@gmail.comwrote: How many RPC calls do you have on this page? How is the performance on the other browsers? I believe IE 6 and 7 permit

Re: calling rest service from GWT

2010-06-10 Thread Vitali Lovich
Browsers support XML, but unfortunately there's no API exposing that. Google provides the XML parser http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html You may have to write your own code to generate that request. On Thu, Jun 10, 2010 at 12:12 AM, PEZ

Re: Does entire IncrementalCommand run in one tick?

2010-06-09 Thread Vitali Lovich
No, it cannot creep. Each execute callback runs as 1 uninterrupted thread. On Wed, Jun 9, 2010 at 4:25 PM, macagain rgk...@gmail.com wrote: Do all steps of an IncrementalCommand run in one tick, or does it return control to the js event loop in between steps, thereby allowing other commands

Re: Suggestions for dealing with Timers

2010-02-01 Thread Vitali Lovich
The way I would do it would be: Timer t = new Timer() { public void run() { // do one pass of the sort } }; // Schedule the timer to run once in 5 seconds. t.schedule(interval); where interval is how frequently you wish to animate. Remeber - javascript is

Re: Suggestions for dealing with Timers

2010-02-01 Thread Vitali Lovich
So you would obviously have to change it. Incremental command wouldn't help you since you are doing animation Incremental commands are just a way of allowing long-running data processes to maintain an interactive UI - otherwise the UI would block while you did your processing. Thus they don't

Re: RPC facade for load time optimizing?

2009-10-31 Thread Vitali Lovich
I found it worked well to have a wrapper around GWT.create that would simply return a on-first-use created singleton. Thus start-up time is much shorter, the cost of creating services in hosted mode is ammortized of the usage of the app, and the penalty is only payed the first time you create the

Re: RPC facade for load time optimizing?

2009-10-31 Thread Vitali Lovich
Sorry - I misread what he was doing. The downsides I mentioned aren't applicable. It might be an interesting approach - it would be interesting to hear the effect this has on optimization. On Sat, Oct 31, 2009 at 1:04 PM, Vitali Lovich vlov...@gmail.com wrote: I found it worked well to have

Re: GWT RPC Encryption

2009-05-29 Thread Vitali Lovich
On Fri, May 29, 2009 at 3:29 AM, Deep Blue deep.blue...@gmail.com wrote: Hi all, Is it possible to create an encyption / decryption layer around GWT rpc mechanism? The problem is currently in GWT rpc, all the data are sent / received from server in JSON text (although SSL can help protect

[gwt-contrib] Re: Feature idea - reference Java methods as Javascript functions

2009-05-29 Thread Vitali Lovich
On Fri, May 29, 2009 at 9:42 AM, John Tamplin j...@google.com wrote: On Thu, May 28, 2009 at 8:18 PM, Vitali Lovich vlov...@gmail.com wrote: It would be nice if there was a way to wrap Java methods with an opaque Javascript function object so that you could pass them around in the native

[gwt-contrib] Re: Feature idea - reference Java methods as Javascript functions

2009-05-29 Thread Vitali Lovich
On Fri, May 29, 2009 at 11:59 AM, John Tamplin j...@google.com wrote: On Fri, May 29, 2009 at 11:31 AM, Vitali Lovich vlov...@gmail.com wrote: The way you get a method reference in pure Java is via reflection, which in general is not feasible though there have been some discussions

Re: IE error can't debug!

2009-05-28 Thread Vitali Lovich
That just introduces more problems. 1) Not maintainable - you have to remember to change it every single time you compile. 2) It's a hack. Without understanding the real cause, you are just asking for more problems later on. The problem could resurface elsewhere you won't know why you'll

Re: Tomcat and GWT 1.6

2009-05-26 Thread Vitali Lovich
= reqUrl.substring(0, reqUrl.length()-25); return reqUrl; } } On May 24, 10:21 am, Vitali Lovich vlov...@gmail.com wrote: Have you read what Jamie told you? He gave you a hint - your relative paths are wrong (TamperData or Firebug will tell you what

Re: Tomcat and GWT 1.6

2009-05-26 Thread Vitali Lovich
Oh I dunno why you are even doing this with 1.6. As of 1.6, RPC interfaces can be annotated so you don't need to screw around with the URLs. On Tue, May 26, 2009 at 12:29 PM, Vitali Lovich vlov...@gmail.com wrote: What you came up with was a hack instead of properly configuring your server

Re: Tomcat and GWT 1.6

2009-05-24 Thread Vitali Lovich
Have you read what Jamie told you? He gave you a hint - your relative paths are wrong (TamperData or Firebug will tell you what they are), that's all. Either fix your Tomcat config or put the resources where they should be. Or even better, use GWT 1.6 which has a far better deployment strategy.

[gwt-contrib] Re: Comment on UsingOOPHM in google-web-toolkit

2009-05-24 Thread Vitali Lovich
Worked for me. Did you use the XPI or XPCOM one? On Sun, May 24, 2009 at 5:11 PM, codesite-nore...@google.com wrote: Comment by henr...@yahoo.fr: The provided firefox plugin doesn't work for me (Linux x86_64). I had to build a new firefox plugin from SVN. For more information:

Re: Password Encryption

2009-05-21 Thread Vitali Lovich
to prevent others from seeing the data of the requests at all, then SSL is your only real option. On May 19, 8:10 pm, Vitali Lovich vlov...@gmail.com wrote: First off, good luck trying to disassemble the GWT compiled code - it's hard to read even when you know what the original

Re: Password Encryption

2009-05-19 Thread Vitali Lovich
On Tue, May 19, 2009 at 9:30 AM, Magius antonio.diaz@gmail.com wrote: If you encrypt the password at the client side, everybody can review the javascript algorithm and break it. That is blatently wrong. If I implement RSA in Javascript, you're telling me you can break it? If you can do

Re: Password Encryption

2009-05-19 Thread Vitali Lovich
First off, good luck trying to disassemble the GWT compiled code - it's hard to read even when you know what the original Java code is doing. Nextly, I don't think I understand the problem you are presenting - it seems to me that if you have a script-injection exploit in your code, there is no

Re: SIGSEGV in Ubuntu java 6 out the Wazoo!

2009-05-16 Thread Vitali Lovich
OpenJDK worked fine for me. Also, the newer Sun JDKs work fine too - there's instructionshttp://www.debianhelp.co.uk/debianjava.htmaround on how to convert the Sun package into a debian package. sudo apt-get install java-package fakeroot make-jpkg sun jdk.bin sudo dpkg -i sun-*.deb sudo

Re: Next Release

2009-05-14 Thread Vitali Lovich
for the next release. On May 11, 12:58 am, Vitali Lovich vlov...@gmail.com wrote: Is there any particular reason you can't build from trunk? It's pretty stable. On Sun, May 10, 2009 at 7:26 AM, Noel noel.tr...@gmail.com wrote: Does anyone know when the code currently in the GWT trunk

Re: Chrome Safari Compatibility

2009-05-12 Thread Vitali Lovich
Safari is supported AFAIK. Chrome would be too since it is Webkit like Safari, although I don't know how much QA effort goes towards it - probably minimal for three reasons: 1) it uses the same engine as Safari 2) it has minimal browser share 3) it's Google's browser that they want as

Re: Chrome Safari Compatibility

2009-05-12 Thread Vitali Lovich
Difficult to determine the issue without the CSS some sample code, it's difficult to guess at the problem (might be a quirks issue). On a side note, just to clarify that you explained yourself correctly, hosted mode browser is only IE on Windows (at least until GWT 2.0). Mozilla on Linux.

[gwt-contrib] Re: Add getElementsByClassName support

2009-05-12 Thread Vitali Lovich
On Tue, May 12, 2009 at 4:49 PM, Joel Webber j...@google.com wrote: On Tue, May 12, 2009 at 4:38 PM, Ray Cromwell cromwell...@gmail.comwrote: On Tue, May 12, 2009 at 1:26 PM, j...@google.com wrote: - This class also appears to be doing runtime detection of (document.evaluate). I think we

[gwt-contrib] Re: Add getElementsByClassName support

2009-05-12 Thread Vitali Lovich
On Tue, May 12, 2009 at 4:26 PM, j...@google.com wrote: Thanks for digging into this -- it'll be helpful for a lot of developers. And sorry I've taken so long to get around to reviewing -- I've been pretty swamped lately. I'm going to ask Ray to come back and review some of the DOM details

Re: Gears GWT API on Android behaving differently?

2009-05-11 Thread Vitali Lovich
(); } return sb.toString(); With neither method being particularly quick. I suspect the second method will give better general performance. E On May 8, 10:46 am, Vitali Lovich vlov...@gmail.com wrote: Have you read the Javadoc? replace replaces string literals. You need myString.replaceAll

Re: Next Release

2009-05-10 Thread Vitali Lovich
Is there any particular reason you can't build from trunk? It's pretty stable. On Sun, May 10, 2009 at 7:26 AM, Noel noel.tr...@gmail.com wrote: Does anyone know when the code currently in the GWT trunk will make it into a production ready release? We are currently on 1.6.4 but there is a

Re: Image Quality Affected during File Upload

2009-05-09 Thread Vitali Lovich
the resolution, the data is getting tampered... Please let me know if something needs to be done at the servlet side coding for capturing the data perfectly... On May 10, 9:16 am, Vitali Lovich vlov...@gmail.com wrote: do a binary diff. if they are the same, then there's a problem with your

Re: Gears GWT API on Android behaving differently?

2009-05-08 Thread Vitali Lovich
because it's a problem with your code. On Fri, May 8, 2009 at 8:33 AM, Evan Ruff evan.r...@gmail.com wrote: I was going with the ol: myString.replace( [?], newString ); but that would not find the ?, so I went with a \\?, also unsuccessfully. E On May 8, 12:00 am, Vitali Lovich vlov

Re: Programmatically Load a Module

2009-05-08 Thread Vitali Lovich
Yes. For one, a hacky way would be to have each application register itself in the onModuleLoad. i.e. package foo; class ApplicationA { private native void register() /*-- { $wnd.applications.push(t...@foo.applicationa::load()()); }--*/; private native void load() { // the function is

Re: Unique identifier

2009-05-07 Thread Vitali Lovich
I've seen people have problems with that approach (at least within the GWT context). I prefer to just manually generate my session ids set that in the sid cookie. public static final byte [] VALID_SESSION_CHAR = new byte[10 + ('z' - 'a' + 1)]; private static final SecureRandom rand = new

Re: A widget that has an existing parent widget may not be added to the detach list

2009-05-07 Thread Vitali Lovich
(ViewType.ACTION, actions); actions.render(); } IMHO this is a genuine GWT bug On Apr 28, 8:40 pm, Vitali Lovich vlov...@gmail.com wrote: Yes. Use GWT properly. Don't use raw HTML. That's your problem. Instead of adding an HTML widget that wraps a div, use a SimplePanel set

Re: Gears GWT API on Android behaving differently?

2009-05-07 Thread Vitali Lovich
Javascript Java have different regular expressions, so if you are running your stuff on desktop browsers in Hosted Mode but compiled mode in Android, then you might be running into that problem. A performance improvement should be: String statement = new String( sqlStatement ); StringBuffer sb

Re: Gears GWT API on Android behaving differently?

2009-05-07 Thread Vitali Lovich
Oh yeah - didn't notice that you were using StringBuffer. StringBuilder is the appropriate one. I had assumed that sqlStatement was perhaps an array or something - if it's another string, then yes, you do not need to create a copy like that since they are immutable. The while loop instead of

Re: Gears GWT API on Android behaving differently?

2009-05-07 Thread Vitali Lovich
tried [\\?] without success as well. Any idea on how to find that guy? Thanks, E On May 7, 2:59 pm, Vitali Lovich vlov...@gmail.com wrote: Javascript Java have different regular expressions, so if you are running your stuff on desktop browsers in Hosted Mode but compiled mode in Android

Re: Gears GWT API on Android behaving differently?

2009-05-07 Thread Vitali Lovich
statement. Also, I can run the test on the android phone to see if that might be the problem. E On May 7, 4:36 pm, Vitali Lovich vlov...@gmail.com wrote: What's the code for the regexp that you are trying what is the source string that you are matching against. On Thu, May 7, 2009 at 3:24 PM

Re: Eclipse Plugin Compile Button Stack Overflow

2009-04-30 Thread Vitali Lovich
On Thu, Apr 30, 2009 at 10:25 AM, mounier.flor...@gmail.com mounier.flor...@gmail.com wrote: I'm waiting for it too and its starting to take time just for two options... Why does deploying force compilation (which fails so badly) ? Because that's what deployment is? Maybe I'm not

Re: Asynchronous communication from server to client

2009-04-30 Thread Vitali Lovich
*Coding style*: Several things. Why aren't your state variables part of an enum? Why aren't you using a switch statement instead of 10 if/else ifs. *Architecture*: Why are you using a timer that will do nothing most of the time? You're just putting load on the client unnecessarily. Why are

Re: How to use PRETTY from Hosted Mode?

2009-04-30 Thread Vitali Lovich
No - the hosted mode compilation is just a shortcut (I don't even understand the reason for it being there). For complete control over the compiler, you have to invoke it from the cmd line. On Thu, Apr 30, 2009 at 4:56 AM, olel lauri...@engram.de wrote: Hi, is there a way to tell the Hosted

Re: How to use PRETTY from Hosted Mode?

2009-04-30 Thread Vitali Lovich
Are you sure HostedMode actually passes on those options to the compiler? It might just ignore them. On Thu, Apr 30, 2009 at 12:35 PM, Gilles B gilles.broch...@gmail.comwrote: Inside Eclipse I run the hosted mode with the com.google.gwt.dev.HostedMode main class. (Run Configurations..) in

Re: Image Bundle fails in GWT 1.6 hosted mode and IE

2009-04-30 Thread Vitali Lovich
HostedMode is IE (on Windows), so that wouldn't be surprising. On Thu, Apr 30, 2009 at 2:27 AM, Rafiq rafiq...@gmail.com wrote: But first even in GWT 1.6 hosted mode itself, it blows up. These are normal size images done for a slide show. On Apr 29, 7:02 pm, Thomas Broyer t.bro...@gmail.com

Re: Can't run a batch

2009-04-29 Thread Vitali Lovich
Why not just step through the code in a debugger? Put breakpoints on both ends of the RPC call go from there. On Wed, Apr 29, 2009 at 9:59 AM, Ian Bambury ianbamb...@gmail.com wrote: The thing is, you have to work out where the failure is happening. If you know that the batch file isn't

Re: GWT Incubator usage

2009-04-29 Thread Vitali Lovich
I'm pretty sure that incubator is linked to the latest build, not trunk. It includes a bunch of stuff that, AFAIK, is targeted for inclusion at some point in the future in trunk. As for use in real projects, it's up to you. Probably the incubator mailing list would be a better place to ask. On

Re: Google Calendar embeded in my webapp

2009-04-29 Thread Vitali Lovich
I'm building something like that, but no, there's no official Google calendar. You can try http://code.google.com/p/ftr-gwt-library/. It has a Google Calendar look-alike. It is kind of a pain to use though there are some bugs. On Wed, Apr 29, 2009 at 11:20 AM, LFCPD

Re: Porting onEventPreview to 1.6's onPreviewNativeEvent...

2009-04-29 Thread Vitali Lovich
That's really strange that you couldn't add a widget to the DOM within the preview event handler - I can't think of a reason why it would prevent you from doing that. I agree - it's really hard to find an actual definitive reference guide for the DOM model what kind of stuff you are aren't

[gwt-contrib] Re: IE8 support

2009-04-29 Thread Vitali Lovich
PM, Vitali Lovich vlov...@gmail.com wrote: Does IE8 still have non-standards compliant behaviour? I thought they were supposed to introduce pretty strict standards compliance with IE8 (in fact, some/all? legacy non-standard stuff is unavailable). Shouldn't IE8 extend DOMImplStandard

Re: Wait for all asynchronous calls to finish

2009-04-28 Thread Vitali Lovich
operations. I am wondering if the events include asynchronous calls, or are they just referring to DOM events. On Apr 27, 6:41 pm, Vitali Lovich vlov...@gmail.com wrote: No. Waiting in the browser means it freezes it (remember - single threaded). Why not just disable the input fields that can

Re: GWT 1.6.4 compatibility with IE 6, 7 and 8

2009-04-28 Thread Vitali Lovich
Using only pure GWT, I find it hard to imagine their being an exception only in web mode on a specific browser unless it's a bug. Are you using any third-party libraries? Can you please supply the exact code snippet that reproduces this? On Tue, Apr 28, 2009 at 12:10 PM, xsegrity

Re: Wait for all asynchronous calls to finish

2009-04-28 Thread Vitali Lovich
Here's my approach when designing something like that. Any validation should happen immediately client side since that is one of the major benefits of using AJAX. Doing an RPC call every time a field loses focus is pretty inefficient - I think doing it this way is too easy to make it a crappy

Re: A widget that has an existing parent widget may not be added to the detach list

2009-04-28 Thread Vitali Lovich
, Vitali Lovich vlov...@gmail.com wrote: Yes this has already come up on the mailing list. This was always illegal, just uncaught prior to 1.6. You cannot wrap two elements in GWT if they already have a parent/child relationship in the DOM (causes a mismatch in the trees). Do a search

Re: Identifying what css are loaded

2009-04-28 Thread Vitali Lovich
On Tue, Apr 28, 2009 at 2:21 AM, jagadesh jagadesh.manch...@gmail.comwrote: so how can i check which css file is loaded , ot there any way to check whether perticular css file has been loaded . This is more of a JS question - last post in

Re: GWT 1.6.4 compatibility with IE 6, 7 and 8

2009-04-28 Thread Vitali Lovich
will organize and clean them up. Will post the code snippet soon. Thanks in advance. -Ben On Apr 28, 12:42 pm, Vitali Lovich vlov...@gmail.com wrote: Using only pure GWT, I find it hard to imagine their being an exception only in web mode on a specific browser unless it's a bug. Are you

Re: Deployment of default GWT application.

2009-04-27 Thread Vitali Lovich
On Mon, Apr 27, 2009 at 4:51 AM, newtoGWT ganesh@gmail.com wrote: Did you test your application in hosted mode? try debugging it in the hosted mode.. That kind of defeats the whole deployment aspect of his question. This only helps if you need to debug an error in your application

Re: Question: Portlet JSR 286 Support for GWT

2009-04-27 Thread Vitali Lovich
You may want to examine http://www.gwtportlets.org/ first. It's not the JSR (name collision is due to convenience, not relation), but it may have what you want. On Mon, Apr 27, 2009 at 4:20 AM, Nail Ünlü nail.uen...@gmail.com wrote: Hiho, Im in the process to evaluate the JSR 286 Portlet

Re: A widget that has an existing parent widget may not be added to the detach list

2009-04-27 Thread Vitali Lovich
Yes this has already come up on the mailing list. This was always illegal, just uncaught prior to 1.6. You cannot wrap two elements in GWT if they already have a parent/child relationship in the DOM (causes a mismatch in the trees). Do a search you'll find the response from the GWT developer

Re: GWT 1.6.4 compatibility with IE 6, 7 and 8

2009-04-27 Thread Vitali Lovich
Have you run in hosted mode? On Windows it's a flavour of IE5 or IE6 (probably 6). IE8 support was added recently to trunk, so official support won't come out until the next version of GWT (unless they do a point release with support, although that seems unlikely). IE8 isn't even out yet. On

Re: client side data persistency

2009-04-27 Thread Vitali Lovich
TreeMap is not a persistent store. Cookies are a persistent store. One way would be to serialize/deserialize from a string. Or store directly in cookies the key-value pairs encoded as strings. You may run into problems - there might be limits on the number of cookies a web site can have. It

Re: using synchronized rpc method?

2009-04-27 Thread Vitali Lovich
Kind of remove the A out of AJAX. You can change any synchronous function call into an asynchronous RPC call. Remember, RPC calls might fail - you need to handle that case properly. You don't have that same problem with regular function calls. regular logic is // code preceding function call //

Re: Problem with modifing files in www/com.mycompany.SToolS

2009-04-27 Thread Vitali Lovich
As of 1.6, is a public directory recommended? I think everything just goes into the war directory (at least that's what webAppCreator does). On Mon, Apr 27, 2009 at 11:39 AM, Isaac Truett itru...@gmail.com wrote: Jan, www/ is an output directory. You shouldn't edit files in there. The

Re: GWT 1.6.4 compatibility with IE 6, 7 and 8

2009-04-27 Thread Vitali Lovich
and other stuff. Do you have any idea why it does not work on IE? Thanks, Ben On Apr 27, 1:20 pm, Vitali Lovich vlov...@gmail.com wrote: Have you run in hosted mode? On Windows it's a flavour of IE5 or IE6 (probably 6). IE8 support was added recently to trunk, so official support won't come

Re: Wait for all asynchronous calls to finish

2009-04-27 Thread Vitali Lovich
No. Waiting in the browser means it freezes it (remember - single threaded). Why not just disable the input fields that can lead to an RPC call ( some kind of processing indicator so the user understands what's going on) reenable them when the call completes. Just apply a proper MVC pattern

[gwt-contrib] Feature idea

2009-04-27 Thread Vitali Lovich
Kinda like with GCC, allow detection of constant values (i.e. __builtin_constant_phttp://developer.apple.com/documentation/developertools/gcc-4.0.1/gcc/Other-Builtins.html). This way, you could do something like void addParameter (HashMap h, int size, String key, Object value) { if

[gwt-contrib] Re: Feature idea

2009-04-27 Thread Vitali Lovich
operators. On Mon, Apr 27, 2009 at 12:33 AM, Vitali Lovich vlov...@gmail.com wrote: Kinda like with GCC, allow detection of constant values (i.e. __builtin_constant_p). This way, you could do something like void addParameter (HashMap h, int size, String key, Object value

[gwt-contrib] Re: New shopping new life!

2009-04-27 Thread Vitali Lovich
Wow that takes me back. I've stopped using my hotmail actively for already about 2-3 years. I have my thunderbird on my desktop occassionally download filter through all the spam for archival purposes. It just annoys me how locked down it is. With gmail (not a plug, just the best web-based

Re: JsArrayJavascriptObject methods deficiency

2009-04-26 Thread Vitali Lovich
Just as an aside, I have a set of patches to implement all the missing native methods from JsArray (splice, etc). I'll be opening a defect soon. On Sun, Apr 26, 2009 at 2:33 AM, Adam T adam.t...@gmail.com wrote: Best thing to do is either: a) raise a defect and then this gets tracked, and

Re: Request after request.

2009-04-26 Thread Vitali Lovich
? On Apr 24, 6:55 am, Vitali Lovich vlov...@gmail.com wrote: On Thu, Apr 23, 2009 at 2:05 PM, davidst...@gmail.com davidst...@gmail.comwrote: I tested both FF and IE6 . I'm pretty surprised too of the results, so I'm still searching the problem. Are you calling getEvents (the one

Re: Where is this class com.google.gwt.core.client.RunAsyncCallback in GWT 1.6.4

2009-04-26 Thread Vitali Lovich
It's in trunk (as the svn path tells you). It's scheduled to make an appearance with 2.0. You either need to build from trunk or wait. On Sun, Apr 26, 2009 at 1:18 PM, maximity maxim...@gmail.com wrote: I downloaded showcase example from Google SVN (http://google-web-

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Vitali Lovich
By the way, it's really bad style to throw an exception in onModuleLoad - it indicates you are doing something wrong. 2009/4/26 Piotr Jaroszyński p.jaroszyn...@gmail.com http://www.google.com/search?q=unchecked+exception Thanks, apparently I fail at java :) -- Best Regards, Piotr

Re: efficiency of my gwt application

2009-04-26 Thread Vitali Lovich
, Vitali Lovich wrote: Can you point out the relevant segments within the presentation? I skimmed through some parts, it seemed like they went for just building the raw HTML on the client side (hence the reason they transfer HTML from the server). Also, they're presentation is for 1.4

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-26 Thread Vitali Lovich
I thought you were trying to use the built-in OutputStream. Are you sure the package name on your class is right? Shouldn't it be gwt.extended.common.java.io? On Sun, Apr 26, 2009 at 2:34 AM, Jake otakuj...@gmail.com wrote: Thomas and Vitali, thank you for the expert advice. I believe I'm

Re: unused code in compiled javascript

2009-04-26 Thread Vitali Lovich
The GWT compiler is supposed to remove all unused code. If you believe that there's code in there that is unused, or can be removed, I would recommend filing a bug. Hopefully a GWT developer would be able to provide more information about this particular question. On Sun, Apr 26, 2009 at 5:03

Re: Given: One WAR archive; three independent Host Pages; common client and server code. Question: How to best organize such project(s) and have each HTML page load only its used code?

2009-04-26 Thread Vitali Lovich
I haven't actually done this, but check any of the numerous GWT libraries. They all provide library code without an entry point. http://code.google.com/p/gwtquery/, http://code.google.com/p/gwt-mosaic/ On Sun, Apr 26, 2009 at 8:26 AM, JDK software.solutions.engin...@gmail.comwrote: I've spent

Re: [gwt] Re: GEP, war/WEB-INF/lib, and source control

2009-04-26 Thread Vitali Lovich
That's pretty much the approach I use. I prefer to keep the war/ directory as minimal as possible in terms of what is in source control. I keep only the web.xml app HTML page. By default the war/ directory gets added to ignore because that is where generated resources are placed. Instead I

Re: JsArrayJavascriptObject methods deficiency

2009-04-26 Thread Vitali Lovich
Broyer t.bro...@gmail.com wrote: On 26 avr, 20:23, Vitali Lovich vlov...@gmail.com wrote: Just as an aside, I have a set of patches to implement all the missing native methods from JsArray (splice, etc). I'll be opening a defect soon. I already did so 8 months ago: http

Re: Same app in several Hosted Pages

2009-04-26 Thread Vitali Lovich
That layout is fine, except for gwtapps - usually the apps go directly under webroot (you may have to modify the default ant scripts whatnot). However, the better approach might be to split each application into 2 parts. 1 part for the front-end specific for each page (i.e. the code containing

Re: Identifying what css are loaded

2009-04-26 Thread Vitali Lovich
Document.get().createLinkElement On Sun, Apr 26, 2009 at 11:15 PM, jagadesh jagadesh.manch...@gmail.comwrote: How can i identify whether css has loaded or not .meanwhile i got a code snippet as public native boolean isLinkLoaded(LinkElement le)/*-{ try { return

Re: Identifying what css are loaded

2009-04-26 Thread Vitali Lovich
Oh, and you can always retrieve an existing link element on the page (assuming it has an id). On Sun, Apr 26, 2009 at 11:34 PM, Vitali Lovich vlov...@gmail.com wrote: Document.get().createLinkElement On Sun, Apr 26, 2009 at 11:15 PM, jagadesh jagadesh.manch...@gmail.comwrote: How can i

Re: GWT best Practices - JS Library Wrappers Overlay Types

2009-04-26 Thread Vitali Lovich
Couldn't arbitrary JS support be added using deferred binding? Sure, you wouldn't be able to do code completion, but you could call arbitrary JS functions variables with 0-overhead. Might be a cool project to do (if Ray hasn't already done it :D). On Sun, Apr 26, 2009 at 11:43 PM, Bobby

Re: MenuItem icons

2009-04-26 Thread Vitali Lovich
yes. you probably want to know how, don't you :). new MenuItem(bundle.image().getHTML(), true, /* whatever 3rd parameter goes here */); bundle is your ImageBundle, image is the method that returns an AbstractImagePrototype. On Sun, Apr 26, 2009 at 11:32 PM, Hannson hann...@gmail.com wrote:

Re: Request after request.

2009-04-26 Thread Vitali Lovich
about two weeks but i did not find out how to separate them . So maybe this affects in some way the story with requests, maybe there is only one thread openes for two clients. On Apr 26, 11:07 pm, Vitali Lovich vlov...@gmail.com wrote: On Sun, Apr 26, 2009 at 3:29 PM, davidst...@gmail.com

Re: Identifying what css are loaded

2009-04-26 Thread Vitali Lovich
for isLinkLoaded will return true, which might not be what you want. On Mon, Apr 27, 2009 at 12:18 AM, jagadesh jagadesh.manch...@gmail.comwrote: Thanks Vitali Lovich, Let me work this stuff. --~--~-~--~~~---~--~~ You received this message because you

Re: FormPanel Results

2009-04-25 Thread Vitali Lovich
You encode the XML as regular text within an HTML page. Then you decode it to get the original document back. optionally, you can use base64, which while probably expanding the code, is a much simpler approach much more difficult to get wrong. There's plenty of free implementations of base64

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-25 Thread Vitali Lovich
OutputStream is in GWT 1.5. OutputStream is an abstract class - are you overriding the methods it throws errors on? eclipse is good about telling you auto-fixing stuff like that. can you post your implementation of OutputStreamWriter if this isn't the problem? On Sat, Apr 25, 2009 at 10:54

Re: Synchronous YES/NO/Cancel message box

2009-04-25 Thread Vitali Lovich
Why does it have to be synchronous? Not sure what kind of message box you are referring to, but it's fairly trivial to convert a synchronous algorithm to an asynchronous one. // synchronous code // message box // synchronous code instead make it // synchronous code // message box // in

Re: Error finding source code for JSONValue in GWT 1.6.4

2009-04-25 Thread Vitali Lovich
Do you have gwt-user on your classpath when you compile? The GWT compiler needs the source files on the class path, because it actually needs to compile the code into javascript. .class files are insufficient (don't preserve enough of the structure of the program I imagine). Also, maybe you

Re: Error finding source code for JSONValue in GWT 1.6.4

2009-04-25 Thread Vitali Lovich
Lol - didn't even think of that. That's probably what it is. On Sat, Apr 25, 2009 at 5:59 PM, Thomas Broyer t.bro...@gmail.com wrote: On 25 avr, 21:58, ceeed cee...@gmail.com wrote: Hi, With GWT 1.6.4, I am getting the following error. [ERROR] Line 80: No source code is available

Re: java.lang.ref in GWT

2009-04-25 Thread Vitali Lovich
Yeah, it's quite doubtful. The technique I would see JS engine writers adopting would be an event generated indicating low memory (so the app can remove cached memory). However, this would be a far off time in the distance, if ever would take a while to trickle into browsers as a standard

Re: how ho handle handlers

2009-04-24 Thread Vitali Lovich
, but here the method setEnabled() is not available. So how to implement the setEnabled() method in this case? Do you suggest to store the ClickHandler in the RButton class itself and remove it in its setEnabled() method, or is there any better way? On 24 Dub, 06:59, Vitali Lovich vlov

Re: Insert Element into DOM and receive click events?

2009-04-24 Thread Vitali Lovich
As a workaround, would removing the TreeItem from the parent tree itself work? It's not a general solution since you'd have to append it to the end of the tree (Tree doesn't appear to support insertion of children into arbitrary positions) to get it back, but it's what the example you gave in the

Re: Insert Element into DOM and receive click events?

2009-04-24 Thread Vitali Lovich
Or just put a simple panel. Then set the widget of the simple panel to whatever you want. That's actually a great approach alex. Does that work Ben? On Fri, Apr 24, 2009 at 3:40 AM, alex.d alex.dukhov...@googlemail.comwrote: What about making your treeitem-widget an absolutPanel for

Re: Help

2009-04-24 Thread Vitali Lovich
Check the Jetty log. Are you getting a 404 on the resource request? Also, I dunno why you are doing what you are doing with DockPanel, but in any case it's probably wrong. Every time you add a widget it'll append -parent to each child. So after 3 adds, the 1st child added will have

Re: FileUpload - how to get status back from server??

2009-04-24 Thread Vitali Lovich
Technically no. It's a limitation of the HTML spec. You could try the following hack (untested so dunno how practicle this is what pitfalls you might enounter - as the lkml people say, here be dragons): In your response, you could presumably return JSON objects which you can then eval in JSNI

Re: onModuleLoad called when hitting Browser 'Back' button

2009-04-24 Thread Vitali Lovich
No. When you hit back, you're browser is navigating to a new page so of course you lose all your current Javascript state (otherwise, you could potentially leak your state to other sites which at best might corrupt them at worst allow attackers to steal your visitor's data). On Fri, Apr 24,

Re: Can I make a ClickHandler for an AnchorElement?

2009-04-24 Thread Vitali Lovich
GWT isn't designed to work at that level with native DOM events. The far easier approach would be to wrap the AnchorElement in a GWT widget (Anchorhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html?com/google/gwt/user/client/DOM.htmlfor instance). Otherwise, you have to deal

Re: Request after request.

2009-04-23 Thread Vitali Lovich
. And the message senderId entered the sendEvent method appeared, only when one of the clients exited the getEvents(). So maybe the problem is that both clients are opened at the same computer, or maybe it's because of hosted mode ? On Apr 22, 11:56 pm, Vitali Lovich vlov...@gmail.com wrote

Re: Eclipse Plugin Compile Button Stack Overflow

2009-04-23 Thread Vitali Lovich
The problem has already been fixed in trunk. Maybe you could convince the developers to make a point release given the visibility frequency this issue has occured. On Thu, Apr 23, 2009 at 3:51 AM, mihai007 mihai@gmail.com wrote: oh well add me to the list. this should have priority as it

Re: ImageBundle and the new war structure

2009-04-23 Thread Vitali Lovich
There's no public folder as far as I'm aware - that's what the war directory is for. Images go in the same directory as your ImageBundle class. On Wed, Apr 22, 2009 at 2:51 PM, Sunil suba...@gmail.com wrote: I created a package hierarchy in the public folder which matches the package for the

Re: How to get the 'generated' html

2009-04-23 Thread Vitali Lovich
No since those values are hidden in javascript. All the generated html view is I think is if you use Javascript to do a document.write to dynamically generate the HTML, which isn't what you are doing. You might find Firebug helpful - it lets you inspect the DOM CSS which is far more useful. On

Re: what optimizations are needed to improve performance

2009-04-23 Thread Vitali Lovich
elements (blinking, page reloads). Could this contribute to noticeable lag? Is there a function that would return current time as int data type? Thanks On Apr 22, 11:30 pm, Vitali Lovich vlov...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:39 PM, denis56 denis.ergashb...@gmail.com wrote

Re: i18n in client/server application

2009-04-23 Thread Vitali Lovich
On Thu, Apr 23, 2009 at 3:24 AM, olel lauri...@engram.de wrote: What do you mean by the regular java way? The regular java way for i18n is to use a java.util.ResourceBundle together with some property files (i.e. application_de.properties and application_en.properties for german and english

Re: How to remove the default blue border of TabPanel

2009-04-23 Thread Vitali Lovich
Make sure you include your stylesheet in the module xml in the correct location. This has been discussed several times in the discussion forum. Optionally, a hack would be to mark the rule !important, but I'd really recommend doing it the correct way - it's not difficult. On Thu, Apr 23, 2009

  1   2   3   4   5   >