Re: Downloading a document while some RPC call is still running

2010-06-08 Thread André Moraes
If you don't really need to open a new window to start the download, you could make a call to the server and fetch the url to de document. Then simply put this inside a hyperlink on the application or inside a dialogbox. Then the user just need to click on the link to download the file. This

Re: GWT and CSS

2010-06-17 Thread André Moraes
You could use the CssResource + ClientBundle. It is inlined in the HostedPage, so you probably will not have problems with the standard.css. You simply call the addStyleName passing the result of a function call. Check out the link to get more information:

Re: Compile and Run gwt web application from Command Line

2010-06-18 Thread André Moraes
History.getToken() isn't deprecated?! I use the History.addValueChangeHandler. History.addValueChangeHandler(new ValueChangeHandlerString() { @Override public void onValueChange(ValueChangeEventString event) {

Re: java.util.Map with Javascript Overlay example?

2010-06-18 Thread André Moraes
In JavaScript world, almost everything is a Dictionary. If you simply need a dictionary, just use a JavaScriptObject. Here is a example: public final native void setValue(String key, String value) /*-{ this[key] = value; }-*/; private native static

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

2010-06-18 Thread André Moraes
I'm not using the integration with Roo, but I dislike the idea of having a tool that after generating my code difficult to customize the generated code. A while ago I wrote a code generator that allows reuse of code and Retrieval without losing the customizations made. Through some markings (in

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

2010-06-18 Thread André Moraes
/use Roo, but I used some code generation tools before, so excuse me for any noob comment on the Roo subject. On 18 jun, 19:08, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: 2010/6/18 André Moraes andr...@gmail.com I'm not using the integration with Roo, but I dislike the idea of having

Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?

2010-06-19 Thread André Moraes
code generation. And after watching the video I know I will try it, it has impressed me enough. 2010/6/19 André Moraes andr...@gmail.com Jaroslav, But how can I control the merge process? In my case the code is generated, than i can edit make any changes in the generated code (which

Re: Is it possible to _replace_ element with my widget?

2010-06-19 Thread André Moraes
Jaroslav, Maybe instead of reaplacing you delete than insert again the element?! I think that the problem of not getting Clicks is because of the way GWT handles clicks. To avoid memory leaks, the handlers don't go in the same way that was generally done without GWT. Another approach will be

Re: enable/disable widgets?

2010-06-19 Thread André Moraes
It's more like a workaround, but you could: - Remove the ClickHandlers for the widget (easy if the widget is private under a composite) - use addStyleName, removeStyleName to set the css class of the disabled widgets. Using the Composite base class if very nice and you can use all the widget

Re: Is it possible to _replace_ element with my widget?

2010-06-19 Thread André Moraes
André Moraes andr...@gmail.com Jaroslav, Maybe instead of reaplacing you delete than insert again the element?! I don't understand. What would be the benefit? :) Let's say the placeholder element was third node within its parent. How can I place my widget in its place? (I do apologize

Re: Needs Scroll Panel and Resize Help

2010-06-19 Thread André Moraes
Check the Layout Panels, those are new in GWT and make the work to layout your app much easier. Your answer maybe in the use of DockLayoutPanel / SplitLayoutPanel. http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuideUiPanels.html Hope it helps. On 19 jun, 15:38, spierce7

Re: what large apps use GWT?

2010-06-24 Thread André Moraes
GMail isn't a GWT app, because GMail is older than GWT. But Wave is a much more complex app and is GWT. Not that Wave is more mature than GMail but it has much more features than GMail. For the large application problem... GWT is to build complex apps for the browser. Not complex sites... The

Re: Newbie advise?

2010-06-24 Thread André Moraes
You can create widgets... People love widgets... :) This project: http://code.google.com/p/google-web-toolkit-incubator/ Contains some of the code for new widgets, some of them are ported to the main gwt trunk. The FastTree and CellTable are some of the widgets which borned in the incubator.

Re: what large apps use GWT?

2010-06-25 Thread André Moraes
/featurex.php), it's never loaded :) M. On Jun 24, 7:34 pm, André Moraes andr...@gmail.com wrote: GMail isn't a GWT app, because GMail is older than GWT. But Wave is a much more complex app and is GWT. Not that Wave is more mature than GMail but it has much more features than GMail

Working with Date using JSON - pt_BR

2010-06-28 Thread André Moraes
Hi, Is possible to convert a javascript Date object to a java.util.Date (and vice-versa)? Like the string or int? The Date.parse is marked as deprecated in the JDK, it's safe to use it within the GWT, and what is the behavior (localization) that it will show. My primary target is Brazilian

Re: how to make javascripts,static images and css cacheable...

2010-06-29 Thread André Moraes
All the code generated by GWT (css, javascript, images). Are cacheable by default, since the name of the resource is generated by the hash of the contents (i think it is CRC 32, but not sure). The best way to cache things is to let your web-server handle this. Apache, nginx, tomcat have a very

Re: Javascript in HTML Object works in FF not IE

2010-06-29 Thread André Moraes
How do you load the script? You add a script tag or download the javascript code and then make a call to eval? Another question, the information retreived by the requestbuilder is only javascript (json) or had html too? If your case is the second, you could use setInnerHTML. On 29 jun, 15:16,

How GWT-RPC handles polymorphic serialization?

2010-07-05 Thread André Moraes
The GWT has the standard GWT-RPC to make easier to create RPC calls and fetch data from the server, but this tool only works if we have Java on the server side. In my current project, the server side will be .NET based. So I wrote a JSON-RPC library which implements the JSON-RPC standard to

Re: JSON Problem

2010-07-05 Thread André Moraes
re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call), new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) {

Re: JSON Problem

2010-07-05 Thread André Moraes
to describe it cause i need it as soon as possible On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:                         re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call), new RequestCallback() {                                 @Override

Re: JSON Problem

2010-07-05 Thread André Moraes
} }); On 5 jul, 15:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: you told me how to send request from client to server now i want how yo get data from server to use it in client and the data in json On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote: This code

Re: I18N and dynamic texts

2010-07-05 Thread André Moraes
Well, You can create a class that wraps a JavaScriptObject which contains a Dictionary with your keys and values. And before starting your application you can make a HTTP Request to fetch the JSON data (or part of it). Than in the server-side your write some code that send the values from the

Re: JSON Problem

2010-07-06 Thread André Moraes
On Jul 5, 9:33 pm, André Moraes andr...@gmail.com wrote: The response comes async. When the response from the server arrives at the client the method onResponseReceived in the RequestCallback object is called, if an error hapens the the onErrormethod is called. The RequestCallback

Re: How GWT-RPC handles polymorphic serialization?

2010-07-06 Thread André Moraes
? 2010/7/5 André Moraes andr...@gmail.com The GWT has the standard GWT-RPC to make easier to create RPC calls and fetch data from the server, but this tool only works if we have Java on the server side. In my current project, the server side will be .NET based. So I wrote a JSON-RPC

Re: Client side mapping between model objects

2010-07-13 Thread André Moraes
this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Writing a JS library in GWT?

2010-07-27 Thread André Moraes
. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups

Re: Writing a JS library in GWT?

2010-07-27 Thread André Moraes
='client'/ source path='shared'/ source path='test'/ /module 2010/7/27 André Moraes andr...@gmail.com I had the same problema of getting bigger source code files. The solution: Check your Module file (Module.gwt.xml). As the default behavior is to create GUI the default module loads

Re: GWTCanvas vs gwt-graphics?

2010-07-29 Thread André Moraes
+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You

Re: GWT Rocks!

2010-07-30 Thread André Moraes
=en. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com

Creating Eye-candy UI

2010-07-30 Thread André Moraes
Hi, My girlfriend works with QA for a software company and in the spare time she like to draw, she would like to contribute to some project that is looking for eye-candy user interface, does anyone knows some project? How she could contribute? Some of her drawings can be see at:

Re: How does Google earn money from GWT?

2010-08-02 Thread André Moraes
(writing code, finding bugs, creating new features). Also, Google improve his visibility accross the developer community (this group has 23401 members, which is quite a big community). -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com

Re: is ZK better than GWT..?

2010-08-02 Thread André Moraes
-agnostict so you can use any backend without recompiling your app. I am writing a JSON-RPC library for this purpose because I need to integrate .NET server with GWT client. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You

Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-02 Thread André Moraes
code, if not, i check the response. Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-02 Thread André Moraes
/PrimitiveTypes.htm Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool

Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-03 Thread André Moraes
At least this is private, so nobody will see the hack (except you) :) -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Return permutation directly from the server without selection script.

2010-08-04 Thread André Moraes
by which permutation in the GWT compiler pipeline? I belive that I will need to write a linker to get those files, but how? Thanks. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you

Re: Arrow and Plus/Minus images in compiled files

2010-08-04 Thread André Moraes
will no be compiled next time. And if you want images, try to use CssResources and ClientBundle so the compiler will generate only the files that your code uses. Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received

Re: Arrow and Plus/Minus images in compiled files

2010-08-04 Thread André Moraes
removing the standard theme solved. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google

Re: Return permutation directly from the server without selection script.

2010-08-04 Thread André Moraes
. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe

Re: Browser cache issue

2010-08-05 Thread André Moraes
That depends on what webserver your are using. Read the docs on how to configure Cache-Control and ETag for static files. Hope it helps, -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you

Re: Does Timer class only last one session + images as an attachment in an email

2010-08-09 Thread André Moraes
%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you

Re: Does Timer class only last one session + images as an attachment in an email

2010-08-09 Thread André Moraes
that special url. This isn't the best solution, but works when you don't have admin access to cron jobs in the production server. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed

Re: Is Google a quitter ... Wave is dead

2010-08-10 Thread André Moraes
applications at google: gmail, docs, blogger, reader, ...) and the community has little momentum and the project is maintained only by 20% people and GWT have it's own team to work. So GWT will have a good path. :) -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http

Re: GWT compiler breaks valid JS

2010-08-12 Thread André Moraes
about the body tag. Maybe this can help, since it work on hosted mode and only breaks on compiled mode, this probably is a loading problem. Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message

Re: GWT compiler breaks valid JS

2010-08-12 Thread André Moraes
#getStyle() Hope it helps, -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool

Re: GWT compiler breaks valid JS

2010-08-12 Thread André Moraes
I could not ran the GWT code because I am working at the moment, I just checked the links that you passed to me. I will try to check the code later for you. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received

Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread André Moraes
that, the browser will download all the code for all the UI. Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group

Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread André Moraes
to your problem. :( Bye, -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool

Re: I need a little help with request builder

2010-08-16 Thread André Moraes
but this have the advantage of not blocking the browser. Hope it helps, -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Problem using Reflection and Casting objects on GAE

2010-08-17 Thread André Moraes
This solution is working in GWT compiled mode or you just tested it in hosted-mode? -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: GWT JSNI WITH EVAL

2010-08-18 Thread André Moraes
I never tried to do something like this (access a GWT Java Method with eval) but looks like this is not the better way to do something. What you want acomplishe with this code? -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com

Control how GWT.async load modules (on the server).

2010-08-27 Thread André Moraes
When using split points the code is loaded only when it is need, so the application loads faster and the user don't need to download code that is not used. This is very nice. But how can I control the code that the user can load, supose the following scenario: 1- Operational user: load the

Re: Runtime.exec on sever side

2010-08-27 Thread André Moraes
maybe the webserver that is hosting your file don't have permission to run external programs. Or the path variable was reset to an empty value so the application cannot find the cat program. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http

Re: GWT for Python

2010-08-30 Thread André Moraes
to a Dynamic Scripted Language instead of Java, you should use JavaScript directly. Take a look at Closure Compiler they make almost the samething that GWT compiler does but is pure JavaScript. Using PyJs you will not have most of the benefits of GWT and will have all the problems. -- André Moraes