Gwt error

2010-10-12 Thread Yudji

I created the class :

public class Game{
public static  int quantidadeDeUsuario;

public void somarQuantidadeUsuario(){

quantidadeUsuario ++;
   System.out.println(quantidadeUsuario);


}

}

---

gwt but this method there will always print 1

public void onModuleLoad() {
CartasJogo cartasJogo = new CartasJogo();
cartasJogo.somarQuantidadeUsuario();
.
.
.

}

Why happen this?

-- 
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.



GWT Module Dependency

2010-10-05 Thread Yudji
I was read the article http://code.google.com/p/gwt-comet/wiki/GettingStarted


and where in the project I put inherits
name=net.zschech.gwt.comet.Comet / ?

and add-linker name=xs/ anywhere in the xml?



thanks

-- 
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.



Comet help about code

2010-10-05 Thread Yudji
I read the comet in
http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/chat/server/ChatServiceImpl.java?r=98

Can explain to me about the code, because i dont undestand:

 public void send(String message) throws ChatException {

  .
  .
  .

for (Map.EntryString, CometSession entry :
users.entrySet()) {
entry.getValue().enqueue(chatMessage);
}
}

 thaks

-- 
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.



Comet help about code

2010-10-05 Thread Yudji
I read the comet in
http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/chat/server/ChatServiceImpl.java?r=98

Can explain to me about the code, because i dont undestand:

 public void send(String message) throws ChatException {

  .
  .
  .

for (Map.EntryString, CometSession entry :
users.entrySet()) {
entry.getValue().enqueue(chatMessage);
}
}

 thaks

-- 
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.



GWT- chat

2010-10-04 Thread Yudji


I have created a simple client/server app
that does nothing but sends a string from client to server.

Now I would like to expand it so the server can send messages to all
clients. How can this be done?

-- 
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.



GWT- chat

2010-10-04 Thread Yudji


I have created a simple client/server app
that does nothing but sends a string from client to server.

Now I would like to expand it so the server can send messages to all
clients. How can this be done?

-- 
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.