Re: GWT and WebGL

2010-10-19 Thread Matías Costa
Well, Look what these guys did:

http://code.google.com/p/quake2-gwt-port/

<http://code.google.com/p/quake2-gwt-port/>If they could... why don't you?

El 18 de octubre de 2010 18:38, Matías Costa escribió:

> I think you can't. It should be a massive work. I have no idea about how
> bullet works, but tricking it to use a webgl context must be hard, next to
> imposible.
>
> GWT is a Java to Javascript compiler. It is no magic java in a webpage. The
> java code must comply various constraint to be able to translate to
> javascript. Something as simple as awt.Color doesn't work.
>
> 2010/10/16 Alon Gubkin 
>
> I'm planning on writing a 3D game for the Game On 
> contest<http://mozillalabs.com/gaming/2010/09/30/game-on-2010-is-here/>with 
> WebGL. Because of the huge third party libraries wrriten in Java (like
>> JBullet <http://jbullet.advel.cz/>), I thought it'd be a good idea to
>> write it with GWT and not in plain JavaScript.
>>
>>- What is the most active WebGL module for GWT?
>>- Are there any graphics engine ported to WebGL/GWT? If not, should I
>>port an existing graphics engine to GWT before writing the game? Is the
>>WebGL API similar to the OpenGL API?
>>
>> Thanks.
>>
>> --
>> 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 from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>

-- 
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 from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT and WebGL

2010-10-18 Thread Matías Costa
I think you can't. It should be a massive work. I have no idea about how
bullet works, but tricking it to use a webgl context must be hard, next to
imposible.

GWT is a Java to Javascript compiler. It is no magic java in a webpage. The
java code must comply various constraint to be able to translate to
javascript. Something as simple as awt.Color doesn't work.

2010/10/16 Alon Gubkin 

> I'm planning on writing a 3D game for the Game On 
> contestwith 
> WebGL. Because of the huge third party libraries wrriten in Java (like
> JBullet ), I thought it'd be a good idea to
> write it with GWT and not in plain JavaScript.
>
>- What is the most active WebGL module for GWT?
>- Are there any graphics engine ported to WebGL/GWT? If not, should I
>port an existing graphics engine to GWT before writing the game? Is the
>WebGL API similar to the OpenGL API?
>
> Thanks.
>
> --
> 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 from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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 from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Targettting Rhino with GWT compiler

2009-10-23 Thread Matías Costa

On Tue, Oct 20, 2009 at 3:53 PM, Attila Szegedi  wrote:
>
> Hi all,
>
> I really like the development model of GWT - using Java for
> development, with all its type robustness and refactoring
> friendliness. I have a rather large JS system that badly needs
> rewriting after five years of incremental spontaneous evolution and I
> consider using the GWT compiler to redo it. The gotcha though is that
> this is not a browser-run front-end application, rather it is a server
> side JavaScript system, using Mozilla Rhino on the JVM as its JS
> runtime.


I do not see how GWT fits here. Please, can you explain? Generating
not offuscated code and use that with hand made JS? Why not use one
language from the new breed: scala, clojure, groovy...?

--~--~-~--~~~---~--~~
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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to send data to client in a regular interval?

2009-06-01 Thread Matías Costa

Further reading:

http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

2009/6/1 Matías Costa :
> Mail fail.
>
> Oops, very wrong post. My brain got a shortcircuit and I was thinking
> this was for the django list.
>
> Sorry.
>
> Almost everything apply to GWT except the jquery and djangosnippets
> statements. For coment exists various solutions with 3rd party
> modules.
>
> 2009/6/1 Matías Costa :
>> I use auto_increment primery keys, so new rows are greater than the
>> last send to client. Each minute the client polls the server
>> /example/path/new_objects?from=2353 (beware IE caching). JQuery in
>> client, and json encoding in the server  (search djangosnippets.com)
>> makes this a joke, no more than a few hours to implement.
>>
>> If you want also notify modifications (my model is inmutable) you
>> should store some kind of version indicator.
>>
>> If you need near real-time updates investigate comet. I have no
>> experience with it.
>>
>

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to send data to client in a regular interval?

2009-06-01 Thread Matías Costa

Mail fail.

Oops, very wrong post. My brain got a shortcircuit and I was thinking
this was for the django list.

Sorry.

Almost everything apply to GWT except the jquery and djangosnippets
statements. For coment exists various solutions with 3rd party
modules.

2009/6/1 Matías Costa :
> I use auto_increment primery keys, so new rows are greater than the
> last send to client. Each minute the client polls the server
> /example/path/new_objects?from=2353 (beware IE caching). JQuery in
> client, and json encoding in the server  (search djangosnippets.com)
> makes this a joke, no more than a few hours to implement.
>
> If you want also notify modifications (my model is inmutable) you
> should store some kind of version indicator.
>
> If you need near real-time updates investigate comet. I have no
> experience with it.
>

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to send data to client in a regular interval?

2009-06-01 Thread Matías Costa

On Mon, Jun 1, 2009 at 10:59 AM, Suren  wrote:
> but I want to confirm is there any other ways of doing
> it. So at the end, its not possible..hmm.
>
> So now what I am trying to do is,  Storing the keycolumns of the rows
> initially sent to client in an array, and I am initiating the request
> from the client now, and fetching the same values from the DB and
> comapring with the existing values. If there is a difference then
> sending that to client, else leave that row as such..
>
> Tell me if anyother way of doing it, or is there any disadvantages of
> doing it?

I use auto_increment primery keys, so new rows are greater than the
last send to client. Each minute the client polls the server
/example/path/new_objects?from=2353 (beware IE caching). JQuery in
client, and json encoding in the server  (search djangosnippets.com)
makes this a joke, no more than a few hours to implement.

If you want also notify modifications (my model is inmutable) you
should store some kind of version indicator.

If you need near real-time updates investigate comet. I have no
experience with it.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to send data to client in a regular interval?

2009-06-01 Thread Matías Costa

On Mon, Jun 1, 2009 at 9:47 AM, Suren  wrote:
>
> Hi all,
>
> Is it possible to send the updated data from DB to the client in a
> periodic interval and without any request or call from the client?

No, it is not posible.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6.4 on Linux amd64 architecture fails

2009-05-31 Thread Matías Costa

On Mon, Apr 27, 2009 at 7:51 PM, marco  wrote:
>
> This seems a similar issue as with GWT 1.5.3, in that both seem to
> require a 32bit JVM to run properly.

The 32b JVM is needed for the hosted mode. In production we are using
64b pure server.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT1.6 and annotations

2009-05-06 Thread Matías Costa

Hello people.

I am developing with 1.5/eclipse/cypal-plugin, with some custom
annotations and all goes fine. But fails with gwt1.6 and the google
plugin.

Simple test case. In eclipse create a new gwt project, let's call it just 'g'

Create annotation:

package g.client;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Foo {
    public String bar() default "bar";
}

Create class using annotation:

package g.client;

import java.io.Serializable;

public class Thing implements Serializable {

    @Foo(bar = "ok")
    public double id;

    public Thing() {
    id = 25;
    }

    public double getId() {
    return id;
    }
}

"GWT compile project" output:

Compiling module g.G
   Refreshing module from source
  Refreshing TypeOracle
 Processing types in compilation unit:
file:/home/mati/eclipse/g/src/g/client/Thing.java
Found type 'Thing'
   Resolving annotation '@Foo(bar = "ok")'
  [ERROR]
java.lang.ClassNotFoundException: g.client.Foo
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at 
com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral(TypeOracleMediator.java:763)
at 
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:831)
at 
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:857)
at 
com.google.gwt.dev.javac.TypeOracleMediator.resolveField(TypeOracleMediator.java:899)
at 
com.google.gwt.dev.javac.TypeOracleMediator.resolveFields(TypeOracleMediator.java:943)
at 
com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediator.java:1428)
at 
com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:389)
at 
com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:417)
at 
com.google.gwt.dev.javac.CompilationState.refresh(CompilationState.java:179)
at 
com.google.gwt.dev.javac.CompilationState.(CompilationState.java:93)
at 
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:264)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:84)
at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:78)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)
   Compiling 5 permutations
  Permutation compile succeeded
   Linking into war
  Link succeeded
   Compilation succeeded -- 19,961s

Should I just ignore the error?

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC Performance/Response Problem

2009-03-26 Thread Matías Costa
On Thu, Mar 26, 2009 at 9:46 AM, -Lord-67 <-lord...@web.de> wrote:

>
> First of all: Hi to everyone!
>
> I'm new to GWT and just programming my first app. Since i've some
> experience in Java it's not a big problem, but in this case i am stuck
> and hopefully someone can help me.
>
> In my app i make a RPC: On server side i get some data out of a
> database and save it into an array of type String. Up to 10.000
> Strings atm, later on maybe up to 50.000. It is no problem so far. The
> server is handling this really fast. I measured 5 RPCs with about 500
> Strings each and it took less time than 200 milliseconds each (SQL
> Statement + creating the array).
>
> The problem now is: I have to wait 5 SECONDS to get the results of the
> RPC (the String[] created on the server) on the client side so i can
> do something with them. Regarding the overall time i measured, these 5
> seconds are more than 75% of the time which my app needs. Is it
> possible that the serialization and deserialization takes that much
> time? I don't think so and i have no clue where this 5 seconds come
> from. If someone has any ideas, solutions, suggestions on this problem
> i would appreciate any help!
>
>
Seems your bootleneck is in the browser. Javascript is not very fast. Try
Chrome and if it is faster you can blame javascript . You can make chunks of
1000 Strings and update the UI in steps. The overwall performance
(throughput) will be worse, but the speed perception will be much better
(latency),

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Currency Formatting

2009-03-25 Thread Matías Costa
On Wed, Mar 25, 2009 at 12:28 PM, fatjack1...@googlemail.com <
fatjack1...@googlemail.com> wrote:

>
> When you say the currency code, do I just type in something like
> 'GB' (or equivilent) for the UK?


British pounds = GBP
Euro = EUR
US Dollar = USD
And so on...

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and charts

2009-03-23 Thread Matías Costa
2009/3/23 Matías Costa 

> On Mon, Mar 23, 2009 at 2:05 PM, JoeB  wrote:
>
>>
>> The Fusion Charts are very good-looking, but they require the Adobe
>> Flash Player plugin.  My customer may be using the app from within a
>> secure network that doesn't have access out to the Internet, so this
>> could be a problem.  It seems that at least some browsers come pre-
>> installed with the Flash Player; does anybody have a sense as to how
>> safe it is to assume that "all modern browsers" already have the Flash
>> Player?
>>
>
> Any browser comes with flash preinstalled.
>

Sorry, I mean "NO browser comes with flash preinstalled"

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and charts

2009-03-23 Thread Matías Costa
On Mon, Mar 23, 2009 at 2:05 PM, JoeB  wrote:

>
> The Fusion Charts are very good-looking, but they require the Adobe
> Flash Player plugin.  My customer may be using the app from within a
> secure network that doesn't have access out to the Internet, so this
> could be a problem.  It seems that at least some browsers come pre-
> installed with the Flash Player; does anybody have a sense as to how
> safe it is to assume that "all modern browsers" already have the Flash
> Player?
>

Any browser comes with flash preinstalled. Anyway, flash is not a big
dependency. May be you could host it in the app web server for the user to
install it without internet connection.

If user can't install flash, you have to go with gcharts.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: using of classes outside gwt's class list

2009-03-23 Thread Matías Costa
On Mon, Mar 23, 2009 at 4:10 PM, ytbryan  wrote:

>
> thanks thomas.
>
> I wonder which method is better? thomas's or David's?
>
> I don't quite get how to "emulate" the java class...
>
> but if i simply put it at the server, it will slow down my system
> greatly. eg. if i want to fetch the geocode from google geocode, the
> data will go to my server and then transmitted to my client through
> RPC.
>
> is there a standard way of doing this? given that the classes needed
> are outside the JRE Emulation provided by gwt.
>

Google provides a gwt "bindings" to his google maps api.

Think again, your app runs inside a big HTTP client.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and charts

2009-03-23 Thread Matías Costa
On Mon, Mar 23, 2009 at 7:02 AM, robinson  wrote:

>
> Hi there guys,
>
> I am developing a java based application and require a charting
> utility. But when i started using google visualizations for this I
> figured out that it has a dependency on internet. Is there any way for
> me to get charts using GWT, without depending on internet.
>

I am using ofcgwt for charting. The main problem for me is, until you get
OOPHM working (I haven't even tried, I am in a rush) watching the charts
require full app compilation. The process , code -> test -> discover bug ->
code -> test is slow.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Open Flash Charts and negative values

2009-03-23 Thread Matías Costa
Hello people.

I am using ofcgwt for charting, and it looks like you can't pass the y_min
parameter supported by ofc to get proper negative values rendering.

¿Any idea of how to get a negative range Y axis?

Thanks

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Plugin based gwt web application

2009-03-13 Thread Matías Costa
On Fri, Mar 13, 2009 at 4:31 PM, Andreas Karlsson  wrote:

> Therefor I don't think the dynamic addition of (at compile time
> unknown) modules is doable with the current (or future) versions of
> GWT.
>

Yeah, you are right.

I've talking with a colleague about the idea, its posible, with
restrictions, with a JSNI interface in both sides, the plugin and the app.
This is the way gwt-exporter works, you can see it in the timepedia blog:

http://timepedia.blogspot.com/2009/03/gwt-exporter-205-released.html

But the more simple solution, as you say, is compiling all plugins all at
once, and activate them in runtime.

I consider myself satisfied with this. Josh, are you done?

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Plugin based gwt web application

2009-03-13 Thread Matías Costa
On Fri, Mar 13, 2009 at 6:39 AM, Vitali Lovich  wrote:

> The "obfuscated" code is just javascript which I explained to you how to
> load.
>

I disagree because:

* Obfuscated, optimized code mangles the functions and classes names. If
this mangling, is not deterministic and constant between compiler
executions, the plugin method names are different. So, how the app and the
plugin can invoke each other?
* There are missing code paths never used by your app, but needed by the
plugin. And the reverse. Oh, and inlining.
* Gwt builds are self contained, we do not want the plugin to have its own
copy of everything.

With optimized, obfuscated code you need some way to tell the compiler what
symbols preserve. The same as you tell a C++ compiler/linker when doing a
library, the symbols to export.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Plugin based gwt web application

2009-03-13 Thread Matías Costa
On Fri, Mar 13, 2009 at 12:00 PM, Andreas Karlsson wrote:

> What I (plan) to do is to automatically recompile the whole
> application when a client-plugin is added.
>
> So I keep a plugin registry on the server side and when I enable/add a
> plugin I generate some glue files and recompile + redeploy the whole
> GWT-client automatically, this to get the most benefits from GWT
> optimizations.
>

I am in the design phase of a application that will be deployed on different
offices, each one with almost equal  workflows, automatizing, staff and
requisites. Yeah, that "almost" sucks. The idea is to get one big common or
default subset, build some kind of plugin / extension / delegation system
for the specific and deploy different builds without forking the codebase.
That forking should be a nightmare.

So, your way was the initial idea, and in our project fits. But some kind of
dynamic plugin loading and upgrading, without touching the core install is
ideal, and a very powerful tool. For example, you can do per user plugin
configs.

So, Rosh, what do you think about doing a small prototype? I see appropriate
contact via private mail, work on that and publish the results pointing
problems and wait for feedback. We can be days talking about the idea, but
only the code can prove it can work, and looks like anybody has done
something similar.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help Please : How to add my own jar file in Gwt Module

2009-03-13 Thread Matías Costa
On Fri, Mar 13, 2009 at 8:08 AM, shashi  wrote:

> Loading inherited module 'com.span.gwt.client.widgets.events'
>  [ERROR] Unable to find 'com/span/gwt/client/widgets/
> events.gwt.xml' on your classpath; could be a typo, or maybe you
> forgot to include a classpath entry for source?
>
>
> Please any body help me out from this issue?
>

Remember that gwt is a java *source code* to javascript compiler. All
classes used in client side must be available as source code when compiling.
You must include the .java files in the jar.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Plugin based gwt web application

2009-03-12 Thread Matías Costa
On Thu, Mar 12, 2009 at 5:40 PM, Rosh PR  wrote:

> One of the problems I'm facing over here is how will i compile a
> small set of gwt code with out any EntryPoint and use the
> generated *javascript* from the framework. I know we can compile
> without the Entrypoint but the main problem I'm facing is compiling
> code to javascript instead of java classes and loading it to the
> framework which will have to use these JS and display the plugin
> widget on the framework console on runtime.
>

Interesting problem.

This is going to need some kind of infraestructure and policy. I am just
thinking out loud waiting more experienced people point problems and what
can work. To start you need two things:

a) Know what plugins exists, a registry of plugins
b) Attach them into a panel, listen events and useful stuff

To install the plugins you can drop them in folder. To know what exists you
can do it manually, setting up a file and fetching it from the client side.
To do it automatically you can do it server side and rpc-serialize'it to
client side.

To load them the main problem is obfuscated code. I imagine you can't mix up
source comming from different optimizer executions. Let's suposse we can.
Then if we know the plugin main object name, we can construct a jsni method
to forge a call to the pluing initializer function, with the panel id to be
attached.

native void initPlugin(String objectName, String panelId) /*-{
  var method = "@"+objectName+"::doInit(Ljava/lang/String;)";
  eval(  method+"('"+panelId+"');"  );

}-*/;

That should give to the plugin the ability to put itself into the panel and
call whatever container hooks needs.

Another way is doing plugin static iniatilazation self injection:

class CoolPlugin extends Plugin {
 static {
  Application.staticSomething.register(new CoolPlugin());
 }

So the application can take further actions...

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 works on 64 bits?

2009-03-11 Thread Matías Costa
On Sun, Feb 15, 2009 at 3:24 PM, anderson...@gmail.com <
anderson...@hotmail.com> wrote:

> We all want to know, GWT 1.6 works on 64 bits?
>

I'm developing on gwt 1.5  with eclipse running on  java 1.6 64bits, with
the gwt projects configured to run on java 1.5 32bits. I can debug in hosted
mode perfectly. It's deployed on a tomcat 6 running java 1.6 64 without
troubles.

In my understanding of GWT 1.6 OOPHM, you should be able to debug with
all-64bits and your normal firefox.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: use getDeclaredMethods() ??

2009-03-11 Thread Matías Costa
On Wed, Mar 11, 2009 at 10:38 AM, Josse  wrote:

> There is no way to get round this problem??
>

Well, you have to create a generator that instrospect you classes in compile
time. The simplest variation is to inspect your beans, and beanadapters
generators are available on the net. This document was very usefull to me:

http://blog.*zenika*.com/public/Billet_0006/tutorial-binding-en.pdf

Full reflection is provided by more complex
frameworks/systems/whatever-you-call-it as gwt-reflection. It's a project
available in googlecode, but I have not used it.

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Email Validator

2009-03-11 Thread Matías Costa
On Wed, Mar 11, 2009 at 8:27 AM, raga p  wrote:

> can any inform me how to implement validation controls for Email
> Validator..
> or attach the sample code for using it..
>
http://groups.google.com/group/Google-Web-Toolkit/msg/579923157140e362

You're welcome

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Synchornous GWT, how can i do that

2009-03-10 Thread Matías Costa
On Tue, Mar 10, 2009 at 6:01 PM, mikedshaffer wrote:

> Lothar's original suggestion
>
> "Do the UI-update in a method called updateUI where you check if all
> necessary data (e.g. above lists) are present and call this method
> in every onSuccess-method of the different AsyncCallback-classes. "
>
> is the way to go.
>

I agree, 3 requests, 3 ui components fills, so the ui feels responsive and
some kind of "magic" that impress users.

2 questions:

1) not only async is the way to go, but the only way to go? Due one-thread
nature of javascript you can't do

request.send(callbackObject);
while (field == null) Timer.sleep(100);
field.use()

because javascript is really frozen doing that sleep, there is no way to
process the response. You have no notify() (yeah, no threads), nor
continuations and setTimeout is no better, but worse.

2) Is it feasible to do some kind of "request chaingun"?. Adding request to
a list, process responses with a generic callback and calling custom
callback when all finish:

List chain = new ArrayList();
chain.add(service.getData1(arg));
chain.add(service.getData2(arg));
chain.add(service.getData3(arg));
gun.fire(chain, new ChainGunCallback {
  onSuccess(List results) {
   // do casts and stuff
  }
  onFailure(WhatEver cause) {
// crash!
  }
});

...

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: working with % for gwt/gwtext widget(Panel) height

2009-02-19 Thread Matías Costa
I had to think twice to understand you want to set height in percentage.

The size of any widget is affected by the layout is contained in. You can do
setHeight("50%"), add to the parent container setLayout(new FitLayout()), or
just use any of the many layouts available and use panel.add(widget,
layoutdata). ej: rowlayout / rowdata

Have you tried setStyle, or a custom css?

On Thu, Feb 19, 2009 at 5:31 AM, Manish Kumar wrote:

>  Hi All,
>
> Could I please expect any talk on this? Every single contribution will be
> appreciated well as I am now on dead-end where I need to say yes or no.
>
> Regards,
> Manish
>
> - Original Message -
> *From:* Manish Kumar 
> *To:* Google-Web-Toolkit@googlegroups.com
> *Sent:* Wednesday, February 18, 2009 2:19 PM
> *Subject:* working with % forgwt/gwtext widget(Panel) height
>
> Hi All,
>
> I am trying to use % with GWT/GWText widget(Panel). But this does not
> work.Could i know how to do or if any work around for this.
>
> Regards,
> Manish
>
> >
>

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Question: How can I get login user from Windows in GWT?

2009-02-13 Thread Matías Costa
Damien is 50% right. You can't get windows credentials from any internet
user. But both IE and mozilla on windows support http auth negotiate. IE for
same active directory hosts out of the box, and in both you can add
exceptions.

I know it, because I worked in a web single sign on project for a company
intranet. The mechanism is called SPNEGO. Other guy in the project
integrated it with jass and/or acegui, but I don't remember too much.

On Fri, Feb 13, 2009 at 7:46 AM, Roger  wrote:

>
> Hi all,
>
> Greeting from Roger.
> I do not know how to get login user from Windows in GWT. I try solving
> this in the way below, unfortunately does not work.
>
> In RemoteServiceServlet,
>
>   ...
>Principal principal = getThreadLocalRequest().getUserPrincipal
> ()   //  principal is NULL!!
>String userName  = principal.getName();
>   
>
> Is there anyone can help me on this ?
> Thanks a ton.
>
> BR, Roger
>
> >
>

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: save as dialog

2009-02-11 Thread Matías Costa
On Wed, Feb 11, 2009 at 4:53 PM, ytbryan  wrote:

>
> Hi all,
>
> i already created a servlet that make a csv file frommy Resultset and
> save it to a predetermined location.
>
> However, i would like the user to choose the location to be stored and
> the name of the csv file. can someone advice me what to do?
>
> Do you mean in the client? If so, you can use content-disposition header.
See:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html

Section 19.5.1 Content-Disposition

--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---