I am using gwt 2.3 with gwtp framework.In this application I wan to
maintain a session time of 5 mins.This means if current user is not
doing up to 5 min and he comes after five min then on his first event/
action on screen a he should be be logged out. In gwt there is class
named Timer which can be used in this issues.But I am not getting how
to recognize action of user on the screen.I did google on it, & found
the code for gwt-ext.Below is the code of gwt-ext

Ext.get(“pagePanel”).addListener(“click”, new EventCallback() {
@Override public void execute(EventObject e) {
 MessageBox.alert(“On Mouse Click”); }
 }
);

Ext.get(“pagePanel”).addListener(“keydown”, new EventCallback() {

@Override public void execute(EventObject e) {
MessageBox.alert(“On Key Press Click”); }
});

In above code tag in working properly so I am attaching link from
where I got this code.here

Same type of code I am looking in gwt.If there any other better way to
do this then please let me know.

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

Reply via email to