Thanks for the reply ...

Can you provide more information on the generator side and how can i
accomplish this ?

I would definitely look into the lovely json rpc code. Any directions
on this would be greatly appreciated.

Thank you !

Cheers!

On Dec 4, 9:43 pm, Jamie Gennis <jgen...@gmail.com> wrote:
> Annotations in client code can be used during GWT's rebind phase of the
> compilation, but they are not accessible at runtime on the client side.  GWT
> doesn't support much of Java's reflection functionality on the client side
> in order to keep the compiled Javascript code smaller.
>
> You can write a custom generator, which can be called to create
> implementation code for specific interfaces during the rebind phase, to
> generate your marshaling code at compile-time.  This is the approach taken
> by lovely-gwt-jsonrpc <http://code.google.com/p/lovely-gwt-jsonrpc/>, for
> example, and is how all of GWT's built-in RPC functionality works.  You may
> be able to leverage some or all of the work in that project to accomplish
> what you're trying to do.
>
> Jamie
>
>
>
> On Thu, Dec 3, 2009 at 7:21 PM, keyboard_samurai <yog...@gmail.com> wrote:
> > Hi,
>
> > I am a newbie to GWT. Need to know if GWT can support custom
> > annotations on client side ?. The reason for custom annotations is i
> > would be communicating with the backend service through json and not
> > gwt rpc and i wouldnt like each developer to write the same piece of
> > code. So i was planning to annotated my entity classes which can be
> > used for marshalling and unmarshalling json response.
>
> > Please do let me know if this can be done in GWT.
>
> > Thanks in advance
>
> > cheers!
>
> > --
>
> > 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<google-web-toolkit%2Bunsubs 
> > cr...@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.


Reply via email to