GWT compiler hangs when "Compiling permutation 0"

2011-12-09 Thread tunichtviel
Compiling my application hangs GWT when it does compile "Permutation
0". The GWT compiler then uses 100% CPU but never finishes compiling.

I spent quite some time tyring to narrow down the problem. Not
successful yet. I am really stuck with that problem.

Here is the situation:
1. I use the GWT compiler via ant. No Eclipse.
2. When I put comments before some lines of code, then the application
will compile (but not work of course, because of the missing code).
But this cannot be narrowed down to certain lines of code. Seems more
that just several lines of code need to be put in comments in order to
avoid the compiler hang.
For example:
- putting comments before line A and B will compile
- putting comments before line C and D will compile
Confusing for me, I did not yet understand what is going on there.
3. My application did compile fine some time before, in an older
version. But I have not been able to reconstruct a working version by
now.
4. The hang occurs with GWT version 2.3.0 and 2.4.0
5. The hang also occurs with a second environment which I did set up
from scratch
6. Of course I tried to increase the memory size for the Java VM
7. Additional logging in GWT produces tons of output; but it ends with
the message "Compiling permutation 0...". So the additional logging
did not help me.


Do you have an idea what I could do to narrow down the problem ?

Or if a GWT developer could look at the problem ?
Here is the source: 
http://www.kugihan.de/dict/download/development/GWT/Java_for_GWT.zip
And here is the GWT output from "-logLevel ALL":
http://www.kugihan.de/dict/download/development/GWT/GWT_output.txt


Thanks a lot for your help !

Regards,
Gert

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



Re: Messages vs. Constants?

2011-12-09 Thread Thomas Broyer
No; in this case, Messages or Constants will produce the exact same code: 
the constant string is inlined, and then possibly "interned" (i.e. moved to 
a global constant) by the compiler; and the Constants or Messages generated 
class is completely compiled out.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/wBmOlNcClJMJ.
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.



Messages vs. Constants?

2011-12-09 Thread socratesJ
Ah, right. But for non-parameterized strings, is there any reason to use 
Constants? Any compiler optimization that you don't get with Messages?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/geZw0bNAzWAJ.
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.



Messages vs. Constants?

2011-12-09 Thread Thomas Broyer
Messages is only about strings, while Constants can contain numbers, booleans, 
arrays of strings, etc.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/IGdVxIgawC4J.
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.



Messages vs. Constants?

2011-12-09 Thread socratesJ
Since the Messages interface offers a superset of the functionality 
available with the Constants interface, why would one *ever* prefer to use 
Constants? Does Constants offer any benefit over Messages when parameter 
substitution isn't needed?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6-c45o2lblsJ.
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.



Re: Doubt about object passed to a constructor in GWT

2011-12-09 Thread Shi
Thank you for your suggestions!!


-- Forwarded message --
From: Jens 
Date: Dec 8, 11:54 pm
Subject: Doubt about object passed to a constructor in GWT
To: Google Web Toolkit


Do what feels best for you, its just personal preference I think.

I prefer to only have one DAO per domain class so if I need both, an
user
with person and an user without person, I would go with:

- UserDAO.findByXyz(int xyz)  which delegates to
UserDAO.findByXyz(xyz,
true) or UserDAO.findByXyz(xyz, false) depending on what you think
should
be your default case.

- UserDAO.findByXyz(int xyz, boolean withPerson) which allows you to
not
follow the default case if needed.

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



Re: GWT and Generated file download

2011-12-09 Thread Tony Edgin
In your proposed solution, you would need an external mechanism for
ensuring that the temporary file was removed in the following
exceptional case.  An RPC creates the temporary file, but the client
never calls the servlet GET to retrieve the file.  This could happen
if the user goes to a different web site in the middle of the request.

I have a similar problem.  To solve my problem, I just directly send
the form data as parameters to the servlet GET and not use an RPC.
That way there's no risk of leaking temp files.

On Fri, Dec 9, 2011 at 05:05, Appien  wrote:
> Hi folks,
>
> At the moment I'm having troubles with starting a file download using
> GWT. In my application we have a Form object which contains all data
> which should be stored on a PDF file. Currently my applications works
> like this to generate the file and start the download.
>
> 1. Do a RPC call to store a form object in the session
> 2. If succesfull, call servlet by a GET method
> 3. Get the form object out of the session, genereate the pdf and write
> the Response object
>
> However, this solutions fails due to the fact that during the calls 2
> sessions gets created. The first one when I do an RPC call to store
> the form in the session. When the RPC call is finished the session
> gets destroyed. The second session is created when I do a call to the
> servlet. The servlet cannot find the stored Form object as the session
> in which the Form object is stored is already destroyed.
>
> How can I handle the different created sessions on the server?
>
> As GWT cannot handle file download using RPC, an alternative solution
> would be to create a tempory file. In this solution I would create a
> RPC call which creates a file with an unique filename. When this file
> is created, I call the servlet to get the file. Is this a nice
> solution for this problem or is there a more nifty solution?
>
> Regards,
>
> --
> 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.
>



-- 
Tony Edgin
Software Architecture and Design Leader
LBT Observatory
933 N. Cherry Ave., Tucson AZ 85721-0065
p:520-626-8951, c:520-419-8821, f:520-626-9333

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



Why third-party services is not allowed for "RemoteServiceServlet.delegate"?

2011-12-09 Thread pashaz
Present constructor for such possibility: public
RemoteServiceServlet(Object delegate);
In reality is not worked, exception:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Blocked attempt to access interface 'com', which
is not implemented by 'com'; this is either misconfiguration or a
hack attempt )


Will be nice to have it worked.
Also make "delegate" not final, with possibility to change in runtime
by setter.

For example, for integration with Spring, in "init(ServletConfig
config)" get service from Spring context and set as delegate.

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



Re: g:HTMLPanel size

2011-12-09 Thread Christopher Piggott
What I came up with was this:

 
RootPanel.get().addStyleName(GlobalResources.INSTANCE.css().backgroundGradient());


in other words, I created a style that said:
.backgroundGradient {
font-family: Arial;
width: 100%;
height: 100%;
}

and also set the background gradient over the entire page.  That seems
to work.





On Dec 9, 3:35 am, Ed  wrote:
> I would start by testing it in a test HTML page
> First make it work in your test page and then put your stuff in GWT (I
> always do it like that).
>
> What you do is tricky HTML stuff and hasn't much to do with GWT.
> Using width and height 100% depends on the elements parent(s).
> - Ed
>
> On Dec 8, 11:52 pm, ChristopherPiggott wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I can't figure out how to set a background image for the entire screen
> > in uibinder.  I tried something like:
>
> >         
> >                 .chrisp {
> >                         width: 100%;
> >                         height: 100%;
> >                         background-image: somethinginterestinghere;
> >                 }
> >         
>
> >         
> >                 
> >                         
> >                                 
> >                         
> >                         
> >                                 
> >                         
> >                 
> >         
>
> > what happens is that the gradient only fills the portion of the screen
> > that has something on it, in other words setting the background image
> > sets it in a (currently) 2 centimeter or so part of the screen then
> > just stops.
>
> > I think what I need to do is get to the REAL  tag somewhere, but
> > I can't figure out how.
>
> > --Chris

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



Re: Nice post about GWT

2011-12-09 Thread Jim Douglas
(Non-Googlers remove the .sandbox part of that URL):

https://plus.google.com/117487419861992917007/posts/6YWpsHpqMqZ

On Dec 9, 12:40 pm, "Eric Clayberg (Google)" 
wrote:
> That memo was written quite some time ago (in Internet time), and a leaked
> memo like that should not be considered to be Gospel or a roadmap.
>
> Dart and GWT each have their own goals and will both co-exist for a very
> long time. I am not aware of any current plan for Dart to replace GWT. As
> manager of the GWT team, I can certainly say that we are not continuing to
> support and develop GWT as a backup to Dart. Our goal is to continue to
> make GWT the very best choice for structured Web development. Period.
>
> For more current info on GWT or the GWT team plans, see Ray C.'s comments
> in this thread...
>
> https://plus.sandbox.google.com/117487419861992917007/posts/6YWpsHpqMqZ

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



GWTTestCase No tests found in *

2011-12-09 Thread MagusDrk
Hello Everybody.

I've just started to use GWTTestCase and Sute to implement my TDD
proyect. I'm actually able to develop and execute normal JUnit tests
in my server side (Domain Data Model) but now I want to implement
GWTTestCase to develop my presenters on client side.

I've followed some tutorials, starting by these two:

http://code.google.com/intl/es-ES/webtoolkit/doc/1.6/DevGuideTesting.html
http://code.google.com/intl/es-ES/webtoolkit/articles/testing_methodologies_using_gwt.html

Mi issue is the next: I have my GWTTestCase class and when I try to
execute it, I just get No tests found in
com.xxx.app.client.test.MyTestClass

I don't know what I'm missing, I have the client folder as a source in
the module: .

I wonder if someone knows how can I run my test.

Thanks.

the Module:









...









The Test stackTrace:


junit.framework.AssertionFailedError: No tests found in
com.xxx.app.client.test.MyTestClass
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
83)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)

My Test Class code:

package com.xxx.app.client.test;

import com.google.gwt.junit.client.GWTTestCase;

public class MyTestClass extends GWTTestCase {

  public void test() {
assertTrue("I've got this to work", true);
  }

  @Override
  public String getModuleName() {
return "com.xxx.app.MyAppModule";
  }

}


If you need aditional info, please, comment. Thanks again

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



Re: Nice post about GWT

2011-12-09 Thread Eric Clayberg (Google)
That memo was written quite some time ago (in Internet time), and a leaked 
memo like that should not be considered to be Gospel or a roadmap.

Dart and GWT each have their own goals and will both co-exist for a very 
long time. I am not aware of any current plan for Dart to replace GWT. As 
manager of the GWT team, I can certainly say that we are not continuing to 
support and develop GWT as a backup to Dart. Our goal is to continue to 
make GWT the very best choice for structured Web development. Period.

For more current info on GWT or the GWT team plans, see Ray C.'s comments 
in this thread...

https://plus.sandbox.google.com/117487419861992917007/posts/6YWpsHpqMqZ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/JJSHat3oGIgJ.
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.



eclipse - imported maven gwt project

2011-12-09 Thread András Csányi
Dear All,

I imported my maven project to Eclipse and everything became red.
After a few hours long struggling and investigating I can see that
Eclipse is not able to deal with dependencies between the particular
maven modules. I recompiled, re-installed every maven module and I
refreshed every maven module in eclipse but everything is still red.
What should I do more? I'm a little bit lost. I've already re-started
my Eclipse a few times without any vein. To be honest, I would like to
avoid that I have to rebuild my whole project from scratch because
Eclipse doing something wrong.

I'm appreciating your kind help!

András

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell

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



Re: problem with getting height of widget

2011-12-09 Thread Jens
You can use 

popupPanel.setPopupPositionAndShow(new PositionCallback() {

  public void setPosition(int offsetWidth, int offsetHeight) {
 //do your calculations. Offset sizes shouldn't be 0 here
  }
 
});

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VWCLJvIijgIJ.
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.



Re: Anyone knows GWT Multipage Framework?

2011-12-09 Thread Jens
A first simple solution would be to configure your web server to redirect 
requests from http://mysite.com/ to http://mysite.com/index.html.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5whEQI1yL_QJ.
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.



problem with getting height of widget

2011-12-09 Thread Thomas Lefort
I have been stuck with this problem for too long and I just can't find a
solution.

The problem is I want to render a popup which has a non fixed size and
place it half way next to a widget. For this I need to get the panel
height, with getOffsetHeight, once it is rendered. I do this after calling
the show method. However the problem is that the getOffsetHeight returns 0
the first time the popup is created and therefore the popup is not
positioned where I want it to be.

I reuse it later on, after hidding it and then the height is returned
correctly. The problem is really with the first time it is shown. I tried
shoing it and hiding it immediately and the showing it again, but it still
didn't solved the problem, which is pretty strange to me.

Anyway if anyone has a way of solving this issue, please let me know!

Thanks,

Thomas

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



Re: GWT multi-module project and development mode

2011-12-09 Thread Thomas Broyer


On Friday, December 9, 2011 5:44:38 PM UTC+1, David Vree wrote:
>
> My team is currently converting a web-app to GWT and we would like to 
> break our client code into at least 2 and maybe as many as 4 separate Maven 
> modules/projects.
>
> When doing this is it possible to use development mode and allow hot code 
> editing of the dependent modules?
>

Yes, absolutely. Not sure you can do it in a "Maven way" though (it looks 
to me like Maven is not designed for such things; not that you cannot do 
it, but it'll be a bit "hackish")

Google provided me with the following links, but they seem to be 
> inconclusive.  
>
>
> http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/browse_thread/thread/8d073905c5ec2663
>
> http://stackoverflow.com/questions/5236181/how-to-be-productive-in-a-gwt-maven-multi-module-project
> http://jira.codehaus.org/browse/MGWT-76
>
> I am hoping somebody already does this and can provide some useful tips.
>

We're using Eclipse with m2e and the Google Plugin for Eclipse, and, in 
addition to "resolving artifacts from the workspace", we just add each 
project's source so the Eclipse launcher's classpath (yes, it has to be 
done manually, but you can easily share the .launcher file between 
computers, at least as a template).

If you also have server-side classes in your modules, it becomes much more 
trickier: I don't think there's another solution than running an external 
servlet container, point it to your packaging=war project's 
target/, and add the other projects' target/classes to the 
webapp extra-classpath. We have a *-context.xml file for Jetty 7 that does 
just that; something like:


http://www.eclipse.org/jetty/configure.dtd";>

  /myapp
  

  

  
  /project-webapp/src/main/webapp/
  
  /project-webapp/target/project-webapp-${project.version}/

  

  

  false
  false
  false
  /etc/webdefault.xml

  
  /project-webapp/target/classes/;/project-module1/target/classes/;/project-module2/target/classes/


And you launch your Jetty with -Dproject.root="" pointing to the location 
of your maven parent folder (where all your modules live) and 
-Dproject.version="" with your project's version (unless you configured the 
final name of the project-webapp to *not* include the version).
Eclipse will compile your java files into each project's target/classes, 
which are in the extraClasspath of the webapp (just like if there were in 
the webapp's WEB-INF/classes, or a JAR in WEb-INF/lib). To refresh the 
server-side code, simply "touch" the context file and Jetty will reload it 
(we setup Jetty to check for changes every second when developping; this is 
done through a Maven profile in another project which packages everything 
together, including some Jetty configuration files; but if you don't need 
such things, just change the file manually in Jetty's configuration, on 
each developer's computer)

This is our setup for development and it works pretty well, for almost a 
year now (we previously tried Eclipse WTP but had issues with it: it 
sometimes failed to deploy some classes, or even JARs)

In a few words: it requires a bit of time to setup everything in the 
beginning, but then all you have to do is: launch your local Jetty, launch 
the DevMode in "-noserver" from Eclipse. To debug the server-side code, 
make sure you launch Jetty with the debug agent (you just have to uncomment 
a line in the default start.ini file), and then connect to it from Eclipse 
as if it's a "remote app".

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5ZFiKZUd1_AJ.
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.



Anyone knows GWT Multipage Framework?

2011-12-09 Thread Xybrek

Hi, anyone here knows http://code.google.com/p/gwt-multipage/ ?

I have some specific problems with the framework, is there any other GWT 
framework that allows multipage function, like gwt-multipage? It can map 
EntryPoints and load it based on the html request.


Like: mysite.com/index.html or mysite.com/somethingelse.html will load 
two separate entry ponts for each.


Problem with gwt-multipage is that if the access is coming from 
mysite.com/ (without specifying the html to load) it breaks and 
sometimes loads random entry points if I am not mistaken.


Any ideas?

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



Re: GWT and Generated file download

2011-12-09 Thread Jim Douglas
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8c708ac2da186d17/ca92d9d8f78a0e19

On Dec 9, 4:05 am, Appien  wrote:
> Hi folks,
>
> At the moment I'm having troubles with starting a file download using
> GWT. In my application we have a Form object which contains all data
> which should be stored on a PDF file. Currently my applications works
> like this to generate the file and start the download.
>
> 1. Do a RPC call to store a form object in the session
> 2. If succesfull, call servlet by a GET method
> 3. Get the form object out of the session, genereate the pdf and write
> the Response object
>
> However, this solutions fails due to the fact that during the calls 2
> sessions gets created. The first one when I do an RPC call to store
> the form in the session. When the RPC call is finished the session
> gets destroyed. The second session is created when I do a call to the
> servlet. The servlet cannot find the stored Form object as the session
> in which the Form object is stored is already destroyed.
>
> How can I handle the different created sessions on the server?
>
> As GWT cannot handle file download using RPC, an alternative solution
> would be to create a tempory file. In this solution I would create a
> RPC call which creates a file with an unique filename. When this file
> is created, I call the servlet to get the file. Is this a nice
> solution for this problem or is there a more nifty solution?
>
> Regards,

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



Re: GWT and Generated file download

2011-12-09 Thread Eric Metcalf
Skip doing the RPC request.  Create a file HttpServlet (don't forget
to add it to web.xml).  Use the FormPanel (http://google-web-
toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/
ui/FormPanel.html) and set the Action to the file HttpServlet.

Now you can act like a normal servlet; Override do post, read params,
write file.


On Dec 9, 6:05 am, Appien  wrote:
> Hi folks,
>
> At the moment I'm having troubles with starting a file download using
> GWT. In my application we have a Form object which contains all data
> which should be stored on a PDF file. Currently my applications works
> like this to generate the file and start the download.
>
> 1. Do a RPC call to store a form object in the session
> 2. If succesfull, call servlet by a GET method
> 3. Get the form object out of the session, genereate the pdf and write
> the Response object
>
> However, this solutions fails due to the fact that during the calls 2
> sessions gets created. The first one when I do an RPC call to store
> the form in the session. When the RPC call is finished the session
> gets destroyed. The second session is created when I do a call to the
> servlet. The servlet cannot find the stored Form object as the session
> in which the Form object is stored is already destroyed.
>
> How can I handle the different created sessions on the server?
>
> As GWT cannot handle file download using RPC, an alternative solution
> would be to create a tempory file. In this solution I would create a
> RPC call which creates a file with an unique filename. When this file
> is created, I call the servlet to get the file. Is this a nice
> solution for this problem or is there a more nifty solution?
>
> Regards,

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



Gwt server push

2011-12-09 Thread chaitanya kumar
Hi i need to implement the chat type application, where the need to refresh
automatically even the user has idle.

Thanks in advance.

Regards,
chaitanya

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



GWT multi-module project and development mode

2011-12-09 Thread David Vree
My team is currently converting a web-app to GWT and we would like to break 
our client code into at least 2 and maybe as many as 4 separate Maven 
modules/projects.

When doing this is it possible to use development mode and allow hot code 
editing of the dependent modules? 

Google provided me with the following links, but they seem to be 
inconclusive.  

http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/browse_thread/thread/8d073905c5ec2663
http://stackoverflow.com/questions/5236181/how-to-be-productive-in-a-gwt-maven-multi-module-project
http://jira.codehaus.org/browse/MGWT-76

I am hoping somebody already does this and can provide some useful tips.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fT-bDXDpsJwJ.
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.



Re: Xerces and GWT Compiler

2011-12-09 Thread Brian Chapman
Wow thanks! I've been banging my head against a wall on this issue for far 
to long now ...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ANwDxce_zQQJ.
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.



Re: How to add handler at lower level

2011-12-09 Thread Thomas Broyer
You have to make sure you call DOM.setEventListener(e, null); at some 
point, or you'll have memory leaks in IE. See 
http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks

An alternative would be to use GwtQuery (which uses setEventListener under 
the hood, AFAICT): http://code.google.com/p/gwtquery/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FliWkDlRXYoJ.
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.



Re: How to add handler at lower level

2011-12-09 Thread Jens
I have used

com.google.gwt.dom.client.Element e = 
Document.get().getElementById(...).cast();
DOM.setEventListener(e, new EventListener() {
  public void onBrowserEvent(Event e) {
NativeEvent ne = e.cast();
if("click".equals(ne.getType())) {
   //click event occured
}
  }
});

But maybe there is a better way of doing this.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/63T-lFDJ8CIJ.
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.



GWT and Generated file download

2011-12-09 Thread Appien
Hi folks,

At the moment I'm having troubles with starting a file download using
GWT. In my application we have a Form object which contains all data
which should be stored on a PDF file. Currently my applications works
like this to generate the file and start the download.

1. Do a RPC call to store a form object in the session
2. If succesfull, call servlet by a GET method
3. Get the form object out of the session, genereate the pdf and write
the Response object

However, this solutions fails due to the fact that during the calls 2
sessions gets created. The first one when I do an RPC call to store
the form in the session. When the RPC call is finished the session
gets destroyed. The second session is created when I do a call to the
servlet. The servlet cannot find the stored Form object as the session
in which the Form object is stored is already destroyed.

How can I handle the different created sessions on the server?

As GWT cannot handle file download using RPC, an alternative solution
would be to create a tempory file. In this solution I would create a
RPC call which creates a file with an unique filename. When this file
is created, I call the servlet to get the file. Is this a nice
solution for this problem or is there a more nifty solution?

Regards,

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



UnitCacheLoader Exception oO

2011-12-09 Thread Markus Unger
I got the following Exception and have no idea what's wrong. 5 Minutes
ago my Project was running ...

Exception in thread "UnitCacheLoader" java.lang.RuntimeException:
Unable to read from byte cache
at
com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:
166)
at
com.google.gwt.dev.util.DiskCacheToken.readObject(DiskCacheToken.java:
87)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:601)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:
991)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:
1866)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:
1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:
1888)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at
com.google.gwt.dev.javac.PersistentUnitCache.loadUnitMap(PersistentUnitCache.java:
493)
at com.google.gwt.dev.javac.PersistentUnitCache.access
$000(PersistentUnitCache.java:92)
at com.google.gwt.dev.javac.PersistentUnitCache
$UnitCacheMapLoader.run(PersistentUnitCache.java:122)
Caused by: java.io.StreamCorruptedException: unexpected EOF in middle
of data block
at java.io.ObjectInputStream
$BlockDataInputStream.refill(ObjectInputStream.java:2512)
at java.io.ObjectInputStream
$BlockDataInputStream.read(ObjectInputStream.java:2675)
at java.io.ObjectInputStream.read(ObjectInputStream.java:862)
at java.io.InputStream.read(InputStream.java:102)
at
com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:
154)
... 16 more

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



Re: IE8 Stylesheet Limit Workaround (invalid argument number: -2147024809)

2011-12-09 Thread melody
Thanks Thomas. I just thought I will add to the details of the error
by adding the stack trace that is produced when I run the code in Dev
Mode. Below:

com.google.gwt.core.client.JavaScriptException: (TypeError):
$doc.createStyleSheet is not a function
com.google.gwt.core.client.JavaScriptException: (TypeError):
$doc.createStyleSheet is not a function
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.createElement(StyleInjector.java)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.createElement(StyleInjector.java)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.createNewStyleSheet(StyleInjector.java:186)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.injectStyleSheet(StyleInjector.java:118)
at
com.google.gwt.dom.client.StyleInjector.flush(StyleInjector.java:362)
at com.google.gwt.dom.client.StyleInjector.access
$1(StyleInjector.java:347)
at com.google.gwt.dom.client.StyleInjector
$1.execute(StyleInjector.java:199)
at com.google.gwt.core.client.impl.SchedulerImpl$Task
$.executeScheduled$(SchedulerImpl.java:50)
at
com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:
229)
at
com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:
328)
at com.google.gwt.core.client.impl.Impl.exit(Impl.java:238)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:409)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt

How to add handler at lower level

2011-12-09 Thread saurabh saurabh
Hi everyone,
  I need to know how to add handler to a node or
element in Html document. Suppose I am not using any widget or panel
or any class of gwt. and I have something like this



//.

Element ele = doc.getElementById("i_need_clickHandler");

So how can I attach a click or mouseover handler to ele.

Thanks in advance

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



Re: Right Click Cell Table

2011-12-09 Thread John Maitland
Thanks, all works! I already have a custom
DefaultSelectionEventManager for double clicking. I had to override
handleMultiSelectionEvent as it only works for click and keyup
explicitly. A single selection model would work as is.

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



Re: Right Click Cell Table

2011-12-09 Thread Thomas Broyer
No, CellPreviewEvent.Handler runs for every event of the CellTable, 
targetting any of its cells; so you'd sink the contextmenu at the CellTable 
level, and handle it from the CellPrevewEvent.Handler (or in your case 
probably a 
DefaultSelectionEventManager.EventTranslatorpassed
 to DefaultSelectionEventManager.createCustomManager())

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/yQW3VDy0TwQJ.
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.



Re: in what situation should we use eventbus directly?

2011-12-09 Thread Jens
For example you could have a class that is responsible to show a message in 
your UI when it detects a long running task. Now this class needs the 
information when a tasks starts, when it stops and maybe it would also like 
to display a message depending on the task itself. 

As these tasks could be started everywhere in your app you would use the 
EventBus to transport these information to your class that should show the 
message if the task takes too long. So you would have a 
TaskStartEvent(String taskMessage), TaskFinishedEvent() and you would fire 
these events in presenters/controllers and not inside widgets. Thats an 
example where you use the EventBus directly with custom events outside of 
widgets.

And the map you have mentioned is not too complex. It has this structure 
because the EventBus supports handlers for specific event sources (which is 
the Object key in the map), see EventBus.fireFromSource() and 
EventBus.addHandlerToSource().

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NVVBWN94pzcJ.
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.



Re: GWT in Google Products

2011-12-09 Thread Dimitrijević Ivan
One new:
Google Currents Producer: https://www.google.com/producer

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/cZUO8xY5oCUJ.
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.



Re: Right Click Cell Table

2011-12-09 Thread John Maitland
So put the contextmenu event on the cell itself rather than sinking an
event on the celltable?

John

On Dec 9, 11:18 am, Thomas Broyer  wrote:
> I think you need a CellPreviewEvent.Handler (have a look at
> DefaultEventSelectionManager) so that a "contextmenu" event turns into a
> SelectAction.SELECT or SelectAction.TOGGLE (depending on whether the Ctrl
> or Meta key is down). The current code should correctly change selection on
> a "click" event, whichever the button (left, right or middle).
> Or maybe your cell is handling selection itself? (isSelectionHandled
> returns true)

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



Re: in what situation should we use eventbus directly?

2011-12-09 Thread wahaha
??
no,i just call fireEvent(event) in Wigdet to fire a customer defined
event.

On Dec 9, 7:40 pm, Ed  wrote:
> You use the event bus directly when using triggering "own" events like
> a Validation event or Show event when a part of the display needs to
> be shown, etc..
>
> On Dec 9, 10:43 am, wahaha  wrote:
>
>
>
>
>
>
>
> > in what situation should we use eventbus directly?
> > if we do not need use it directly,then i think the design of the
> > structure of the map object in eventBus is too complex:
> > Map, Map>>
> > actually,if we design it as Map, List>,then it can
> > satisfy the requirement of eventManger.because the "Object" key is
> > assigned with null in eventManager.
> > sorry for my poor english ..

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



Re: in what situation should we use eventbus directly?

2011-12-09 Thread Ed
You use the event bus directly when using triggering "own" events like
a Validation event or Show event when a part of the display needs to
be shown, etc..


On Dec 9, 10:43 am, wahaha  wrote:
> in what situation should we use eventbus directly?
> if we do not need use it directly,then i think the design of the
> structure of the map object in eventBus is too complex:
> Map, Map>>
> actually,if we design it as Map, List>,then it can
> satisfy the requirement of eventManger.because the "Object" key is
> assigned with null in eventManager.
> sorry for my poor english ..

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



Re: IE8 Stylesheet Limit Workaround (invalid argument number: -2147024809)

2011-12-09 Thread Thomas Broyer
UiBinder's  generate CssResources and automatically calls 
ensureInjected() on them. CssResource#ensureInjected() takes care of the 
stylesheet limit in IE by appending to the last 

Re: Right Click Cell Table

2011-12-09 Thread Thomas Broyer
I think you need a CellPreviewEvent.Handler (have a look at 
DefaultEventSelectionManager) so that a "contextmenu" event turns into a 
SelectAction.SELECT or SelectAction.TOGGLE (depending on whether the Ctrl 
or Meta key is down). The current code should correctly change selection on 
a "click" event, whichever the button (left, right or middle).
Or maybe your cell is handling selection itself? (isSelectionHandled 
returns true)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ljl9_IFTTHMJ.
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.



Right Click Cell Table

2011-12-09 Thread John Maitland
Is it possible that on right click, that the cell is also selected?

If I sink ONCONTEXTMENU, it will provide a context menu event, which
won't render the cell selected. For the cell to be selected, I need a
click event from the cell itself.

Many thanks,

John

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



Re: GWT compiler question(s)

2011-12-09 Thread András Csányi
On 29 November 2011 11:55, Thomas Klöber  wrote:
> Am 29.11.2011 11:44, schrieb András Csányi:
>
>> On 29 November 2011 11:32, Thomas Broyer  wrote:
>>>
>>> DevMode does *not* compile; that's the whole point of it: it runs your
>>> Java
>>> code, directly in Java, in a Java VM, so you can use a standard Java
>>> debugger to debug it (set breakpoints, inspect variables, etc.)
>>
>> I'm asking the experts, it's possible to develop in dev mode with
>> netbeans? I would like to take the advantages of the debugging
>> mentioned by Thomas.
>
> yes, I do it all the time, you the gwt4nb plugin: gwt4nb.dev.java.net

Thomas, may I ask how can you do it? I think I'm confused and a little
bit lost between the tools. May I get a short step-by-step description
how can do it? I'm appreciating your kind help!

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell

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



Re: GWT Developer Plugin for Firefox 8

2011-12-09 Thread Alan Leung
Do you have more details? This is the exact same set up I use to test it
after building it.

-Alan

On Thu, Dec 8, 2011 at 2:05 PM, Steve  wrote:

> Hmm, I'm having problems.  Testing with the "Web Application Starter
> Project" from GPE wizard.  It renders initial screen (and breakpoints
> work), but when I press the Send button nothing happens (including
> clickHandler breakpoints).  Works when I use Chrome and IE.  Win 7, GPE
> 2.4r37.
>
> Steve
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/j4jg0j0WtvQJ.
>
> 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.
>

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



Re: javascript with gwt

2011-12-09 Thread yash sharma
thnks  frank for a quick rply... i will read... have a nice day

On Fri, Dec 9, 2011 at 3:26 PM, Frank  wrote:

> I really advice you to fully read this page and try out all the
> examples :
> http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
>
> That page was enough for me to create a GWT Flash player widget by
> writing a GWT wrapper using JSNI around the Javascript code of
> flowplayer.
> I don't think anyone can give you any more information as is given on
> that page as it is really explained in good detail on that page.
>
> Frank
>
> On Dec 9, 10:51 am, yashujn  wrote:
> > Ohhhsry if i create confusion abt my query... may me my post
> > will be quit long but plz read it and tell me the solution plz plz
> > plz
> >
> > the thing is ... i knw javascript and html quit well but i hv to
> > devlop one website using gwt ( college project)... so i just want to
> > use javascript and html as much s possible...
> >
> > like u post one link for accordian panel using java  same
> > type of panel can develop in  javascript alsobut i dnt knw where
> > to wirte tht java script code(i mean in using which widget or any
> > other thing...) .
> >
> > 
> > 
> > 
> > function displayDate()
> > {
> > document.getElementById("demo").innerHTML=Date();}
> >
> > 
> > 
> > 
> >
> > My First Web Page
> > This is a paragraph.
> >
> > Display Date
> >
> > 
> > 
> >
> > for example if i write above JS code into htmlpanel.set content
> > section thn only tht "This is a paragraph" line is appearing on the
> > browser and button is not appearig (bcz the function of tht button
> > written in javascript). ultimately no java script function
> > work in tht htmlpanel so is thier any other panel
> > available
> > or i hv to include any library or any other solution for
> > tht...
> >
> > thnks to give me time and i hope i clear my problem to u.  :)
> >
> > On Dec 9, 2:32 pm, Frank  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I am not sure what you are trying to achieve with Javascript, cause in
> > > the supplied code I don't see any Javascript.
> >
> > > Anyway. Maybe you should read the following page :
> http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
> > > I followed that one and never had any problems using Javascript in GWT
> > > (I created a GWT wrapper around Flowplayer using JSNI (internal
> > > project) and did some more stuff with JSNI).
> >
> > > Frank
> >
> > > On Dec 9, 10:27 am, yashujn  wrote:
> >
> > > > Frank thnks for ur rply and tht panel is working fine..but
> > > > still i want to knw how javascript code can be use in gwt ?? bcz some
> > > > time it is vry useful  to use java script code.. i dnt hv any
> > > > idea abt it plz gudie me ...
> >
> > > > On Dec 9, 2:19 pm, Frank  wrote:
> >
> > > > > Maybe it is a good idea to implement an accordian panel in native
> GWT
> > > > > (check outhttp://
> timepedia.blogspot.com/2007/10/designing-really-simple-gwt-acc...)
> > > > > ?
> >
> > > > > I always use as less plain Javascript as possible to keep things
> clean
> > > > > (maybe that is just a personnel preference of me though).
> >
> > > > > On Dec 9, 9:49 am, yashujn  wrote:
> >
> > > > > > hi..sry for nt posting the code here is my code
> >
> > > > > > HTMLPane pnPane = new HTMLPane();
> > > > > > pnPane.setContents("" +
> > > > > > " cellspacing=\"1\">" +
> > > > > > "" +
> > > > > >   "" +
> > > > > >   "•
>  "+
> > > > > >   "" +
> > > > > >   "" +
> > > > > >   " http://www.cnn.com/2011/11/27/us/egypt-americans-freed/
> > > > > > index.html?eref=igoogledmn_topstories \" target=\"_blank\" class
> =
> > > > > > \"common-links-1\">Three American students detained in Egypt
> back in
> > > > > > U.S." +
> > > > > >   "" +
> > > > > >   "" +
> > > > > >   "" +
> > > > > >   "" +
> > > > > >   "");
> >
> > > > > > now in tht set content section above html code is working
> perfectly
> > > > > > but i want to create one vertical accordian panel and want to put
> > > > > > above data in tht panel... but java script code of tht
> > > > > > accordian panel is not working with html panel is their
> any
> > > > > > way exist by which i can use java script code to devlop my
> required
> > > > > > application..
> >
> > > > > > On Dec 9, 1:21 pm, Ed  wrote:
> >
> > > > > > > I don't understand what you are trying to do.
> > > > > > > But have a look at the GWT class HistoryImplTimer which
> defines a
> > > > > > > javascript method and then uses it. Maybe the example will
> help you.
> > > > > > > The GWT code contains more of these kind of examples.
> >
> > > > > > > You are talking about "my htmlpanel" but you don't show the
> code of
> > > > > > > your panel so it's hard to help you.
> >
> > > > > > > - Ed
> >
> > >

Re: javascript with gwt

2011-12-09 Thread Frank
I really advice you to fully read this page and try out all the
examples : 
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html

That page was enough for me to create a GWT Flash player widget by
writing a GWT wrapper using JSNI around the Javascript code of
flowplayer.
I don't think anyone can give you any more information as is given on
that page as it is really explained in good detail on that page.

Frank

On Dec 9, 10:51 am, yashujn  wrote:
> Ohhhsry if i create confusion abt my query... may me my post
> will be quit long but plz read it and tell me the solution plz plz
> plz
>
> the thing is ... i knw javascript and html quit well but i hv to
> devlop one website using gwt ( college project)... so i just want to
> use javascript and html as much s possible...
>
> like u post one link for accordian panel using java  same
> type of panel can develop in  javascript alsobut i dnt knw where
> to wirte tht java script code(i mean in using which widget or any
> other thing...) .
>
> 
> 
> 
> function displayDate()
> {
> document.getElementById("demo").innerHTML=Date();}
>
> 
> 
> 
>
> My First Web Page
> This is a paragraph.
>
> Display Date
>
> 
> 
>
> for example if i write above JS code into htmlpanel.set content
> section thn only tht "This is a paragraph" line is appearing on the
> browser and button is not appearig (bcz the function of tht button
> written in javascript). ultimately no java script function
> work in tht htmlpanel so is thier any other panel
> available
> or i hv to include any library or any other solution for
> tht...
>
> thnks to give me time and i hope i clear my problem to u.  :)
>
> On Dec 9, 2:32 pm, Frank  wrote:
>
>
>
>
>
>
>
> > I am not sure what you are trying to achieve with Javascript, cause in
> > the supplied code I don't see any Javascript.
>
> > Anyway. Maybe you should read the following page 
> > :http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
> > I followed that one and never had any problems using Javascript in GWT
> > (I created a GWT wrapper around Flowplayer using JSNI (internal
> > project) and did some more stuff with JSNI).
>
> > Frank
>
> > On Dec 9, 10:27 am, yashujn  wrote:
>
> > > Frank thnks for ur rply and tht panel is working fine..but
> > > still i want to knw how javascript code can be use in gwt ?? bcz some
> > > time it is vry useful  to use java script code.. i dnt hv any
> > > idea abt it plz gudie me ...
>
> > > On Dec 9, 2:19 pm, Frank  wrote:
>
> > > > Maybe it is a good idea to implement an accordian panel in native GWT
> > > > (check 
> > > > outhttp://timepedia.blogspot.com/2007/10/designing-really-simple-gwt-acc...)
> > > > ?
>
> > > > I always use as less plain Javascript as possible to keep things clean
> > > > (maybe that is just a personnel preference of me though).
>
> > > > On Dec 9, 9:49 am, yashujn  wrote:
>
> > > > > hi..sry for nt posting the code here is my code
>
> > > > > HTMLPane pnPane = new HTMLPane();
> > > > >             pnPane.setContents("" +
> > > > >             " > > > > cellspacing=\"1\">" +
> > > > >             "" +
> > > > >           "" +
> > > > >           "• 
> > > > >  "+
> > > > >           "" +
> > > > >           "" +
> > > > >           " > > > > href=\"http://www.cnn.com/2011/11/27/us/egypt-americans-freed/
> > > > > index.html?eref=igoogledmn_topstories \" target=\"_blank\" class =
> > > > > \"common-links-1\">Three American students detained in Egypt back in
> > > > > U.S." +
> > > > >           "" +
> > > > >           "" +
> > > > >           "" +
> > > > >           "" +
> > > > >           "");
>
> > > > > now in tht set content section above html code is working perfectly
> > > > > but i want to create one vertical accordian panel and want to put
> > > > > above data in tht panel... but java script code of tht
> > > > > accordian panel is not working with html panel is their any
> > > > > way exist by which i can use java script code to devlop my required
> > > > > application..
>
> > > > > On Dec 9, 1:21 pm, Ed  wrote:
>
> > > > > > I don't understand what you are trying to do.
> > > > > > But have a look at the GWT class HistoryImplTimer which defines a
> > > > > > javascript method and then uses it. Maybe the example will help you.
> > > > > > The GWT code contains more of these kind of examples.
>
> > > > > > You are talking about "my htmlpanel" but you don't show the code of
> > > > > > your panel so it's hard to help you.
>
> > > > > > - Ed
>
> > > > > > On Dec 9, 8:30 am, yashujn  wrote:
>
> > > > > > > hi ,  I want to add some javascript function in my htmlpanel like
> > > > > > > accordian plane... but htmlpanel not accepting javascript ... can 
> > > > > > > some
> > > > > > > bdy tell me how to use javascript function in gw portlet??

-- 
You received this message because you are subscribed

Re: javascript with gwt

2011-12-09 Thread yashujn
Ohhhsry if i create confusion abt my query... may me my post
will be quit long but plz read it and tell me the solution plz plz
plz

the thing is ... i knw javascript and html quit well but i hv to
devlop one website using gwt ( college project)... so i just want to
use javascript and html as much s possible...

like u post one link for accordian panel using java  same
type of panel can develop in  javascript alsobut i dnt knw where
to wirte tht java script code(i mean in using which widget or any
other thing...) .




function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}




My First Web Page
This is a paragraph.

Display Date









for example if i write above JS code into htmlpanel.set content
section thn only tht "This is a paragraph" line is appearing on the
browser and button is not appearig (bcz the function of tht button
written in javascript). ultimately no java script function
work in tht htmlpanel so is thier any other panel
available
or i hv to include any library or any other solution for
tht...


thnks to give me time and i hope i clear my problem to u.  :)


On Dec 9, 2:32 pm, Frank  wrote:
> I am not sure what you are trying to achieve with Javascript, cause in
> the supplied code I don't see any Javascript.
>
> Anyway. Maybe you should read the following page 
> :http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
> I followed that one and never had any problems using Javascript in GWT
> (I created a GWT wrapper around Flowplayer using JSNI (internal
> project) and did some more stuff with JSNI).
>
> Frank
>
> On Dec 9, 10:27 am, yashujn  wrote:
>
>
>
>
>
>
>
> > Frank thnks for ur rply and tht panel is working fine..but
> > still i want to knw how javascript code can be use in gwt ?? bcz some
> > time it is vry useful  to use java script code.. i dnt hv any
> > idea abt it plz gudie me ...
>
> > On Dec 9, 2:19 pm, Frank  wrote:
>
> > > Maybe it is a good idea to implement an accordian panel in native GWT
> > > (check 
> > > outhttp://timepedia.blogspot.com/2007/10/designing-really-simple-gwt-acc...)
> > > ?
>
> > > I always use as less plain Javascript as possible to keep things clean
> > > (maybe that is just a personnel preference of me though).
>
> > > On Dec 9, 9:49 am, yashujn  wrote:
>
> > > > hi..sry for nt posting the code here is my code
>
> > > > HTMLPane pnPane = new HTMLPane();
> > > >             pnPane.setContents("" +
> > > >             "" +
> > > >             "" +
> > > >           "" +
> > > >           "• 
> > > >  "+
> > > >           "" +
> > > >           "" +
> > > >           " > > > href=\"http://www.cnn.com/2011/11/27/us/egypt-americans-freed/
> > > > index.html?eref=igoogledmn_topstories \" target=\"_blank\" class =
> > > > \"common-links-1\">Three American students detained in Egypt back in
> > > > U.S." +
> > > >           "" +
> > > >           "" +
> > > >           "" +
> > > >           "" +
> > > >           "");
>
> > > > now in tht set content section above html code is working perfectly
> > > > but i want to create one vertical accordian panel and want to put
> > > > above data in tht panel... but java script code of tht
> > > > accordian panel is not working with html panel is their any
> > > > way exist by which i can use java script code to devlop my required
> > > > application..
>
> > > > On Dec 9, 1:21 pm, Ed  wrote:
>
> > > > > I don't understand what you are trying to do.
> > > > > But have a look at the GWT class HistoryImplTimer which defines a
> > > > > javascript method and then uses it. Maybe the example will help you.
> > > > > The GWT code contains more of these kind of examples.
>
> > > > > You are talking about "my htmlpanel" but you don't show the code of
> > > > > your panel so it's hard to help you.
>
> > > > > - Ed
>
> > > > > On Dec 9, 8:30 am, yashujn  wrote:
>
> > > > > > hi ,  I want to add some javascript function in my htmlpanel like
> > > > > > accordian plane... but htmlpanel not accepting javascript ... can 
> > > > > > some
> > > > > > bdy tell me how to use javascript function in gw portlet??

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



in what situation should we use eventbus directly?

2011-12-09 Thread wahaha
in what situation should we use eventbus directly?
if we do not need use it directly,then i think the design of the
structure of the map object in eventBus is too complex:
Map, Map>>
actually,if we design it as Map, List>,then it can
satisfy the requirement of eventManger.because the "Object" key is
assigned with null in eventManager.
sorry for my poor english ..

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



Re: javascript with gwt

2011-12-09 Thread Frank
I am not sure what you are trying to achieve with Javascript, cause in
the supplied code I don't see any Javascript.

Anyway. Maybe you should read the following page :
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
I followed that one and never had any problems using Javascript in GWT
(I created a GWT wrapper around Flowplayer using JSNI (internal
project) and did some more stuff with JSNI).

Frank

On Dec 9, 10:27 am, yashujn  wrote:
> Frank thnks for ur rply and tht panel is working fine..but
> still i want to knw how javascript code can be use in gwt ?? bcz some
> time it is vry useful  to use java script code.. i dnt hv any
> idea abt it plz gudie me ...
>
> On Dec 9, 2:19 pm, Frank  wrote:
>
>
>
>
>
>
>
> > Maybe it is a good idea to implement an accordian panel in native GWT
> > (check 
> > outhttp://timepedia.blogspot.com/2007/10/designing-really-simple-gwt-acc...)
> > ?
>
> > I always use as less plain Javascript as possible to keep things clean
> > (maybe that is just a personnel preference of me though).
>
> > On Dec 9, 9:49 am, yashujn  wrote:
>
> > > hi..sry for nt posting the code here is my code
>
> > > HTMLPane pnPane = new HTMLPane();
> > >             pnPane.setContents("" +
> > >             "" +
> > >             "" +
> > >           "" +
> > >           "• 
> > >  "+
> > >           "" +
> > >           "" +
> > >           " > > href=\"http://www.cnn.com/2011/11/27/us/egypt-americans-freed/
> > > index.html?eref=igoogledmn_topstories \" target=\"_blank\" class =
> > > \"common-links-1\">Three American students detained in Egypt back in
> > > U.S." +
> > >           "" +
> > >           "" +
> > >           "" +
> > >           "" +
> > >           "");
>
> > > now in tht set content section above html code is working perfectly
> > > but i want to create one vertical accordian panel and want to put
> > > above data in tht panel... but java script code of tht
> > > accordian panel is not working with html panel is their any
> > > way exist by which i can use java script code to devlop my required
> > > application..
>
> > > On Dec 9, 1:21 pm, Ed  wrote:
>
> > > > I don't understand what you are trying to do.
> > > > But have a look at the GWT class HistoryImplTimer which defines a
> > > > javascript method and then uses it. Maybe the example will help you.
> > > > The GWT code contains more of these kind of examples.
>
> > > > You are talking about "my htmlpanel" but you don't show the code of
> > > > your panel so it's hard to help you.
>
> > > > - Ed
>
> > > > On Dec 9, 8:30 am, yashujn  wrote:
>
> > > > > hi ,  I want to add some javascript function in my htmlpanel like
> > > > > accordian plane... but htmlpanel not accepting javascript ... can some
> > > > > bdy tell me how to use javascript function in gw portlet??

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



Re: javascript with gwt

2011-12-09 Thread yashujn
Frank thnks for ur rply and tht panel is working fine..but
still i want to knw how javascript code can be use in gwt ?? bcz some
time it is vry useful  to use java script code.. i dnt hv any
idea abt it plz gudie me ...

On Dec 9, 2:19 pm, Frank  wrote:
> Maybe it is a good idea to implement an accordian panel in native GWT
> (check 
> outhttp://timepedia.blogspot.com/2007/10/designing-really-simple-gwt-acc...)
> ?
>
> I always use as less plain Javascript as possible to keep things clean
> (maybe that is just a personnel preference of me though).
>
> On Dec 9, 9:49 am, yashujn  wrote:
>
>
>
>
>
>
>
> > hi..sry for nt posting the code here is my code
>
> > HTMLPane pnPane = new HTMLPane();
> >             pnPane.setContents("" +
> >             "" +
> >             "" +
> >           "" +
> >           "• 
> >  "+
> >           "" +
> >           "" +
> >           "http://www.cnn.com/2011/11/27/us/egypt-americans-freed/
> > index.html?eref=igoogledmn_topstories \" target=\"_blank\" class =
> > \"common-links-1\">Three American students detained in Egypt back in
> > U.S." +
> >           "" +
> >           "" +
> >           "" +
> >           "" +
> >           "");
>
> > now in tht set content section above html code is working perfectly
> > but i want to create one vertical accordian panel and want to put
> > above data in tht panel... but java script code of tht
> > accordian panel is not working with html panel is their any
> > way exist by which i can use java script code to devlop my required
> > application..
>
> > On Dec 9, 1:21 pm, Ed  wrote:
>
> > > I don't understand what you are trying to do.
> > > But have a look at the GWT class HistoryImplTimer which defines a
> > > javascript method and then uses it. Maybe the example will help you.
> > > The GWT code contains more of these kind of examples.
>
> > > You are talking about "my htmlpanel" but you don't show the code of
> > > your panel so it's hard to help you.
>
> > > - Ed
>
> > > On Dec 9, 8:30 am, yashujn  wrote:
>
> > > > hi ,  I want to add some javascript function in my htmlpanel like
> > > > accordian plane... but htmlpanel not accepting javascript ... can some
> > > > bdy tell me how to use javascript function in gw portlet??

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



Re: Nice post about GWT

2011-12-09 Thread Frank
This leaked internal google email makes many things clear :
https://gist.github.com/1208618

In short :
- The ultimate goal of Google is that Dart really takes of, if this is
the case Dart will replace GWT
- GWT is currently still activly supported and developed as a backup
plan in case Dart fails.

On Dec 9, 9:30 am, Ed  wrote:
> thanks
>
> On Dec 9, 8:07 am, Gal Dolber  wrote:
>
>
>
>
>
>
>
> >http://blog.oio.de/2011/12/08/future-of-gwt-and-gwt-2-5/
>
> > Its not mine, but it worth sharing
>
> > --
> > Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> >http://code.google.com/p/guit/

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



Re: RequestFactory/Editor AutoBean has been frozen error

2011-12-09 Thread Thomas Broyer
It's "by design", so nothing has changed in 2.4; and 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5794 hasn't 
yet been fixed (patches welcome! ;-) ).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZVyBi9o6vM4J.
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.



Re: javascript with gwt

2011-12-09 Thread Frank
Maybe it is a good idea to implement an accordian panel in native GWT
(check out 
http://timepedia.blogspot.com/2007/10/designing-really-simple-gwt-accordion.html)
?

I always use as less plain Javascript as possible to keep things clean
(maybe that is just a personnel preference of me though).

On Dec 9, 9:49 am, yashujn  wrote:
> hi..sry for nt posting the code here is my code
>
> HTMLPane pnPane = new HTMLPane();
>             pnPane.setContents("" +
>             "" +
>             "" +
>           "" +
>           "•  "+
>           "" +
>           "" +
>           "http://www.cnn.com/2011/11/27/us/egypt-americans-freed/
> index.html?eref=igoogledmn_topstories \" target=\"_blank\" class =
> \"common-links-1\">Three American students detained in Egypt back in
> U.S." +
>           "" +
>           "" +
>           "" +
>           "" +
>           "");
>
> now in tht set content section above html code is working perfectly
> but i want to create one vertical accordian panel and want to put
> above data in tht panel... but java script code of tht
> accordian panel is not working with html panel is their any
> way exist by which i can use java script code to devlop my required
> application..
>
> On Dec 9, 1:21 pm, Ed  wrote:
>
>
>
>
>
>
>
> > I don't understand what you are trying to do.
> > But have a look at the GWT class HistoryImplTimer which defines a
> > javascript method and then uses it. Maybe the example will help you.
> > The GWT code contains more of these kind of examples.
>
> > You are talking about "my htmlpanel" but you don't show the code of
> > your panel so it's hard to help you.
>
> > - Ed
>
> > On Dec 9, 8:30 am, yashujn  wrote:
>
> > > hi ,  I want to add some javascript function in my htmlpanel like
> > > accordian plane... but htmlpanel not accepting javascript ... can some
> > > bdy tell me how to use javascript function in gw portlet??

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



Re: Xerces and GWT Compiler

2011-12-09 Thread Thomas Broyer


On Thursday, December 8, 2011 10:38:26 PM UTC+1, Brian Chapman wrote:
>
> I have a maven based project that uses the jts library by
> vividsolutions. jts uses an old version of xerces which is included in
> the project's war (in WEB-INF/lib/).
>
> When I go and compile this project, I get an error from the GWT
> compiler. If I exclude it during compilation (using runtime scope> in the pom) everything compiles fine. Perhaps I don't
> understand how the GWT compiler works under the hood, but I'd expect
> the compile time class path to be independent from the actual
> compiler's class path.
>
It's not. GWT (compiler and DevMode) load files from the classpath. See 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
 

> The problem comes when I want to use the hosted mode in eclipse. When
> the project starts up with hosted mode, GWT uses the old xerces lib
> provided by jts and throws an error. If I start the app in hosted mode
> outside of eclipse using maven (mvn gwt:run) I don't get the error.
> The problem with this is that I now don't have access to the debugging
> capabilities of eclipse and it is a bit clunky.
>

You can simply edit the classpath of the launcher in Eclipse, to move 
gwt-dev.jar before jts.
...or actually, you should simply remove jts from the classpath of the 
DevMode, as server-side code is loaded from the war's WEB-INF/classes and 
WEB-INF/lib (as expected for a webapp).
But GWT has no mean to know whether a particular dependency is client-side 
or server-side (or both), and neither Eclipse or Maven have a mean to 
configure it either, so by default the Google Plugin for Eclipse includes 
everything in the DevMode's classpath (and you can later manually fine-tune 
it).

This is also one reason that makes me believe the proper way of developping 
with Maven is to have separate modules for client-side and server-side code 
(and possibly another one for shared code). It makes initial configuration 
a bit less straightforward: you have to run your server-side webapp in a 
servlet container (jetty, tomcat, whatever) and launch the DevMode in 
-noserver mode, and you need an additional step at build-time to copy the 
compiled GWT/JS code to the webapp.
 

> There appears to be some class loading issue with the GPE that is
> using the war's class path for the GWT compiler rather than have the
> GWT compiler have its own class path that is unaffected by what is
> used by the project.
>
> Has anyone seen this and do you know of any workarounds?
>

Workaround is to either have separate projects (hence separate classpaths) 
for client-side and server-side code; or fine-tune the DevMode classpath in 
Eclipse. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vJ7RV-rg2iQJ.
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.



Re: Insert HTML5 player in GWT

2011-12-09 Thread Frank
Why don't you just use the Video widget that is supplied with GWT
(which is an HTML 5 video player) ?

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/media/client/Video.html

On Dec 8, 9:20 pm, IHateSoda  wrote:
> Hello,
>
> I would like to play videos in my GWT application, so I want to use
> HTML5 player.
>
> I don't know how integrate in my application. I put the video tag in a
> HTML widget and javascript files in my main HTML page. But I can't
> call javascript function in my gwt code. I see the player but nothing
> happens because the communication between my HTML object and
> javascript doesn't work.
>
> I need some help.
>
> Code onModuleLoad:
>
> HTML video = new HTML(" src='myvideo' autoplay='true' type=''   controls='controls' > video>");
>
> HTML page :
>
>  script>
>