Re: Session Listener

2013-06-21 Thread Magallo
Excuse me loladi, what do you exactly mean with "this works only in WEB 
Mode, in hosted mode the parameters -nohost or -noserver may eventually 
help"? What do we need to do exactly for this?

On Monday, June 2, 2008 11:32:38 AM UTC+2, loladi wrote:
>
> Sorry i forgot: 
> this works only in WEB Mode, in hosted mode the parameters -nohost or - 
> noserver 
> may eventually help. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Session Listener

2013-06-21 Thread Magallo
Hi Valavanur, I know your question is a little outdated, but I have the 
same necessity and I don't knbow how to do. I mean, I tried in my GWT 
Explise project, to add a Session Listener as explained by loladi but it 
seems it doesn't work. Obviously I alse added the  section in my 
web.xml file, but it seems my listener is just ignored and does not execute 
the code. I tried adding some brerakpoints in the sessionCreated and 
sessionDestroyed methods, but simply the execution never stops at these 
points. What am I missing?

Thanks.

On Monday, June 2, 2008 1:16:11 AM UTC+2, Valavanur Man wrote:
>
> I would like to implement Session Listener to log the logins and 
> logouts. Would like to do some housekeeping upon logout. 
>
> How do I register the class implementing SessionListener in GWT. How 
> do I modify the WEB.xml so that it works both in Hosted mode and as 
> well as when I deploy the war file. 
>
> Can you provide some instructions/help. 
>
> Thanks, 
> GWT Fan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: HttpSessionListener methods not called

2013-06-21 Thread Magallo
Hi CodeSurfer, I know your question is a little ages, anyway I'm facing 
exactly the same problem. Were you able to solve it? How?

Thanks.


On Friday, June 22, 2007 7:49:29 PM UTC+2, CodeSurfer wrote:
>
> Hi mP,
>
> I disagree with your statement that I am doing too much for the
> embedded Tomcat. My server code is very simple: all I am having
> problems with is instantiating the database object at the right point
> in time. What is so difficult about that? Since I am - in my opinion -
> not doing too much, the simple question remains why the
> HttpSessionListener methods are never called. If this is a result of
> hosted mode than I am forced to use an external server but maybe it is
> a bug in which case it would be nice it it is solved so I can continue
> to debug both client and server mode (for me as a GWT beginner that
> would be a great boon). If it is something I am doing wrong, it would
> be nice to know how to correct it, for the same reasons.
>
> Hennie.
>
> On Jun 19, 11:15 pm, mP  wrote:
> > Just a quick comment. I think your trying to do too much using the
> > hosted mode tomcat. I personally would just create a Servlet that does
> > the bare minimum and returns dummy data without external dependencies
> > like databases etc. The best thing to do is probably to run your
> > hosted mode session without the embedded tomcat (-noserver option) and
> > connect to a real web server.
> >
> > On Jun 19, 4:54 am, CodeSurfer  wrote:
> >
> >
> >
> > > Hi All,
> >
> > > My application defines a class implementing ServletContextListener and
> > > a class implementingHttpSessionListener. I am using hosted mode (i.e.
> > > the embedded Tomcat). I have defined the listeners in the web.xml of
> > > the embedded Tomcat. The methods of the class implementing
> > > ServlectContextListener are called but not the methods in the class
> > > implementingHttpSessionListener.
> >
> > > I think Tomcat is really reading both classes: FileMonitor by
> > > SysInternals shows both classes being loaded by Tomcat and when I
> > > introduce a typo in either class name in the  tag,Tomcat
> > > complains that the application can not be loaded.
> >
> > > So apparently something else is causing myHttpSessionListenermethods
> > > not to be called. Maybe the embedded Tomcat works differently than a
> > > stand-alone Tomcat with regard to the HttpSessionListenere interface?
> >
> > > Thanks for any ideas or suggestions you can give me.
> > > Hennie.
> >
> > > Here is the relevant excerpt from the web.xml:
> >
> > > 
> > >Http session listener that opens a Db4o database > > description>
> > > > > class>nl.wincornixdorf.faces.server.FacesHttpSessionListener > > class>
> > > 
> > > 
> > >Servlet context listener that starts a Db4o server
> > > (embedded)
> > > > > class>nl.wincornixdorf.faces.server.FacesServletContextListener > > listener-class>
> > > 
> >
> > > Here is the class implementing theHttpSessionListener:
> >
> > > package nl.wincornixdorf.faces.server;
> >
> > > import javax.servlet.ServletContext;
> > > import javax.servlet.http.HttpSession;
> > > import javax.servlet.http.HttpSessionEvent;
> > > import javax.servlet.http.HttpSessionListener;
> >
> > > import com.db4o.ObjectContainer;
> > > import com.db4o.servlet.Db4oServlet;
> >
> > > public class FacesHttpSessionListener implementsHttpSessionListener
> > > {
> > >private final String FACESDATABASEFILE = "c:\\EclipseWorkspace\
> > > \WNNL-Faces\\faces.yap";
> >
> > >public void sessionCreated(HttpSessionEvent event)
> > >{
> > >   HttpSession session = event.getSession();
> > >   ServletContext context = session.getServletContext();
> >
> > >   ObjectContainer db = Db4oServlet.sessionTransaction(context,
> > > session,
> > > FACESDATABASEFILE);
> > >}
> >
> > >public void sessionDestroyed(HttpSessionEvent event)
> > >{
> > >}
> >
> > > }- Hide quoted text -
> >
> > - Show quoted text -
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Anchor does not work in IE - very strange problem!

2013-06-21 Thread Magnus
Hello,

I have a very strange problem with some anchors, which occurrs only in IE 
and only in certain combinations of version and browser/document modes.
The problem is, that *some* anchors will not work, allthough *all* anchors 
are built by the same method!

There is a list of chess games and at the end of each row there are some 
actions, like "Open" or "Analyze". The actions are realized as anchors. All 
the anchors for a row/game are put into a single panel, which is inserted 
into the list.

When the problem occurrs, the first anchor "Open" will not work (meaning 
that nothing happens), while the second anchor "Analyze" works just fine.

I believe that there must be a side effect somewhere, but I could not find 
it. Perhaps there is a problem with 
"OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml". I cannot remember why 
I decided to use it...

Any ideas how to find the bug or how to do it in another way?

Thanks
Magnus

-

 private Panel getActions (Game game)
 {
  HorizontalPanel p = new HorizontalPanel ();
  
  addAction (p,CMD_OPEN,game.idx,"Open");
  addAction (p,CMD_ANALYZE,game.idx,"Analyze");
}

 protected void addAction (Panel pnl,int cmd,int idx,String lbl)
 {
  Anchor a = createAnchor (cmd,idx,lbl,this);

  if (hasWidgets (pnl))
   pnl.add(new HTML (" "));

  pnl.add(a);
 }

 private Anchor createAnchor (int cmd,int idx,String lbl,ClickHandler hdl)
 {
  SafeHtml h = new OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(lbl);
  Anchor a = new Anchor (h);
  
  a.addClickHandler(hdl);
  Element e = a.getElement();
  
  e.setAttribute("cmd",Integer.toString(cmd));
  e.setAttribute("idx",Integer.toString(idx));
  
  return (a);
 }

 public void onClick(ClickEvent evt)
 {
  Object o = evt.getSource();
  
  if (o == null)
   return;
  
  if (!(o instanceof Anchor))
   return;

  Anchor a = (Anchor) o;
  String t;
  
  t = a.getElement().getAttribute("cmd");
  int cmd = Integer.parseInt(t);
  t = a.getElement().getAttribute("idx");
  int idx = Integer.parseInt(t);

  onCommand (cmd,idx);
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Gwt + CellTable.Style.DEFAULT_CSS

2013-06-21 Thread gjknjjntw
Using gwt 2.5.1 

GWT project has main CSS file (proj.css), specified in the project html 
(proj.html).



   1. 
   2. 
   3. ...
   4. 
   5. ...

Another CSS file (Table.css) compiled with styles for the class CellTable. 
I took google`s basic style and changed it for myself.

New resource code:


   1. ...
   2. import com.google.gwt.user.cellview.client.CellTable;
   3.  
   4. public interface TableRes extends CellTable.Resources {
   5. interface TableStyle extends CellTable.Style {
   6. }
   7.  
   8. @Override
   9. @Source({ CellTable.Style.DEFAULT_CSS,  "path/table.css" })
   10. TableStyle cellTableStyle();
   11. }


Linking new resource code:

final CellTable table = new CellTable(20, 
(CellTable.Resources) GWT.create(TableRes.class));

Result: 

Style did not apply.

Note:
If i make a mistake in TableRes css path, host mode does not work. So path 
to table.css is ok. 

What is wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-06-21 Thread Magallo
Hi, were you able in the end to solve the problem? How did you do? I have 
the same problem and I don't know what to do?

Please help.

Thanks.

On Thursday, May 23, 2013 6:00:33 AM UTC+2, Jeff Smith wrote:
>
> I ran into the same problem and could not figure out which configuration 
> setting got hosed. Fortunately for me, I had a backup on another computer 
> and just reverted back to that project and GWT 2.5.
>
> That is one of the drawbacks of GWT--there is too much magic going on 
> behind the scenes spread out in many directories and files. I will never 
> try upgrading to a new version of GWT without backing up everything first.
>
> Sorry this probably won't help you--I feel your pain.
>
> Best,
> Jeff
> On May 22, 2013 7:20 PM, "Jack Gage" > 
> wrote:
>
>> Has anyone pinpointed the cause of this?
>>
>> I have tried to fix this with fresh installations of Eclipse Juno and 
>> Indigo with the GWT SDK and Designer plugins, have deleted the gwt-cache 
>> dirs, am using jre6, and yet the problem persists, very weird.  What else 
>> bothers me about this is that I can't figure out what I did that made this 
>> start happening; from my perspective this functionality was working just 
>> fine and then started failing one day when I did not make any substantial 
>> (from my perspective) changes to my environment.
>>
>> Maybe next I should try to print out all my code on paper, buy a new 
>> computer, install and setup everything, and type in the code again.
>>
>> Thanks!
>>
>>
>> On Monday, March 18, 2013 4:38:02 PM UTC-4, JoyaleXandre wrote:
>>>
>>> Hi everybody,
>>>
>>> Since friday I can't deploy my project anymore. 
>>>
>>> Went I start the war generation with the deploy button I instantly get 
>>> an error *message saying*:
>>> "Designer error occured.
>>> Select Details >> for more information.
>>> See the Error Log for more information.
>>>
>>> Reason:
>>> Parse error or internal Designer error,"
>>>
>>> *The stack trace is this: *
>>> "Plug-in Provider: Google
>>> Plug-in Name: 
>>> Plug-in ID: org.eclipse
>>>
>>> java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>>> IJavaLaunchConfigurationConsta**nts
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction.**getGWTProjectClasspath(**
>>> DeployModuleAction.java:364)
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>>> at org.eclipse.jface.operation.**ModalContext$**
>>> ModalContextThread.run(**ModalContext.java:121)
>>>
>>> Full stack trace (to see full context):
>>> java.lang.reflect.**InvocationTargetException
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction$1.run(**DeployModuleAction.java:114)
>>> at org.eclipse.jface.operation.**ModalContext$**
>>> ModalContextThread.run(**ModalContext.java:121)
>>> Caused by: java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/*
>>> *IJavaLaunchConfigurationConsta**nts
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction.**getGWTProjectClasspath(**
>>> DeployModuleAction.java:364)
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>>> ... 1 more
>>> "
>>>
>>> I completely uninstalled the Google Plugin and reinstalled it. I still 
>>> get this error.
>>>
>>> My last chance is probably to reinstall Eclipse from scratch, but I 
>>> would like to avoid reinstalling and configuring all my dev envirronnement.
>>>
>>> Can somebody help me please. Am I the only one who got this problem 
>>> since I tried to update the Google Plugin?
>>>
>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/e3DoVrI6V70/unsubscribe?hl=en
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from

Re: The filename or extension is too long

2013-06-21 Thread Thomas Broyer


On Friday, June 21, 2013 3:21:16 AM UTC+2, Lexis Nexis wrote:
>
> I used the built-in GWT compiler (2.5.0) in Eclipse 4.2.1. After a few 
> hours compilation, I finally got the following error. Any suggestion will 
> be greatly appreciated.
>
>   Compiling 2 permutations
>   [ERROR] Unable to start external process
> java.io.IOException: Cannot run program "C:\Program 
> Files\Java\jdk1.6.0_38\jre\bin\java": CreateProcess error=206, The filename 
> or extension is too long
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
> at 
> com.google.gwt.dev.ExternalPermutationWorkerFactory.launchExternalWorker(ExternalPermutationWorkerFactory.java:278)
> at 
> com.google.gwt.dev.ExternalPermutationWorkerFactory.getWorkers(ExternalPermutationWorkerFactory.java:366)
> at 
> com.google.gwt.dev.PermutationWorkerFactory.createWorkers(PermutationWorkerFactory.java:366)
> at 
> com.google.gwt.dev.PermutationWorkerFactory.compilePermutations(PermutationWorkerFactory.java:267)
> at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:207)
> at com.google.gwt.dev.Compiler.run(Compiler.java:242)
> at com.google.gwt.dev.Compiler.run(Compiler.java:198)
> at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
> at 
> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
> at 
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
> at com.google.gwt.dev.Compiler.main(Compiler.java:177)
>

As a workaround, you can disable external workers and use only threads: 
launch your GWT Compiler process with 
-Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory.
 
It'll use a single thread by default, so you'll probably want to also use 
-Dgwt.jjs.maxThreads=4 (4 being picked relative to the number of cores on 
the machine)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-06-21 Thread Magallo
Have you solved the problem? How? 

On Monday, March 18, 2013 9:38:02 PM UTC+1, JoyaleXandre wrote:
>
> Hi everybody,
>
> Since friday I can't deploy my project anymore. 
>
> Went I start the war generation with the deploy button I instantly get an 
> error *message saying*:
> "Designer error occured.
> Select Details >> for more information.
> See the Error Log for more information.
>
> Reason:
> Parse error or internal Designer error,"
>
> *The stack trace is this: *
> "Plug-in Provider: Google
> Plug-in Name: 
> Plug-in ID: org.eclipse
>
> java.lang.NoClassDefFoundError: 
> org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
> at 
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> Full stack trace (to see full context):
> java.lang.reflect.InvocationTargetException
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:114)
> at 
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Caused by: java.lang.NoClassDefFoundError: 
> org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
> ... 1 more
> "
>
> I completely uninstalled the Google Plugin and reinstalled it. I still get 
> this error.
>
> My last chance is probably to reinstall Eclipse from scratch, but I would 
> like to avoid reinstalling and configuring all my dev envirronnement.
>
> Can somebody help me please. Am I the only one who got this problem since 
> I tried to update the Google Plugin?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread GWTter
Hi Magnus,

Just for the sake of thoroughness, are you sure that onCommand is even 
being called? Or is it that the click event is not being registered at all?

On Friday, June 21, 2013 11:33:47 AM UTC+2, Magnus wrote:
>
> Hello,
>
> I have a very strange problem with some anchors, which occurrs only in IE 
> and only in certain combinations of version and browser/document modes.
> The problem is, that *some* anchors will not work, allthough *all* anchors 
> are built by the same method!
>
> There is a list of chess games and at the end of each row there are some 
> actions, like "Open" or "Analyze". The actions are realized as anchors. All 
> the anchors for a row/game are put into a single panel, which is inserted 
> into the list.
>
> When the problem occurrs, the first anchor "Open" will not work (meaning 
> that nothing happens), while the second anchor "Analyze" works just fine.
>
> I believe that there must be a side effect somewhere, but I could not find 
> it. Perhaps there is a problem with 
> "OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml". I cannot remember why 
> I decided to use it...
>
> Any ideas how to find the bug or how to do it in another way?
>
> Thanks
> Magnus
>
> -
>
>  private Panel getActions (Game game)
>  {
>   HorizontalPanel p = new HorizontalPanel ();
>   
>   addAction (p,CMD_OPEN,game.idx,"Open");
>   addAction (p,CMD_ANALYZE,game.idx,"Analyze");
> }
>
>  protected void addAction (Panel pnl,int cmd,int idx,String lbl)
>  {
>   Anchor a = createAnchor (cmd,idx,lbl,this);
>
>   if (hasWidgets (pnl))
>pnl.add(new HTML (" "));
>
>   pnl.add(a);
>  }
>
>  private Anchor createAnchor (int cmd,int idx,String lbl,ClickHandler hdl)
>  {
>   SafeHtml h = new OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(lbl);
>   Anchor a = new Anchor (h);
>   
>   a.addClickHandler(hdl);
>   Element e = a.getElement();
>   
>   e.setAttribute("cmd",Integer.toString(cmd));
>   e.setAttribute("idx",Integer.toString(idx));
>   
>   return (a);
>  }
>
>  public void onClick(ClickEvent evt)
>  {
>   Object o = evt.getSource();
>   
>   if (o == null)
>return;
>   
>   if (!(o instanceof Anchor))
>return;
>
>   Anchor a = (Anchor) o;
>   String t;
>   
>   t = a.getElement().getAttribute("cmd");
>   int cmd = Integer.parseInt(t);
>   t = a.getElement().getAttribute("idx");
>   int idx = Integer.parseInt(t);
>
>   onCommand (cmd,idx);
>  }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread Magnus


Am Freitag, 21. Juni 2013 12:48:51 UTC+2 schrieb GWTter:
>
> Just for the sake of thoroughness, are you sure that onCommand is even 
> being called? Or is it that the click event is not being registered at all?
>
>
Yes! Because it works with other browsers.
In addition, the second link ("Analyze") also works, when the first one 
doesn't.

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




client side logging for tomcat production environment

2013-06-21 Thread Leung
Hi,

I need to have some print out for the client side code in production 
environment. I use tomcat as the web server.
Is it possible? and how?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: client side logging for tomcat production environment

2013-06-21 Thread Jens
Take a look 
at 
https://developers.google.com/web-toolkit/doc/latest/DevGuideLogging?#Remote_Logging

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread Magnus
Hi,

my problem is that I cannot analyze what happens.

In chrome (where it works), I can examine the code and it looks like the 
code below. The two links are exactly the same, with a space between them 
realized as " ".
But maybe in IE the code looks different. The same for the JS code. IE 
always shows the code from the host page, so I cannot examine anything.

I would be happy If I at least were able to see what is going on.

Magnus

-


 
  
   
 Öffnen
   

  


 Analyse

   
  
 


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread GWTter
IE has had developer tools built in as far back as version 8, just press 
F12. If you're working with <=IE7 then: IE dev 
tools. 
Although it may work in other browsers or on the other anchor you want to 
see exactly what is or isn't occurring so you can narrow the scope of the 
issue, else it's a blind guessing game. I would put an alert or println in 
the onClick method to see first if the click is even registering for the 
first button, this will aid you in your analysis and you can then proceed 
from there. You haven't posted the onCommand method so we have no idea if 
the click is even registering in the first button case.

On Friday, June 21, 2013 2:14:26 PM UTC+2, Magnus wrote:
>
> Hi,
>
> my problem is that I cannot analyze what happens.
>
> In chrome (where it works), I can examine the code and it looks like the 
> code below. The two links are exactly the same, with a space between them 
> realized as " ".
> But maybe in IE the code looks different. The same for the JS code. IE 
> always shows the code from the host page, so I cannot examine anything.
>
> I would be happy If I at least were able to see what is going on.
>
> Magnus
>
> -
>
> 
>  
>   
>
>   idx="1481">Öffnen
>
> 
>   
> 
> 
>   idx="1481">Analyse
> 
>
>   
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: adding basic auth to GWTTestCase?

2013-06-21 Thread Steve Baber
To answer my own question and for posterity.
In order to provide a username/password to the GWTTestCase, I created my 
own run style
that extended the RunStyleHtmlUnit class and then added the -runStyle Samp 
to the gwt.args.


package com.google.gwt.junit;

import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.DefaultCredentialsProvider;
import com.gargoylesoftware.htmlunit.WebClient;
import com.google.gwt.core.ext.TreeLogger;

/**
 * Launches a web-mode test via HTMLUnit.
 */
public class RunStyleSamp extends RunStyleHtmlUnit
{
/**
 * Runs HTMLUnit in a separate thread.
 */
protected static class SampHtmlUnitThread extends HtmlUnitThread
{

public SampHtmlUnitThread(
final BrowserVersion browser,
final String url,
final TreeLogger treeLogger,
final boolean developmentMode)
{
super(browser, url, treeLogger, developmentMode);
}

@Override
protected void setupWebClient(final WebClient webClient)
{
super.setupWebClient(webClient);

// add authentication here
final DefaultCredentialsProvider credentialsProvider = new 
DefaultCredentialsProvider();
credentialsProvider.addCredentials(username, password);
webClient.setCredentialsProvider(credentialsProvider);
}
}

private static String username = "planner1";

private static String password = "Test777Test";

private boolean devMode;

/**
 * Create a RunStyle instance with the passed-in browser targets.
 */
public RunStyleSamp(final JUnitShell shell)
{
super(shell);
}

@Override
protected HtmlUnitThread createHtmlUnitThread(final BrowserVersion 
browser, final String url)
{
return new SampHtmlUnitThread(browser, url, 
shell.getTopLogger().branch(
TreeLogger.SPAM,
"logging for HtmlUnit thread"), devMode);
}

@Override
public boolean setupMode(final TreeLogger logger, final boolean 
developmentMode)
{
this.devMode = developmentMode;
return super.setupMode(logger, developmentMode);
}
}



I suppose I could get fancy and define the username/password as -D 
properties
or arguments to the runStyle maybe, but this is as far as I'm going.  

It really seems like this should be a standard feature, IMHO.




>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




DockLayoutPanel, fixed pixel size header, percent for rest

2013-06-21 Thread Budric
Hi, 

I wanted achieve simple layout where the top portion consisting of a banner 
and menus is always fixed pixel size.  The rest expands to 100%.  I want to 
work in standard mode (vs quirks).  So I thought DockLayoutPanel would do 
the job.  However it seems I have to specify units and those are applied to 
all elements.  So if I specify percent, everything resizes and if I specify 
pixels, everything is static. 

Any suggestions on how to solve this problem?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-06-21 Thread Alexandre Joyal
I've made my own build.xml file to build my project. I don't understand
that not a lot of person complain about that. It seems to be a major issue.
I wonder if anybody that it's still working uses Eclipse Juno and GWT 2.5.1.


On Fri, Jun 21, 2013 at 6:39 AM, Magallo  wrote:

> Have you solved the problem? How?
>
> On Monday, March 18, 2013 9:38:02 PM UTC+1, JoyaleXandre wrote:
>>
>> Hi everybody,
>>
>> Since friday I can't deploy my project anymore.
>>
>> Went I start the war generation with the deploy button I instantly get an
>> error *message saying*:
>> "Designer error occured.
>> Select Details >> for more information.
>> See the Error Log for more information.
>>
>> Reason:
>> Parse error or internal Designer error,"
>>
>> *The stack trace is this: *
>> "Plug-in Provider: Google
>> Plug-in Name:
>> Plug-in ID: org.eclipse
>>
>> java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>> IJavaLaunchConfigurationConsta**nts
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**getGWTProjectClasspath(**
>> DeployModuleAction.java:364)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>> at org.eclipse.jface.operation.**ModalContext$**
>> ModalContextThread.run(**ModalContext.java:121)
>>
>> Full stack trace (to see full context):
>> java.lang.reflect.**InvocationTargetException
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:114)
>> at org.eclipse.jface.operation.**ModalContext$**
>> ModalContextThread.run(**ModalContext.java:121)
>> Caused by: java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>> IJavaLaunchConfigurationConsta**nts
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**getGWTProjectClasspath(**
>> DeployModuleAction.java:364)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>> ... 1 more
>> "
>>
>> I completely uninstalled the Google Plugin and reinstalled it. I still
>> get this error.
>>
>> My last chance is probably to reinstall Eclipse from scratch, but I would
>> like to avoid reinstalling and configuring all my dev envirronnement.
>>
>> Can somebody help me please. Am I the only one who got this problem since
>> I tried to update the Google Plugin?
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/e3DoVrI6V70/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-06-21 Thread Jeff Smith
I did not figure out a solution (I reverted back to an older version of my
project with get 2.5).

Perhaps you should create a brand new get 2.51 project and then just
copy/paste your java source code files into this new project. Good luck.

Jeff
On Jun 21, 2013 4:40 AM, "Magallo"  wrote:

> Have you solved the problem? How?
>
> On Monday, March 18, 2013 9:38:02 PM UTC+1, JoyaleXandre wrote:
>>
>> Hi everybody,
>>
>> Since friday I can't deploy my project anymore.
>>
>> Went I start the war generation with the deploy button I instantly get an
>> error *message saying*:
>> "Designer error occured.
>> Select Details >> for more information.
>> See the Error Log for more information.
>>
>> Reason:
>> Parse error or internal Designer error,"
>>
>> *The stack trace is this: *
>> "Plug-in Provider: Google
>> Plug-in Name:
>> Plug-in ID: org.eclipse
>>
>> java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>> IJavaLaunchConfigurationConsta**nts
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**getGWTProjectClasspath(**
>> DeployModuleAction.java:364)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>> at org.eclipse.jface.operation.**ModalContext$**
>> ModalContextThread.run(**ModalContext.java:121)
>>
>> Full stack trace (to see full context):
>> java.lang.reflect.**InvocationTargetException
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:114)
>> at org.eclipse.jface.operation.**ModalContext$**
>> ModalContextThread.run(**ModalContext.java:121)
>> Caused by: java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>> IJavaLaunchConfigurationConsta**nts
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**getGWTProjectClasspath(**
>> DeployModuleAction.java:364)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>> ... 1 more
>> "
>>
>> I completely uninstalled the Google Plugin and reinstalled it. I still
>> get this error.
>>
>> My last chance is probably to reinstall Eclipse from scratch, but I would
>> like to avoid reinstalling and configuring all my dev envirronnement.
>>
>> Can somebody help me please. Am I the only one who got this problem since
>> I tried to update the Google Plugin?
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/e3DoVrI6V70/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread Steve C
I've found that with the IE developer tools, you need to refresh the DOM 
view within the tools (there's a refresh icon in the HTML view section). 
The view doesn't seem to take the JS changes to the page into account 
initially.  (And sometimes you never see CSS that GWT injects, but that's 
off-topic.)

BTW, I ran your code and it worked fine in IE-7-10 as provided by the dev 
tools in IE10 (I just had onCommand do an alert with the two values), so 
maybe the issue is further down the line. 


On Friday, June 21, 2013 8:40:12 AM UTC-4, GWTter wrote:
>
> IE has had developer tools built in as far back as version 8, just press 
> F12. If you're working with <=IE7 then: IE dev 
> tools. 
> Although it may work in other browsers or on the other anchor you want to 
> see exactly what is or isn't occurring so you can narrow the scope of the 
> issue, else it's a blind guessing game. I would put an alert or println in 
> the onClick method to see first if the click is even registering for the 
> first button, this will aid you in your analysis and you can then proceed 
> from there. You haven't posted the onCommand method so we have no idea if 
> the click is even registering in the first button case.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DateBox getDatePicker() and setCurrentMonth()

2013-06-21 Thread Lukasz Plotnicki
Hi Jens,

this is a really good idea. Thank you for this!

Am Donnerstag, 20. Juni 2013 19:33:34 UTC+2 schrieb Jens:
>
> When you focus a DateBox then the method DateBox.showDatePicker() is 
> called. This method calls datePicker.setCurrentMonth() with the date parsed 
> from the TextBox text or the current date if parsing has failed (e.g. 
> because the TextBox is empty). 
>
> So you either have to call DateBox.setValue() with your month date or you 
> have to extend DateBox and override showDatePicker(), e.g.
>
> public void setMonthSuggestion(Date suggestion) {
>   this.currentMonthSuggestion = suggestion;
> }
>
> @Override
> public void showDatePicker() {
> Date current = parseDate(false);
> if (current == null) {
>   current = currentMonthSuggestion; //instead of new Date()
> }
> picker.setCurrentMonth(current);
> popup.showRelativeTo(this);
> }
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread Magnus
Hello,

I found another hint, that may be useful: Within the same application I do 
the same thin in a toally other way: This time, the list is a CellTable and 
the commands are rendered as a custom cell (see below). The anchors are 
created in a totally different way. But the same problem exists here, too! 
Isn't that strange?

I hope that these observations brings us closer to the solution.

(BTW: I wanted to try the HyperLink class, but when rendering into a cell 
one has put everything into a SafeHtmlBuilder. Can I use a HyperLink widget 
here?)

Magnus

public class ListCommandCell extends AbstractCell
{
 public ListCommandCell ()
 {
  super ("click");
 }

 @Override
 public void render (Context context,ListCommandContext 
value,SafeHtmlBuilder sb)
 {
  boolean first = true;
  
  for (ListCommand c : value.cmd)
  {
   if (first)
first = false;
   else
sb.appendHtmlConstant(" ");

   
   String e = ListCommand.enc(c);
   String l = c.getLbl();
   String t = renderCommand (e,l);
   
   sb.appendHtmlConstant(t);
  }
 }
 
 public String renderCommand (String cmd,String lbl)
 {
  String t = "" + lbl + "";
  
  return (t);
 }

 @Override
 public void onBrowserEvent (Context context, Element parent,/*Game*/ 
ListCommandContext value,NativeEvent event, 
ValueUpdater valueUpdater)
 {
  super.onBrowserEvent(context, parent, value, event, valueUpdater);
  
  EventTarget tgt = event.getEventTarget();
  Element e = Element.as(tgt);
  
  String a = e.getAttribute("cmd");
  
  ListCommand c = ListCommand.dec(a);
  
  value.prc.onListCommand(c,value.idx);
 }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Anchor does not work in IE - very strange problem!

2013-06-21 Thread Jens
General advice:
1.) use SafeHtmlUtils instead 
of OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml. 
2.) always use  in your host html page so that IE is in 
standards mode to avoid head aches :) Also, if possible in your setup, let 
the webserver/appserver detect if IE is running in compatibility mode. If 
it is in compatibility mode, serve a nice help site that describes how 
compatibility mode can be turned off (= clicking this small broken paper 
icon in the address bar).


Regarding your problem:

The links that do not work, are these always the same links or is it 
totally random? Does it only happen in production mode or also in DevMode? 
If it only happens in production mode then my guess is that a native 
JavaScriptException is thrown in IE (e.g a null access) for any reason. 
Make sure you have activated IE's status bar and check if there is a JS 
warning/error icon and make sure you have GWT.setUncaughtExceptionHandler() 
set at your app startup.

If there are no exceptions then maybe there is a hidden div above your link 
in certain situations, so that the click event can never reach the link. 
But in this case I would assume that you would have the problem in all 
browsers, not just IE.

Maybe you should add some logging to your onBrowserEvent() methods so you 
can see whats going on in IE in production 
mode: https://developers.google.com/web-toolkit/doc/latest/DevGuideLogging

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DockLayoutPanel, fixed pixel size header, percent for rest

2013-06-21 Thread David Levesque
The widget you add in the center position of DockLayoutPanel (using the 
add() method) will take up the remaining space by default.


On Friday, June 21, 2013 9:55:09 AM UTC-4, Budric wrote:
>
> Hi, 
>
> I wanted achieve simple layout where the top portion consisting of a 
> banner and menus is always fixed pixel size.  The rest expands to 100%.  I 
> want to work in standard mode (vs quirks).  So I thought DockLayoutPanel 
> would do the job.  However it seems I have to specify units and those are 
> applied to all elements.  So if I specify percent, everything resizes and 
> if I specify pixels, everything is static. 
>
> Any suggestions on how to solve this problem?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Session Listener

2013-06-21 Thread Valavanur Man
We resolved the issue by added session listener to web.xml under Web-inf, 
as described above. We created the build.xml from GWT and referred to the 
web.xml.


   
   





We use ant to build the war file outside eclipse to build the project.

Hope this helps.

Thanks,
GWTFan

On Friday, June 21, 2013 12:40:21 AM UTC-7, Magallo wrote:
>
> Hi Valavanur, I know your question is a little outdated, but I have the 
> same necessity and I don't knbow how to do. I mean, I tried in my GWT 
> Explise project, to add a Session Listener as explained by loladi but it 
> seems it doesn't work. Obviously I alse added the  section in my 
> web.xml file, but it seems my listener is just ignored and does not execute 
> the code. I tried adding some brerakpoints in the sessionCreated and 
> sessionDestroyed methods, but simply the execution never stops at these 
> points. What am I missing?
>
> Thanks.
>
> On Monday, June 2, 2008 1:16:11 AM UTC+2, Valavanur Man wrote:
>>
>> I would like to implement Session Listener to log the logins and 
>> logouts. Would like to do some housekeeping upon logout. 
>>
>> How do I register the class implementing SessionListener in GWT. How 
>> do I modify the WEB.xml so that it works both in Hosted mode and as 
>> well as when I deploy the war file. 
>>
>> Can you provide some instructions/help. 
>>
>> Thanks, 
>> GWT Fan
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Introducing GWT-Tour 0.1

2013-06-21 Thread Alain
GWT-Tour is a small GWT library that can help you implement a nice tour of 
your GWT/Web app.
So if you ever wanted to show your users how to use your application in an 
interactive way this can be usefull.
GWT-Tour works with regular web app as well as with GWT Widgets.

A demo can be seen here : http://eemi2010.github.io/gwt-tour/

Enjoy :)

Alain 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Introducing GWT-Tour 0.1

2013-06-21 Thread Prakash M
Really cool.. Thanks for sharing..


Regards,
Prakash M


2013/6/21 Alain 

> GWT-Tour is a small GWT library that can help you implement a nice tour of
> your GWT/Web app.
> So if you ever wanted to show your users how to use your application in an
> interactive way this can be usefull.
> GWT-Tour works with regular web app as well as with GWT Widgets.
>
> A demo can be seen here : http://eemi2010.github.io/gwt-tour/
>
> Enjoy :)
>
> Alain
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Introducing GWT-Tour 0.1

2013-06-21 Thread Juan Pablo Gardella
Excelent work Alain!!


2013/6/21 Alain 

> GWT-Tour is a small GWT library that can help you implement a nice tour of
> your GWT/Web app.
> So if you ever wanted to show your users how to use your application in an
> interactive way this can be usefull.
> GWT-Tour works with regular web app as well as with GWT Widgets.
>
> A demo can be seen here : http://eemi2010.github.io/gwt-tour/
>
> Enjoy :)
>
> Alain
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




HandlerRegistration.removeHandler() does not work?

2013-06-21 Thread Sang Hero
Hi everyone,

I have had a problem with *HandlerRegistration* returned by method *
SimpleEventBus.addHandler *
*
*
When I call:

*HandlerRegistration hr = eventBus.addHandler(LoginSuccessEvent.TYPE, new
LoginSuccessEventHandler() {*
* *
* @Override*
* public void onSuccess(LoginSuccessEvent event) {*
* view.getName().setText(event.getName());*
* System.out.println("Fire");*
* }*
* });*
*
*
Then I call:

*hr.removeHandler();*
*
*
The handler still does not be removed. I see on console multiple "Fire"
each event firing.

This is my complete code:
http://pastebin.com/3ZBXnXF8

On each event firing, I see "Back" one time but multiple time with "Fire"

Can you help me solve this problem?

(Sorry about my English, I'm Vietnamese)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.