Hi, To use anything from GWT you must put it under client side packages.
So if your serverpanel contains anything that is using GWT components then it has to put under client. -- Aditya On Thu, May 27, 2010 at 10:55 PM, Magnus <alpineblas...@googlemail.com>wrote: > As I said, I am absolutely new to GWT. I don't know, which code to put > on the server and which on the client. Is there a basic rule, then > please let me know. > > In general, I would try to put as much as possible to the server, but > I cannot really judge, what fits where best... > > Thank you > Magnus > > On May 27, 7:10 pm, Pavel Byles <pavelby...@gmail.com> wrote: > > Could you say what the purpose of a ServerPanel is? > > Everything for GWT afaik should be placed in the client or shared > directory. > > I don't think there is much sense in using client-side ui objects on the > > server. > > > > On Thu, May 27, 2010 at 11:55 AM, Magnus <alpineblas...@googlemail.com > >wrote: > > > > > > > > > Hello, > > > > > I am absolutely new to GWT and I would like to start with a generic > > > panel as a container for my GUI. > > > > > So I created a new Panel derived from SimplePanel and added it to my > > > host page: > > > > > final MyPanel p = new MyPanel (); > > > RootPanel.get("TestContainer").add(p); > > > > > Within the panel constructor I create a text box, so that I can verify > > > that everything works. > > > > > However, I wonder where to place my panel class: I placed a class > > > "ClientPanel" in the client directory and a class "ServerPanel" in the > > > server directory within the eclipse project directory tree. > > > > > When I use the ClientPanel, it works. When I use the ServerPanel, I > > > get errors within eclipse, e. g. > > > "[ERROR] [firstwebapp] Unable to find type > > > 'fwa.Application.client.FirstWebApp'" > > > > > Any hints? > > > > > Thank you > > > Magnus > > > > > -- > > > 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%2bunsubscr...@googlegroups.com> > <google-web-toolkit%2bunsubscr...@googlegroups.com<google-web-toolkit%252bunsubscr...@googlegroups.com> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > -Pav > > -- > 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%2bunsubscr...@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.