Re: Where to place new Widget class?

2010-05-28 Thread Pavel Byles
GWT is pure client side.

The server package only comes into use for example if u were using GWT +
GAE, then you would put your server-side classes in the server package.  The
server package has no relationship with GWT.

On Thu, May 27, 2010 at 12:25 PM, Magnus alpineblas...@googlemail.comwrote:

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-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.comgoogle-web-toolkit%2bunsubscr...@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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Where to place new Widget class?

2010-05-27 Thread Magnus
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Where to place new Widget class?

2010-05-27 Thread Pavel Byles
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.comwrote:

 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.comgoogle-web-toolkit%2bunsubscr...@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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Where to place new Widget class?

2010-05-27 Thread Magnus
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.comwrote:



  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.comgoogle-web-toolkit%2bunsubscr...@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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.