Re: Safari 5 - (RangeError): Maximum call stack size exceeded

2010-06-22 Thread pash7ka
There is an Issue 4393 about this bug. I've applyed dunhamsteve's patch and also in all binarySearch() functions in Arrays.java and Collections.java changed: - final int mid = low + ((high - low) 1) + final int length = high - low; + final int half = length 1; + final int

FormPanel: why it extends SimplePanel?

2010-11-09 Thread pash7ka
Is there a good reason for FormPanel to extend SimplePanel and not some other panel (like HTMLPanel)? The problem with SimplePanel is the restriction to only one child, while most forms contain much more fields. So one shoud use some other Panel whithin the Form and this leads to unnecessary

Re: FormPanel: why it extends SimplePanel?

2010-11-09 Thread pash7ka
On Tue, Nov 9, 2010 at 3:34 PM, pash7ka pash...@gmail.com wrote: Is there a good reason for FormPanel to extend SimplePanel and not some other panel (like HTMLPanel)? The problem with SimplePanel is the restriction to only one child, while most forms contain much more fields. So one shoud use

Module can't be loaded when host page has an element with id same as module name

2010-11-13 Thread pash7ka
When I have a div id=test.../div on the host page and have module rename-to=test in the module xml file, this module can't be loaded (especialy in IE), because bootstrap code from module.nocache.js tries to create an iframe with the same id as module name. Then on the maybeStartModule() it

AutoBean with JSONP

2011-08-22 Thread pash7ka
Hi! I'm trying to use AutoBean framework to transfer data from server to GWT App. GWT-RPC is not good for me, because i need to cache responces. So I'm trying to use JsonpRequestBuilder to fetch data and AutoBean framework for encoding/decoding. The simple (and not working) aproach is like this:

Re: AutoBean with JSONP

2011-08-22 Thread pash7ka
I've found a solution: it's possible to convert Object to String on the client: --- JsonpRequestBuilder jrb; // = ... jrb.requestObject(url, new AsyncCallbackJavaScriptObject(){ public void onSuccess(String result) { JSONObject jsObj = new JSONObject(result);

Integer and int are not equal... Especially if received via JSNI

2012-09-14 Thread pash7ka
I've spent a huge amount of time trying to find the source of one strange bug in my app, so I want to share what I've found. First I should say I'm using GWT 2.3 currently, so i don't know if the described behavior changed in latest version. My app is receiving some data from my server,

Re: Integer and int are not equal... Especially if received via JSNI

2012-09-17 Thread pash7ka
Yes, this manual boxing is what i did to solve this. I don't use DevMode because it's a bit difficult to configure my environment for it: i use JBoss as my app server and the app is deployed via .ear archive with some other modules it needs to work... I'm sure it's possible to configure