On Mar 17, 1:59 pm, Jason Gillam <[email protected]> wrote:
> Even if it doesn't complain about the annotations... I don't think
> this really addresses the problem, does it? If your annotations are
> in your client-side code, they aren't going to be used, are they? It
> seems to me that putting them there just confuses matters. This goes
> back to what some of the first responses indicated... people don't
> read the FAQ nor understand how they are supposed to program in GWT.
:)
I think I have read the FAQ and programmed quite a lot in GWT lately.
The question was good because the whole point of annotations is to use
'in-code' extra mappings/information without having to write a lot,
BUT, if
you want to ignore those annotations, just do it. You don't need extra
interfaces/classes that
will eventually mess up or add complexity to the project.
Just simple and effective.
> The way I think about it is quite simple - you break down every GWT
> project into two main pieces... you have client-side code (GWT -->
> Javascript), and server-side code (Java, PHP, whatever you feel like
> doing). The client-side code has many constraints because it is what
> will be compiled into Javascript and sent to the browser. You
> obviously cannot access a Hibernate object directly from your browser,
Obviously. I never said or asked anything like that.
> so you have to come up with some way to do it indirectly (as Vitali
> suggested). And yes, I know... there's another piece which ties the
> two together ("Controller" code) - but that's a bit arbitrary. The
> fact is, GWT makes Javascript... therefore, if it can't be done in
> Javascript, it should not be in your client-side GWT code.
>
> On Mar 17, 6:13 am, Jason Morris <[email protected]> wrote:
> > As far as I know it won't complain (doesn't complain when I use annotations
> > from EoD SQL).
> > The best way to find out is write a test class with some annotations and
> > try compile it ;)
Thanks for that :) - will try
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---