How to generate a request in server side?

2009-09-14 Thread Tiago Mesquita
Hi, i got my request in client side normal when i call something like:

ServiceBOIF.Util.getInstance().getUserInSession(new AsyncCallbackUser(){
public void onSuccess(User user){
...
...
}
public void onFailure(Throwable caught) {
...
...
}
});

Ok, but supose that i'm in Server Side in a method inside a class called
Foo and this class wants to call this method getUserInSession from
ServiceBOIF... so, i want to know how to make it... i need some way to
access the session object inside GWT context.

tnx all!



-- 
Utilize o CCO na hora de encaminhar suas msgs,
isso impossibilita que programas espiões capturem os
e-mails de seus contatos e façam deles alvo de Spam.

Atenciosamente,
Tiago Mesquita A. C.
http://twitter.com/tiagomac

--~--~-~--~~~---~--~~
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-toolkit@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
-~--~~~~--~~--~--~---



How to get Session object?

2009-08-20 Thread Tiago Mesquita
Hi Everyone,
So, i'm with a problem that maybe you guys can help me...
i need to get the session object outside a class that extend
RemoteServiceServlet..

like, i'll write one example here:

public class Foo{
  public User getLoggedUser(){
  // How to get logged user here? if this class (Foo) don't extend
RemoteServiceServlet??
  }
}

Tnx All!!!

-- 
Utilize o CCO na hora de encaminhar suas msgs,
isso impossibilita que programas espiões capturem os
e-mails de seus contatos e façam deles alvo de Spam.

Atenciosamente,
Tiago Mesquita A. C.
http://twitter.com/tiagomac

--~--~-~--~~~---~--~~
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-toolkit@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
-~--~~~~--~~--~--~---