[gwt-contrib] Re: Server-side Class object on client-side

2010-01-29 Thread Nathan Wells
Les, Your methodology ends up using the same basic idea as what I'm currently using: annotations. The problem is that I end up having a class on the client for every procedure on the server. Maybe I could consolidate them into one big class with a bunch of tiny inner classes. In any case, it

Re: [gwt-contrib] Re: Server-side Class object on client-side

2010-01-28 Thread Ian Petersen
Nathan, You might want to have a look at super-source, if it's still called that. If you are willing to put empty definitions of your server-side classes on the client, then you could reference the class names from client code without having to modify GWT. It's been too long since I've touched

Re: [gwt-contrib] Re: Server-side Class object on client-side

2010-01-28 Thread Lex Spoon
On Wed, Jan 27, 2010 at 5:14 PM, Nathan Wells nwwe...@gmail.com wrote: interface RpcService { call(Class? procedureClassLiteral, AsyncCallback callback, Arguments args) } Makes sense. Have you considered, though, the security implications of client code sending an arbitrary class

Re: [gwt-contrib] Re: Server-side Class object on client-side

2010-01-28 Thread Nathan Wells
Thanks Ian! Nathan Wells On Thu, Jan 28, 2010 at 9:33 AM, Ian Petersen ispet...@gmail.com wrote: Nathan, You might want to have a look at super-source, if it's still called that. If you are willing to put empty definitions of your server-side classes on the client, then you could

[gwt-contrib] Re: Server-side Class object on client-side

2010-01-27 Thread Nathan Wells
Can someone point me to a place in the GWT code where I might be able to produce a patch or something? I realize it's probably not the GWTers highest priority, but I could use some guidance. Unless of course the silence is an indication that what I'm proposing is against the spirit of GWT. I

Re: [gwt-contrib] Re: Server-side Class object on client-side

2010-01-27 Thread John Tamplin
On Wed, Jan 27, 2010 at 3:57 PM, Nathan Wells nwwe...@gmail.com wrote: Can someone point me to a place in the GWT code where I might be able to produce a patch or something? I realize it's probably not the GWTers highest priority, but I could use some guidance. I don't know how you would do

[gwt-contrib] Re: Server-side Class object on client-side

2010-01-27 Thread Nathan Wells
Let me back up a little bit. There may be a way to do what I want without changing GWT's core. All I want is to be able to change the following interface: interface RpcService { call(String procedureClassName, AsyncCallback callback, Arguments args) } into something similar to the

[gwt-contrib] Re: Server-side Class object on client-side

2010-01-26 Thread Sony
Think about an Event based RPC mechanism as outlined in this Article.. http://sonymathew.blogspot.com/2010/01/gwt-jee-blueprint.html Essentially, RPC is then merely firing/listening to events. You merely extend RemtoteRequestEvent and RemtoteRequestEvent and make sure any member content you add

[gwt-contrib] Re: Server-side Class object on client-side

2010-01-26 Thread Nathan Wells
Sony, I disagree with taking an event-based approach to RPC, but this isn't really the forum for that discussion John, My problem is not Class serializability, but rather the fact that the GWT compiler rejects any code path that has SomeServerProcedure.class, since the compiler thinks it will