Eclipse plugin cannot be installed

2011-10-27 Thread Magnus
Hi,

the installation of the eclipse plugin fails for me.

I downloaded the latest eclipse version (indigo, 3.7) and added the 
following update site:
http://dl.google.com/eclipse/plugin/3.7

When selecting all packages and starting the installation, I get the 
following message:

The operation cannot be completed. See the details.

Well, the details are:
Your original request has been modified.
  WindowBuilder Core is already installed, so an update will be performed 
instead.
Cannot complete the install because one or more required items could not be 
found.
  Software being installed: Google App Engine Tools for Android 
2.4.2.relr37v201110112027 
(com.google.gdt.eclipse.mobile.android.feature.feature.group 
2.4.2.relr37v201110112027)
  Missing requirement: Android Cloud Tooling 2.4.2.relr37v201110112027 
(com.google.gdt.eclipse.mobile.android 2.4.2.relr37v201110112027) requires 
'bundle com.android.ide.eclipse.adt 12.0.0' but it could not be found
  Cannot satisfy dependency:
From: Google App Engine Tools for Android 2.4.2.relr37v201110112027 
(com.google.gdt.eclipse.mobile.android.feature.feature.group 
2.4.2.relr37v201110112027)
To: com.google.gdt.eclipse.mobile.android [2.4.2.relr37v201110112027]

What can I do?

(I selected Eclipse Java, not Java EE. Is this important? What is 
recommended for GWT?)

Thanks
Magnus

-- 
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/-/at6dLjTiJ14J.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread tanteanni
i made an (nearly)minimal example showing this problem. it is a simple 
sandbox app where i made some experiments with RequestFactory and 
Activities and Places (no DI, no Gin). The crux is now, that onModuleLoad 
is starting an AppManager.start(). The AppManager shows only wait until 
data is received and event is fired. I f event is received all the 
activities/places machinery is started - but here is the problem: no 
activity is started but PlaceChangeEvent is fired. But all later 
PalceChangeEvents are handled correctly. So what to do to reproduce:
Start the app see wait, wait see received data (the data sending 
service waits 10seconds) - no activities started.
Change id in url from 1 to 2 or vice versa - activities are started 
correctly.
or change start() in AppManager and run continueStart() directly:
public void start() {
//if (dataReady) {
continueStart();
//} else {
//appLayout.add(new Label(wait!));
//}
}

So why the activities are not started on first load? what happens here?

-- 
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/-/6nQT3aHZbt4J.
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.



Sandkasten.7z
Description: application/7z-compressed


widget selector must write in css file?

2011-10-27 Thread wahaha
does gwt-MyWidget liked selector must write in a independent css
file?
if write in ui.xml,it does not work,so we must use cssResource.

-- 
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread Thomas Broyer
I think that's because the code now runs from within an event, so handlers 
addition/removal is done after the event is processed; but 
handleCurrentHistory() fires events synchronously, so the event handlers 
are not yet registered.

As a workaround, defer continueStart() a bit more so it executes outside 
the event handling logic, within a Scheduler.scheduleFinally() for instance.

-- 
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/-/ijSNu_E7QVsJ.
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: Popup windows printing

2011-10-27 Thread Fabricio Pizzichillo
I found this thread, maybe can help you.
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/eea48bafbe8eed63?pli=1

regards

2011/10/27 Mike Dee mdichiapp...@gmail.com

 It seems easy to popup a new window, but I'm not sure how to stick the
 HTML into it.  If Window.open would return a reference to the window,
 I could see a way to do it.

 Here is another idea.  I can create another module to the GWT app.
 It's sole purpose is to handle printing.

 The GWT app I'm working on is based on Activities and Places.  The
 layout is based on a DockLayoutPanel, which contains a bunch of UI
 stuff (that appears when printing and is not wanted).  The new module
 will simply contain an HTML panel.

 So the benefits of a new module are: works in standard GWT environment
 (without much hacking) and allows a different layout from main app.

 On Oct 26, 9:07 am, Jeff Chimene jchim...@gmail.com wrote:
  On 10/26/2011 08:38 AM, Mike Dee wrote:
 
   I was thinking about something like that.  In the posts about popup
   windows this is seen as a negative because it is tricky to setup
   communications between the main window and the popup.  But there
   really is no communication needed in this case.
 
   Do you see the popup window as a GWT window or just a straight HTML
   window?
 
  The latter. This is one of those cases where I think that using GWT to
  create the child window doesn't get you anything except a problem
  solved! endorphin rush. As I said earlier, the solution can be made
  arbitrarily complex, so I'm sure that someone will chime in with a
  reason to implement the popup using GWT methods.
 
  To follow-up on the CSS: I've noticed that when there's a reference to a
  CSS with media type print, then FF opens a print dialog automatically.
  I think Chrome does this too.
 
 
 
 
 
 
 
 
 
   On Oct 26, 7:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
   On 10/26/2011 1:02 AM, Mike Dee wrote:
 
   I have an app that creates reports, which are basically HTML.  The
   reports need to be printed and that is what I'm trying to figure out.
 
   I'm porting an older app - that is more of traditional web app.
   Reports are displayed in a page - with a UI wrapped around them.
  When
   a user wants to print a report, he clicks a print link, which pops
   up a window with a printer friendly version (no UI elements).  He can
   then selects the browser's print command.  Works nicely.
 
   I'm trying to figure out how to do that in GWT.  I can display a
   report.  Printing doesn't work well, because it prints all the UI
   stuff too.
 
   I've looked into separate popup windows.  Most of the messages here
   recommend against doing it.  Instead they suggest using a Dialog box.
   I've tried it and created a Dialog with simply an HTMLPanel.
  However,
   selecting File-Print (in the browser) prints the entire page (the
   entire window).
 
   Any suggestions on a way to do this?
 
   Here's one idea I've implemented. It's amenable to arbitrary levels of
   complexity.
 
   Your UI posts a request to your server on user action (e.g. a button
   click event), and opens the result in a new window:
   button type=submit
   form action=printTheCurrentReport _target=_blank method=get
   !-- Depending on how you manage sessions, you might want a session ID
   token in a hidden field --
   /button
 
   Reminder: you should have css for print media.

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



-- 
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread tanteanni
that was my first guess but i debugged into ActivityManager's- register 
event code. all activity managers are instatiated and have themselve 
registered on placechange events before the deferred  handleCurrentHistory() 
occurs. Or the other way around: if i do not defer the start all is working 
fine.
it seem only to work if all stuff happens inside onModuleLoad(). and it 
seem that problem only occur if handleCurrentHistory() happens after 
onModuleLoad and all the binding and instantiation in onModuleLoad.
(but i am not sure about all that)

-- 
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/-/6kYPVfzYDCEJ.
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: Eclipse plugin cannot be installed

2011-10-27 Thread Magnus
I found out that there must be a conflict with a previous installation 
(helios).

Could it be that there are entries in the Windows registry?

-- 
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/-/VzYkNgVburkJ.
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: Handling authorization exception from server to client

2011-10-27 Thread André Salvati

So, wasn't it supposed to enter the code bellow on
AbstractRequestContext? Is not it a general failure?? Maybe this is
an issue with RequestFactory...

if (response.getGeneralFailure() != null) {
ServerFailureMessage failure = response.getGeneralFailure();
ServerFailure fail =
new ServerFailure(failure.getMessage(),
failure.getExceptionType(), failure
.getStackTrace(), failure.isFatal());

fail(receiver, fail);
return;
  }



On Oct 26, 11:15 am, Thomas Broyer t.bro...@gmail.com wrote:
 F is present in I, meaning one particular invocation (service method
 call) failed, not the whole batch request (well, actually, S:[false]
 says the one and only invocation failed, then the object in I gives
 information about the failure).

 FYI, the response format is defined by the
 com.google.web.bindery.requestfactory.shared.messages.ResponseMessage
 AutoBean.

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



Webdriver and GWT Devmode

2011-10-27 Thread Magno Machado
Is anyone here using Webdriver to drive GWT apps in devmode?

I can use it to drive the compiled app, but it's impratical to recompile the
whole app everytime I want to run the tests during development, so I wanted
to use it on devmode on my machine when I'm developing a new feature, and
run them on the compiled app in a less frequent basis (maybe on a CI
server).

The problem is that when webdriver open the app in devmode, the browser
always want to install the gwt plugin (even though I already have installed
it on my machine)... I tested with Chrome, by the way

-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread Thomas Broyer
What I meant is that, assuming you're using a SimpleEventBus, the 
PlaceChangeRequestHandler-s and PlaceChangeHandler-s are in the 
deferredDeltas list, they're not yet fully registered: 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java
You need to defer the handleCurrentHistory() call outside the event 
dispatching; but you can actually defer the whole continueStart if you 
prefer (the handlers would then be registered right away, with no queuing 
in the deferredDeltas)

-- 
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/-/3nGq2Eo_aHkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to get speedtracer to work with eclipse/tptp

2011-10-27 Thread tanteanni
some weeks ago i tried speed tracer in chrome for my gwt app 
(eclipse/maven). but only sseing the javascript/html side of the coin 
doesn't really help. now i installed TPTP for Eclipse (my idea was i just 
click profile as MyWebApp) but i found profile as speedtracer. So 
clicked it and set up chrome browser in eclipse (including 
--enable-extension-timeline-api).
Eclipse compiles it, eclipse showed up the url and launches chrome with it, 
chrome displays

Loading Speed Tracer for:http://localhost:/MyWebApp.html; but nothing 
else happens! if i enter the url directly my app is loaded but 
not completely - it stucks somewhere.

So how to set up Eclipse/(Maven)/Speedtracer/Chrome to get profiling to 
work?

thx in advance

-- 
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/-/LyGvKAZDWKwJ.
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: Handling authorization exception from server to client

2011-10-27 Thread Thomas Broyer
No, it's not a general failure, it's only a failure for one invocation. 
Look at few lines down in AbstractRequestContext:

  SetThrowable causes = null;
  for (int i = 0, j = invocations.size(); i  j; i++) {
try {
  if (response.getStatusCodes().get(i)) {

invocations.get(i).onSuccess(response.getInvocationResults().get(i));
  } else {
ServerFailureMessage failure = AutoBeanCodex.decode(
MessageFactoryHolder.FACTORY, ServerFailureMessage.class,
response.getInvocationResults().get(i)).as();
invocations.get(i).onFail(
new ServerFailure(failure.getMessage(),
failure.getExceptionType(), failure.getStackTrace(),
failure.isFatal()));
  }

response.getStatusCodes().get(i) reads from the S (in your case, returns 
'false', for i==0), and response.getInvocationResults().get(i) reads from 
the I (in your case, a ServerFailureMessage).

To be crystal clear:
requestContext.myMethod(arguments).to(new ReceiverX() {
@Override
public void onSuccess(X response) {
// won't get here
}
@Override
public void onFailure(ServerFailureMessage error) {
// will get there: the myMethod invocation failed; its Receiver's 
onFailure is called
}
});
requestContext.fire(new ReceiverVoid() {
@Override
public void onSuccess(Void response) {
// will get there: the myMethod invocation failed, but the whole 
batch succeeded: the context could have had other invocations that 
succeeded
}
});

-- 
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/-/R-fuY5miJ0oJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread tanteanni

at the moment the whole continueStart is deferred at the end of this 
continueStart  handleCurrentHistory() is called, after instantiating 
activity mappers and managers. Before that (on construction time of 
AppManager)  EventBus and PlaceController are instantiated.
you could look in the code i attached in 2nd post. which lines of code 
should be moved where?

(i still don't understand why it works with out the delay but fails with 
delay)

in my real code i tried also to delay the start with a Timer - no matter 
how long the start is deferred it works fine. but as soon as continueStart 
is run after onModuleLoad() - eventBased delay it fails. in meantime 
deferred it synchronously by implementing start() like this:
new SchedulerImpl().scheduleDeferred(new ScheduledCommand() {

@Override
public void execute() {
while (!(ttReady  auReady)) {
System.out.println(waiting);
}
continueStart();

}
});

This is working fine. The time of delaying is the same as before: as soon 
as tt and are become ready. but for interest i want to know/understand what 
is happening here.


-- 
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/-/F9TYwKpW2QMJ.
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: Click Events not getting attached

2011-10-27 Thread Akash Gupta
don't cast them into elements, use them as widgets, do not deal with
elements at all.

On Thu, Oct 27, 2011 at 12:00 AM, gangurg gangurg gang...@gmail.com wrote:

 How to use them as Widgets ?


 On Wed, Oct 26, 2011 at 10:04 AM, Akash Gupta akash.b...@gmail.comwrote:

 ya use them as widgets instead of elements,  if you want to retain the
 listeners.


 On Wed, Oct 26, 2011 at 10:13 PM, Jeff Larsen larse...@gmail.com wrote:

 Why do you need to get widgets as elements?

 Why not just do

 p.add(new HTMLPanel(Hello a href=\#world\World/a);

  --
 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/-/1NyzCaMCB2QJ.

 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.


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


-- 
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: Click Events not getting attached

2011-10-27 Thread Akash Gupta
instead of   MyPanel p = new MyPanel (contentHtmlPanel.getElement());

do it   MyPanel p = new MyPanel (contentHtmlPanel);

and have a constructor accordingly.

-- 
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: SplitLayoutPanel and Widgets using UiBinder

2011-10-27 Thread Freddie Jefferson
Patrick,

I got it. Thanks a bunch.

Regards,
SigmaBlu

On Wed, Oct 26, 2011 at 5:04 PM, Patrick Julien pjul...@gmail.com wrote:

 OK, so use a SimplePanel or whatever you need in the west area and assign
 to that

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

 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.



SecurityException: Invalid signature file digest for Manifest main attributes Error with 2.4.0 2.3.0

2011-10-27 Thread Brzhk
Hello,

I'm trying to compile my projet using ther gwt-maven-plugin and i fall on 
this error : 

[INFO][ERROR] Unexpected internal compiler error
[INFO] java.lang.ExceptionInInitializerError
[INFO] at 
com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:269)
[INFO] at 
com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generateIncrementally(ServiceInterfaceProxyGenerator.java:60)
[INFO] at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
[INFO] at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[INFO] at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
[INFO] at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
[INFO] at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
[INFO] at 
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[INFO] at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
[INFO] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
[INFO] at 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[INFO] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
[INFO] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
[INFO] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
[INFO] at 
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
[INFO] at 
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
[INFO] at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
[INFO] at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
[INFO] at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO] at 
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO] at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[INFO] Caused by: java.lang.SecurityException: Invalid signature file 
digest for Manifest main attributes
[INFO] at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:239)
[INFO] at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)
[INFO] at java.util.jar.JarVerifier.processEntry(JarVerifier.java:251)
[INFO] at java.util.jar.JarVerifier.update(JarVerifier.java:205)
[INFO] at java.util.jar.JarFile.initializeVerifier(JarFile.java:338)
[INFO] at java.util.jar.JarFile.getInputStream(JarFile.java:403)
[INFO] at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:706)
[INFO] at sun.misc.Resource.cachedInputStream(Resource.java:77)
[INFO] at sun.misc.Resource.getByteBuffer(Resource.java:160)
[INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:266)
[INFO] at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
[INFO] at java.lang.Class.forName0(Native Method)
[INFO] at java.lang.Class.forName(Class.java:186)
[INFO] at 
com.google.gwt.user.rebind.rpc.SerializableTypeOracleBuilder.clinit(SerializableTypeOracleBuilder.java:360)

I'm completely lost; What am is supposed to understand? Has anyone seen 
this before ?

-- 
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/-/JHvY9dIBhYAJ.
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: Eclipse plugin cannot be installed

2011-10-27 Thread Magnus
Thanks,

I managed it by first installing/upgrading some eclipse packages... Don't 
know why, but it works 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/-/vBYU3lfgLToJ.
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-servlet.jar wrong after GWT update

2011-10-27 Thread Magnus
Hi,

after installing a new eclipse 3.7 and installing the GWT plugin, my 
project has a GWT error:
The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT SDK 
library gwt-servlet.jar; perhaps it is a different version?

I had this before, but I do not remember what to do.
What's the general method for updating GWT projects after upgrading the GWT 
plugin?

Thanks
Magnus

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



Capture ctr-z(undo) and ctr-y(redo) within GWT application

2011-10-27 Thread Ahmed
Hello,

I have been writing a web application based on GWT 2.3 and along with
it I have written my own undo and redo functions. When the user
presses ctr-z or ctr-y the undoes or redoes the last changes. Is their
a way to effectively detect the ctr-z and ctr-y keypress events that
occur anywhere on the page and cause them to run my own functions.

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



Maven + Eclipse + RequestFactory validation tool: Duplicate class error

2011-10-27 Thread Tiago Rinck Caveden
Hello all,

I migrated to GWT 2.4.0 and one of the first errors I got concerned the
RequestFactory validation tool that needed to be run before launching the
server. As I'm using Maven, I followed the instructions available here:
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation#Maven_builds
I added the 2 plugins configurations. Didn't add the specific for Indingo as
I'm using Eclipse 3.6.

That worked fine... in Eclispe.
Whenever I try to compile my project with maven through the command line, I
get this:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project WEB-MODULE: Compilation failure: Compilation
failure:
[ERROR]
/workspace/PROJECT-ROOT/WEB-MODULE/target/generated-sources/annotations/PACKAGE_PATH/MY_REQUEST_FACTORYDeobfuscatorBuilder.java:[7,13]
duplicate class: PACKAGE_PATH.MY_REQUEST_FACTORYDeobfuscatorBuilder
[ERROR]
/workspace/PROJECT-ROOT/WEB-MODULE/target/generated-sources/annotations/PACKAGE_PATH/MY_REQUEST_FACTORYDeobfuscatorBuilder.java:[7,13]
duplicate class: PACKAGE_PATH.MY_REQUEST_FACTORYDeobfuscatorBuilder

(I've substituted my project paths and names for the uppercase expressions
above)

I've noted that this generated class is both under
generated-sources/annotations and generated-sources/apt.

If I remove the plugins configuration, then I can compile with maven on the
command line. But launching and using the application through Eclipse isn't
possible without those plugins...

Anyone at least understand what's going on? Why this class is being
generated twice and how to prevent if from happening while still launching
the RF validation tool?

Thank you a lot for any help,
-- 
Tiago Rinck Caveden

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



Odd IncompatibleRemoteServiceException

2011-10-27 Thread darkling

We've been building this application for several months no problems
until now. We haven't upgraded any jars but we did upgrade the Eclipse
GWT plugin the other day. Since then the application works ok in
normal mode but when I try to debug it in hosted mode it fails with
the following exception:

Invalid version number 2.0 passed to external.gwtOnLoad(), expected
2.1; your development mode bootstrap file may be out of date; if you
are using -noserver try recompiling and redeploying your app; if you
just switched to a different version of GWT, try clearing your browser
cache

I tried doing a clean, clearing browser cache, all that. I found where
in the hosted.html file the version number is set. I have been going
in manually to change it to 2.1 but that's very annoying. I'm using
maven gwt plugin. Can anyone tell me where to change it permanently?

The bigger problem is that after I have changed the version number I
am still unable to debug in hosted mode. Then it crashes with this
exception:

SEVERE: Login: An IncompatibleRemoteServiceException was thrown while
processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Expecting version 5 from client, got 7. )


As I said we didn't change anything except possibly the eclipse
plugin. I can't just get all latest from GWT because we're using EXT-
GWT as our main library and I'm worried it won't be yet compatible.


For an experiment I created a brand new GWT application that doesn't
use EXT-GWT or Maven and it worked correctly in hosted mode, up to and
including having version number 2.1. I'm really not sure what to try
next.

Any suggestions would be great I have a delivery on Monday and have
been beating my head against this for a week. I can't debug anything
while this issue remains.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Maven + Eclipse + RequestFactory validation tool: Duplicate class error

2011-10-27 Thread Patrick Julien
only include generated-sources/apt in your maven build 
using build-helper-maven-plugin

!-- Google Plugin for Eclipse (GPE) won't see the source generated above 
by requestfactory-apt unless it is exposed as an additional source 
dir --
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
version1.7/version
executions
  execution
idadd-source/id
phasegenerate-sources/phase
goals
  goaladd-source/goal
/goals
configuration
  sources

source${project.build.directory}/generated-sources/apt/source
  /sources
/configuration
  /execution
/executions
  /plugin

For eclipse, make sure you have the m2e connector 
for build-helper-maven-plugin installed

-- 
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/-/-Ah7mSu2iX4J.
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-servlet.jar wrong after GWT update

2011-10-27 Thread Patrick Julien
just squash the gwt-servlet.jar found in your project with the one found in 
your gwt installation

-- 
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/-/8TnV1ce12vgJ.
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: Popup windows printing

2011-10-27 Thread Jeffrey Chimene

On 10/26/2011 9:02 PM, Mike Dee wrote:

It seems easy to popup a new window, but I'm not sure how to stick the
HTML into it.


That's the purpose of the _target attribute in the form element.


If Window.open would return a reference to the window,
I could see a way to do it.

Create a JSNI routine that creates a window and returns the handle.


Here is another idea.  I can create another module to the GWT app.
It's sole purpose is to handle printing.


Whatever.

Bueno Suerte,
jec

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



Trouble accessing Javascript function in JSNI

2011-10-27 Thread laredotornado
Hi,

I'm using GWT 2.4.  I've included this on my main module page ...

script type=text/javascript src=js/tabber.js/script
script type=text/javascript src=js/sortable.js/script
  /head

The file js/tabber.js defines a function, tabberAutomatic.
However, when this Java method is invoked from a client package ...

public static native void postHtmlProcessing() /*-{
var tabberOptions = {
manualStartup : true
};

// set up the tabs
tabberAutomatic(tabberOptions);

// set the tables
sortables_init();
}-*/;

I get an error, com.google.gwt.core.client.JavaScriptException:
(ReferenceError): tabberAutomatic is not defined.  What am I doing
wrong?  I have verified through my browser that the external scripts
are being loaded, yet GWT is finding them.

Any help is appreciated, - Dave

-- 
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: Odd IncompatibleRemoteServiceException

2011-10-27 Thread Jens
An IncompatibleRemoteServiceException is thrown when you have an old 
gwt-servlet.jar in your WEB-INF/lib folder. 
Your client speaks version 7 while your server only understands (and 
expects) version 5. Just copy the correct GWT 2.1 gwt-servlet.jar into your 
WEB-INF/lib folder.

Regarding your hosted mode file, have you tried to rename your war 
folder/your app folder so GWT has to regenerate it?

-- 
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/-/Gl9hlxHIPAoJ.
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: Trouble accessing Javascript function in JSNI

2011-10-27 Thread Alain Ekambi
Try $wnd.tabberAutomatic(tabberOptions);  and  $wnd.sortables_init();

2011/10/27 laredotornado laredotorn...@zipmail.com

 Hi,

 I'm using GWT 2.4.  I've included this on my main module page ...

script type=text/javascript src=js/tabber.js/script
script type=text/javascript src=js/sortable.js/script
  /head

 The file js/tabber.js defines a function, tabberAutomatic.
 However, when this Java method is invoked from a client package ...

public static native void postHtmlProcessing() /*-{
var tabberOptions = {
manualStartup : true
};

// set up the tabs
tabberAutomatic(tabberOptions);

// set the tables
sortables_init();
}-*/;

 I get an error, com.google.gwt.core.client.JavaScriptException:
 (ReferenceError): tabberAutomatic is not defined.  What am I doing
 wrong?  I have verified through my browser that the external scripts
 are being loaded, yet GWT is finding them.

 Any help is appreciated, - Dave

 --
 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 API for  non Java based platforms
http://www.emitrom.com/ http://code.google.com/p/gwt4air/
http://gwt4touch.appspot.com/
http://gwt4flex.appspot.com/ http://gwt4touch.appspot.com/
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

-- 
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: Maven + Eclipse + RequestFactory validation tool: Duplicate class error

2011-10-27 Thread Tiago
Ha, amazing!
Thank you Patrick for the fast and precise answer!

Shouldn't that doc page I linked in the OP be updated?

Best regards,
Tiago.

On Oct 27, 3:43 pm, Patrick Julien pjul...@gmail.com wrote:
 only include generated-sources/apt in your maven build
 using build-helper-maven-plugin

 !-- Google Plugin for Eclipse (GPE) won't see the source generated above
 by requestfactory-apt unless it is exposed as an additional source
         dir --
       plugin
         groupIdorg.codehaus.mojo/groupId
         artifactIdbuild-helper-maven-plugin/artifactId
         version1.7/version
         executions
           execution
             idadd-source/id
             phasegenerate-sources/phase
             goals
               goaladd-source/goal
             /goals
             configuration
               sources

 source${project.build.directory}/generated-sources/apt/source
               /sources
             /configuration
           /execution
         /executions
       /plugin

 For eclipse, make sure you have the m2e connector
 for build-helper-maven-plugin installed

-- 
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread Thomas Broyer
As I said: handleCurrentHistory() is called from within 
onAdminUnitSelected, i.e. an event dispatch. Delay it (either just 
handleCurrentHistory() or the whole continueStart()) with 
Scheduler#scheduleFinally to make it execute *outside* the event 
dispatching, so that the place change handlers are *effectively* registered 
(on not kept on hold by the SimpleEventBus until the end of the current 
dispatch).

-- 
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/-/SsSWpg5inGsJ.
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: Maven + Eclipse + RequestFactory validation tool: Duplicate class error

2011-10-27 Thread Patrick Julien
Probably, you're always free to write a ticket to the gwt team

-- 
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/-/GunUBGXUIW8J.
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: Maven + Eclipse + RequestFactory validation tool: Duplicate class error

2011-10-27 Thread Thomas Broyer
If maven-compiler-plugin executes the validation tool, then you don't need 
to call it explicitly using the exec-maven-plugin. You'd have to configure 
Eclipse manually though.
Or you could disable annotation processing in the maven-compiler-plugin and 
run the ValidationTool using the exec-maven-plugin (and m2e should execute 
it as soon as a file changes in your project).

Also, note that the specific for Indigo is actually specific for m2e 
1.0 (which, I believe, can be installed on Helios)

-- 
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/-/Hs_PGyhThhcJ.
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: Odd IncompatibleRemoteServiceException

2011-10-27 Thread darkling
It does have to regenerate it. Our build system actually deletes it
everytime it runs but the hosted.html file actually has a modified
date of February. I'm not sure how that's possible, it must be being
copied from somewhere by GWT

On Oct 27, 10:13 am, Jens jens.nehlme...@gmail.com wrote:
 An IncompatibleRemoteServiceException is thrown when you have an old
 gwt-servlet.jar in your WEB-INF/lib folder.
 Your client speaks version 7 while your server only understands (and
 expects) version 5. Just copy the correct GWT 2.1 gwt-servlet.jar into your
 WEB-INF/lib folder.

 Regarding your hosted mode file, have you tried to rename your war
 folder/your app folder so GWT has to regenerate it?

-- 
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: Odd IncompatibleRemoteServiceException

2011-10-27 Thread darkling
I tried grabbing gwt-servlet.jar and that did fix the second issue,
assuming I manually change the verison number in hosted.html I can run
the program in hosted mode. But when I regenerate hosted.html it
always puts 2.0

If anyone can give me any suggestions that would be great
Thanks for all the help so far

On Oct 27, 11:11 am, darkling darkling...@aol.com wrote:
 It does have to regenerate it. Our build system actually deletes it
 everytime it runs but the hosted.html file actually has a modified
 date of February. I'm not sure how that's possible, it must be being
 copied from somewhere by GWT

 On Oct 27, 10:13 am, Jens jens.nehlme...@gmail.com wrote:







  An IncompatibleRemoteServiceException is thrown when you have an old
  gwt-servlet.jar in your WEB-INF/lib folder.
  Your client speaks version 7 while your server only understands (and
  expects) version 5. Just copy the correct GWT 2.1 gwt-servlet.jar into your
  WEB-INF/lib folder.

  Regarding your hosted mode file, have you tried to rename your war
  folder/your app folder so GWT has to regenerate it?

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



Two GWT scripts in one page.

2011-10-27 Thread Luis Montes
So I've gotten GWT to make a cross domain script with the xsiframe linker
and it works ok.

However one problem:

In my local GWT app i'm developing, I'm doing something like this:

script type=text/javascript language=javascript src=
http://otherhost.com/xsapp/xsapp.nocache.js;/script

script type=text/javascript language=javascript
src=/myapp/myapp.nocache.js/script

This works fine if I load up  http://127.0.0.1:/index.jsp

If I try and debug it with:
http://127.0.0.1:/index.jsp?gwt.codesvr=127.0.0.1:9997
it breaks.

It looks like in the debugger, it's trying to debug xsapp.nocache.js which
it should not need to.

Is there a workaround for this?  Seems like we can't just use standalone
(non-inherited) GWT libraries if this can't be done.

Luis

-- 
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: Two GWT scripts in one page.

2011-10-27 Thread Thomas Broyer
You can use several GWT modules in the same HTML page, but then the DevMode 
applies for all of them. (at least I'm not aware of a way to filter the 
modules it'd apply to)

-- 
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/-/Engf9SXOUGgJ.
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: Two GWT scripts in one page.

2011-10-27 Thread Luis Montes
That's the problem.  I still need to use dev mode.  There really should be
some configuration for this.



On Thu, Oct 27, 2011 at 9:23 AM, Thomas Broyer t.bro...@gmail.com wrote:

 You can use several GWT modules in the same HTML page, but then the DevMode
 applies for all of them. (at least I'm not aware of a way to filter the
 modules it'd apply to)

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



Overriding web.xml in Google Plugin for Eclipse's Jetty

2011-10-27 Thread dotsha

I have some context/servlet init parameters defined in my app's
web.xml, that set default behaviour for my application. When deployed
to production, these can be overridden on a per-installation basis by
editing the tomcat context XML file.

I would like to do a similar thing during development, i.e. for each
developer to override certain settings in the web.xml. I read that
jetty has the ability to override the web.xml (http://
docs.codehaus.org/display/JETTY/override+web.xml), but I'm not sure
how to configure this under Google Plugin for Eclipse.

Could anyone with experience in this post a sample web.xml, jetty-
web.xml and override-web.xml?

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

2011-10-27 Thread morteza adi
Thanks Joel !

it worked for me very well !




Truly yours,
Morteza Adi


On Wed, Oct 26, 2011 at 6:41 PM, Joel glatap...@gmail.com wrote:

 Thank you very much :-)

 On Oct 25, 5:14 pm, Alan Leung acle...@google.com wrote:
  Sometimes this week.
 
  It seems to be pretty stable.
 
  -Alan
 
 
 
 
 
 
 
  On Tue, Oct 25, 2011 at 7:31 AM, Ivan Dimitrijevic dim...@gmail.com
 wrote:
   Works regular for me on Mac OS X 10.7.2
   64bit
 
   --
   S postovanjem,
   *Ivan Dimitrijevic*, dipl.ing. ISiT, MSc
   d...@dnjcompany.com d...@dnjcopmany.com
  http://dimi.dnjcompany.com
 
   On Tue, Oct 25, 2011 at 16:29, Joel glatap...@gmail.com wrote:
 
   It seems to work for me as well, under Firefox 7.0.1 with Windows 7
   x64.
 
   When is the deployment planned ?
 
   On Oct 10, 6:27 pm, Alan Leung acle...@google.com wrote:
For those who had experienced a crash on 32bit Linux, would you mind
   doing
me a favor by trying the attached xpi file?
 
Thanks!
 
-Alan
 
On Mon, Oct 10, 2011 at 3:15 PM, Michael Vogt 
 vmei...@googlemail.com
   wrote:
 
  works perfectly on my Ubuntu 64 bit
  Linux N53SV 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25
 UTC
   2011
  x86_64 x86_64 x86_64 GNU/Linux
  FF 7.0.1
 
 Yes works also on my ThinkPad with Ubuntu 11.04 64-bit and Firefox
 7.0.1 at home.
 
 --
 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-dev-plugin.xpi
4080KViewDownload
 
   --
   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.
 
--
   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.

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



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



Google Eclipse plugin Archive

2011-10-27 Thread NRJ
Hi,

This page -http://code.google.com/eclipse/docs/install-from-zip.html
gives the latest plugin for Eclipse. The latest plugin has GWT 2.4

I want the archive of the GWT 2.2 plugin for jdk 1.5 compatibility.
Please give a download link for the same.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



Initial download size

2011-10-27 Thread Morteza Adi
I'm using GXT/GWT in  a project.  with help of  code splitting i could 
reduce initial download size to 2232796 bytes.
However i think it is still too big for initial download.
after inspecting compile reports i found that there are some classes 
/packages in jre and gwtlang
like java.util.AbstractHashMap or java.lang.Math
i've never used them in my project. there are also some gwt / gxt classes 
i've never used but they got loaded in initial download. 

i have some questions and i would be so thankful if anyone help me out.
is gwt compiler compiles every packages in jre or just compiles those which 
are implemented ??
i have just a simple login page which is split from rest of the code. how 
much the minimum initial download size do you expect i can reach(what is 
the normal download size for a simple project)?

thanks 

-- 
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/-/Qpa3qoUaNxgJ.
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: Chrome 15, GWT DMP Plugin crashes

2011-10-27 Thread pjspychala
Yeah, i can deploy fine and it works without the development plugin in
all browsers. The IE dev plugin works fine too.

-Paul

On Oct 26, 1:47 pm, savilak savi...@gmail.com wrote:
 We have the same issue with Chrome 16.0.912.12 dev-m.
 In case we deploy the app or use IE in debug mode  the app works fine!

 Thanks
 Savilak

 On Oct 26, 8:38 pm, pjspychala tomatoactiva...@gmail.com wrote:







  After upgrading to a new version of the browser (Chrome15) it seems
  that the plugin no longer likes whats going on. I've tried
  uninstalling and reinstalling the plugin without success.

  What happens:

  Webapp loads
  I can do some actions on the webapp, but 95% of actions will freezechrome. 
  Eventuallychromewill ask to disable the plugin which will
  unfreeze the good stuff which will leave me with this inside Eclipse:

  13:32:15.151 [ERROR] [???] Remoteconnectionlost

  com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: 
  Remoteconnectionlost
      at
  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
  lServer.java:
  307)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
  nelServer.java:
  546)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
  :
  363)
      at java.lang.Thread.run(Unknown 
  Source)Causedby:java.net.SocketException:Connectionresetbypeer:socketwritee 
  rror
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(Unknown Source)
      at java.net.SocketOutputStream.write(Unknown Source)
      at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
      at java.io.BufferedOutputStream.flush(Unknown Source)
      at java.io.DataOutputStream.flush(Unknown Source)
      at com.google.gwt.dev.shell.BrowserChannel
  $ReturnMessage.send(BrowserChannel.java:1310)
      at com.google.gwt.dev.shell.BrowserChannel
  $ReturnMessage.send(BrowserChannel.java:1315)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
  lServer.java:
  295)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
  nelServer.java:
  546)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
  :
  363)
      at java.lang.Thread.run(Unknown Source)

  which is expected and this:

  13:32:15.080 [ERROR] [???] Uncaught exception escaped

  com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: 
  Remoteconnectionlost
      at
  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
  rReturn(BrowserChannelServer.java:
  354)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
  elServer.java:
  218)
      at
  com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
  136)
      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.j 
  ava:
  91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
      at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.jav 
  a:
  172)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
  lServer.java:
  292)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
  nelServer.java:
  546)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
  :
  363)
      at java.lang.Thread.run(Unknown 
  Source)Causedby:java.net.SocketException:Connectionresetbypeer:socketwritee 
  rror
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(Unknown Source)
      at java.net.SocketOutputStream.write(Unknown Source)
      at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
      at java.io.BufferedOutputStream.flush(Unknown Source)
      at java.io.DataOutputStream.flush(Unknown Source)
      at com.google.gwt.dev.shell.BrowserChannel
  $ReturnMessage.send(BrowserChannel.java:1310)
      at com.google.gwt.dev.shell.BrowserChannel
  $ReturnMessage.send(BrowserChannel.java:1315)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
  rReturn(BrowserChannelServer.java:
  340)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
  elServer.java:
  218)
      at
 

Re: Odd IncompatibleRemoteServiceException

2011-10-27 Thread darkling
Can anyone tell me what jar or property makes the client want version
number 7? I'd much rather revert the client to the correct version we
support than try to update the server right before a release
Thanks

On Oct 27, 11:33 am, darkling darkling...@aol.com wrote:
 I tried grabbing gwt-servlet.jar and that did fix the second issue,
 assuming I manually change the verison number in hosted.html I can run
 the program in hosted mode. But when I regenerate hosted.html it
 always puts 2.0

 If anyone can give me any suggestions that would be great
 Thanks for all the help so far

 On Oct 27, 11:11 am, darkling darkling...@aol.com wrote:







  It does have to regenerate it. Our build system actually deletes it
  everytime it runs but the hosted.html file actually has a modified
  date of February. I'm not sure how that's possible, it must be being
  copied from somewhere by GWT

  On Oct 27, 10:13 am, Jens jens.nehlme...@gmail.com wrote:

   An IncompatibleRemoteServiceException is thrown when you have an old
   gwt-servlet.jar in your WEB-INF/lib folder.
   Your client speaks version 7 while your server only understands (and
   expects) version 5. Just copy the correct GWT 2.1 gwt-servlet.jar into 
   your
   WEB-INF/lib folder.

   Regarding your hosted mode file, have you tried to rename your war
   folder/your app folder so GWT has to regenerate it?

-- 
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: Odd IncompatibleRemoteServiceException

2011-10-27 Thread Jens
Just make sure you use gwt-user.jar and gwt-servlet.jar (and gwt-dev.jar) 
of the same GWT version. I think you should also use the gwt-maven-plugin 
with the same version as your GWT jars. 

I dont think that you can change the GWT-RPC version manually.

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



Regarding HTTPClient Request

2011-10-27 Thread karun
Hi ,


Is it possible for class which extends RemoteServiceServlet to accept
and serve the GET request sent by
com.google.gwt.http.client.RequestBuilder from client,

since the RemoteServiceServlet also inherit public void
doGet(HttpServletRequest req, HttpServletResponse resp)

 method

Thanks
karun

-- 
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: Popup windows printing

2011-10-27 Thread Mike Dee
I say that.  It is from back in 2007.  The later messages indicate
users had problems with it.  Don't know if it is supported either.

On Oct 27, 3:03 am, Fabricio Pizzichillo fpizzichi...@gmail.com
wrote:
 I found this thread, maybe can help 
 you.http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 regards

 2011/10/27 Mike Dee mdichiapp...@gmail.com







  It seems easy to popup a new window, but I'm not sure how to stick the
  HTML into it.  If Window.open would return a reference to the window,
  I could see a way to do it.

  Here is another idea.  I can create another module to the GWT app.
  It's sole purpose is to handle printing.

  The GWT app I'm working on is based on Activities and Places.  The
  layout is based on a DockLayoutPanel, which contains a bunch of UI
  stuff (that appears when printing and is not wanted).  The new module
  will simply contain an HTML panel.

  So the benefits of a new module are: works in standard GWT environment
  (without much hacking) and allows a different layout from main app.

  On Oct 26, 9:07 am, Jeff Chimene jchim...@gmail.com wrote:
   On 10/26/2011 08:38 AM, Mike Dee wrote:

I was thinking about something like that.  In the posts about popup
windows this is seen as a negative because it is tricky to setup
communications between the main window and the popup.  But there
really is no communication needed in this case.

Do you see the popup window as a GWT window or just a straight HTML
window?

   The latter. This is one of those cases where I think that using GWT to
   create the child window doesn't get you anything except a problem
   solved! endorphin rush. As I said earlier, the solution can be made
   arbitrarily complex, so I'm sure that someone will chime in with a
   reason to implement the popup using GWT methods.

   To follow-up on the CSS: I've noticed that when there's a reference to a
   CSS with media type print, then FF opens a print dialog automatically.
   I think Chrome does this too.

On Oct 26, 7:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
On 10/26/2011 1:02 AM, Mike Dee wrote:

I have an app that creates reports, which are basically HTML.  The
reports need to be printed and that is what I'm trying to figure out.

I'm porting an older app - that is more of traditional web app.
Reports are displayed in a page - with a UI wrapped around them.
   When
a user wants to print a report, he clicks a print link, which pops
up a window with a printer friendly version (no UI elements).  He can
then selects the browser's print command.  Works nicely.

I'm trying to figure out how to do that in GWT.  I can display a
report.  Printing doesn't work well, because it prints all the UI
stuff too.

I've looked into separate popup windows.  Most of the messages here
recommend against doing it.  Instead they suggest using a Dialog box.
I've tried it and created a Dialog with simply an HTMLPanel.
   However,
selecting File-Print (in the browser) prints the entire page (the
entire window).

Any suggestions on a way to do this?

Here's one idea I've implemented. It's amenable to arbitrary levels of
complexity.

Your UI posts a request to your server on user action (e.g. a button
click event), and opens the result in a new window:
button type=submit
form action=printTheCurrentReport _target=_blank method=get
!-- Depending on how you manage sessions, you might want a session ID
token in a hidden field --
/button

Reminder: you should have css for print media.

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

-- 
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: Popup windows printing

2011-10-27 Thread Mike Dee
Did that.  Seems to work.  Have to figure out CSS issues.

Experimenting now with using separate module.

On Oct 27, 6:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 10/26/2011 9:02 PM, Mike Dee wrote:

  It seems easy topopupa new window, but I'm not sure how to stick the
  HTML into it.

 That's the purpose of the _target attribute in the form element.

  If Window.open would return a reference to the window,
  I could see a way to do it.

 Create a JSNI routine that creates a window and returns the handle.

  Here is another idea.  I can create another module to the GWT app.
  It's sole purpose is to handle printing.

 Whatever.

 Bueno Suerte,
 jec

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



CSS1Compat Error

2011-10-27 Thread Bill Morrison
Greetings,

In my GWT application I have set it to standards mode (!doctype
html) in the main html file.

However, at run time I keep receiving this message :

12:20:17.905 [INFO] [marabou] Your *.gwt.xml module configuration
prohibits the use of the current doucment rendering mode
(document.compatMode=' CSS1Compat').brModify your application's host
HTML page doctype, or update your custom 'document.compatMode'
configuration property settings.

What is causing this? Is it one of the inherits ... in the xml, or
am I just missing some setting at the top of it?

Thank- you 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: how create project from pom??

2011-10-27 Thread cri
You are correct. I was referring to the combination of eclipse/gwt/
maven. And from what I gather, the version of m2e updated for Indigo
has caused all kinds of breakage of existing maven plugins (when used
with Indigo). Personally, I'm to the point of believing that you are
better off without using maven for gwt projects until the situation
improves.

On Sep 23, 12:24 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
 On 23 September 2011 09:53, cri chuck.irvine...@gmail.com wrote:

  The uptick post is very outdated. It will only confuse folks I'm
  afraid. A much better place to start is the link I posted. (http://
  code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven).
  Developing GWT in conjunction withMavenhas IMHO always been error
  prone and tricky. It does seem like the GWT team is giving a little
  more importance to this than they have in the past. The new Indigo /
 mavenintegration has thrown a wrench in things to some extent.

 I don't think that's entirely correct.

 Mavenworks fine with GWT and has been since (IIRC) 2.1. What possibly
 doesn't work fine is *Eclipse* +Maven+ GWT. I have no problems
 (other than the usual) but I run builds on the command line (where
 they belong) and use Eclipse for simple compiling and
 editing/refactoring/formatting/et cetera.

 Having said that, there are certainly a number of issues. GWT's
 approach to JARs/project management is not quite optimal. It requires
 existing JARs to be changed to create one-offs that don't exist
 anywhere else (AFAIK). Furthermore, these JARs are then all dumped
 together in a few big ueber JARs. This breaksMaven'sdependency
 management and creates classpath problems. Luckily, the fallout
 doesn't seem too bad. It would be great if this could be improved (and
 work is being done in this area). Of course, it would be even better
 if GWT usedMavenitself instead of Ant... ;-)

 By the way, I have not been able to get Indigo to run properly at all.
 It keeps breaking on updates so I'm still on Helios. I do get the
 impression that theMavenplugins (there's more than one) are at the
 heart of the issue but I have not delved in any deeper.

-- 
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 2.4 MVP tutorial

2011-10-27 Thread Crystal
Greetings,

My apologies if this has already been ask.  I am looking for a GWT 2.4
MVP tutorial.  I found the Contacts tutorial, but that is not even
close to the structure that gets produced when I make a new MVP
project with GWT 2.4 in Eclipse.  The activities and places seems to
be about managing history and not necessarily about the MVP design
pattern.  If you can direct me to a fresher MVP tutorial, I would be
grateful.

Thanks,

-Crystal.

-- 
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 RemoteService eclipse wizard does not generate Async Service class

2011-10-27 Thread David Lee
I am new to GWT.  I installed the Eclipse plugins and got a sample
project to work using the New Web Application Project ( the one with
Greeting Service).
Works great.

Now I experimented with adding my own service.  I used the GWT Remote
Service wizard to create as new Remote Service.
It created the Client service, and the server Impl file but not thhe
Async Service.

Code generated looks like this (for client):
@RemoteServiceRelativePath(TestService)
public interface TestService extends RemoteService {
/**
 * Utility class for simplifying access to the instance of async
service.
 */
public static class Util {
private static TestServiceAsync instance;
public static TestServiceAsync getInstance(){
if (instance == null) {
instance = GWT.create(TestService.class);
}
return instance;
}
}
}

But the TestServiceAsync interface was not generated.   Its prety
easy to make one myself but all the examples and docs say that it
should be automatically generated.
I made sure that Eclipse automatic builds are on and that the
preferences for WindowBuilder -  GWT - Builder have Generate
Async Interfaces for RemoteServices checked but no go.

My Eclipse Project Builders tab doesnt look like anything in the
docs.  (old docs?)   It has listed Java Builder , Google WebApp
Project Validator , Google Web Toolkit Project Validator but no
GWT Builder.

Any idea what might be missing ?  or should I just go on and create
the interface by hand ?

-David

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How can i pass an array through a runnable interface ?

2011-10-27 Thread Laurent Pierre
Hi Chaps,

I'm doing a succesful call to a servlet which is returning a String array.
Array's datas should be used to display a pie chart.

What is the best way to pass these datas to createtable() in order to fill the 
data table ?

Did tried a couple of ideas but i had some error messages like 
referring-to-a-non-final-variable-data-inside-an-inner-class and others .
Can someone help me fix this because i'm beating around the bush ?

Regards,

Pierre
---

Service.callD(F,
new AsyncCallback() { 
public void onFailure(Throwable caught) {
dialogBox
.setText(Remote Procedure Call - Failure);
serverResponseLabel
.addStyleName(serverResponseLabelError);
serverResponseLabel.setHTML(SERVER_ERROR);
dialogBox.center();
closeButton.setFocus(true);
}

@Override
public void onSuccess(String[][] result) {

Runnable onLoadCallback = new Runnable() {
public void run() {


PieChart pie = new PieChart(createTable(), createOptions());

pie.addSelectHandler(createSelectHandler(pie));
horizontalPanel_2.add(pie);
}
};
VisualizationUtils.loadVisualizationApi(onLoadCallback, PieChart.PACKAGE);

}
--- 

private AbstractDataTable createTable() {


DataTable data = DataTable.create();
data.addColumn(ColumnType.STRING, Libelle);
data.addColumn(ColumnType.NUMBER, Nombre);
data.addRows(4);
data.setValue(0, 0, Defaut 1);
data.setValue(0, 1, 14);
data.setValue(1, 0, Defaut 2);
data.setValue(1, 1, 10);
data.setValue(2, 0, Defaut 3);
data.setValue(2, 1, 25);
data.setValue(3, 0, Defaut 4);
data.setValue(3, 1, 2);

return data;
}
---

-- 
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 2.4 MVP tutorial

2011-10-27 Thread Andrea Boscolo
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

It explains how activities and places can be used in a MVP way. It 
references a helloworld sample, but in the mid of the doc there's also a 
link to another and more complete sample (mobilewebapp) that takes in 
account many other things.

-- 
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/-/7SRrGUTwBIoJ.
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: Editor not flush values of subeditors

2011-10-27 Thread Cristian Rinaldi
The error is when I declare an interface instead of a particular class 
implementation.
By example:

@UiField(provided = true)
AddressView address;  //Interface (not a concrete class)

Note that into file ui.xml the inclusion of widget also is a interface

by example:

l:AddressView ui:field=address/l:AddressView

Now, when inject AddressView by constructor in the container view 
(TerceroNewEditor), and I asign the variable before that uibinder make a 
interface, aren't because Editor do not send values contained inside the 
AddressView.

Now, if I only change the declaration:

@UiField(provided = true)
AddressView address;

by

@UiField(provided = true)
AddressEditor address;  //implementation of AddressView
 
and either way that I assign (injection or direct  creation), Editor works 
well.

This is an error or is not covered?

Thanks and please, sorry for my english!!

-- 
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/-/fcFfyRmlb1cJ.
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: Editor not flush values of subeditors

2011-10-27 Thread Christian Goudreau
What is AddressView is extending?

On Thu, Oct 27, 2011 at 6:25 PM, Cristian Rinaldi csrina...@gmail.comwrote:

 The error is when I declare an interface instead of a particular class
 implementation.
 By example:

 @UiField(provided = true)
 AddressView address;  //Interface (not a concrete class)

 Note that into file ui.xml the inclusion of widget also is a interface

 by example:

 l:AddressView ui:field=address/l:AddressView

 Now, when inject AddressView by constructor in the container view
 (TerceroNewEditor), and I asign the variable before that uibinder make a
 interface, aren't because Editor do not send values contained inside the
 AddressView.

 Now, if I only change the declaration:

 @UiField(provided = true)
 AddressView address;

 by

 @UiField(provided = true)
 AddressEditor address;  //implementation of AddressView

 and either way that I assign (injection or direct  creation), Editor works
 well.

 This is an error or is not covered?

 Thanks and please, sorry for my english!!

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

 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.




-- 
Christian Goudreau
www.arcbees.com

-- 
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: Editor not flush values of subeditors

2011-10-27 Thread Thomas Broyer
If AddressView is neither an Editor nor an IsEditor, that's the expected 
behavior, as I told you before. The generator for the EditorDriver can only 
looks at the declared type of the fields and declared return types of the 
methods, if AddressView is not an editor, then the field will smply be 
ignored by the Editor framework. It really doesn't matter what the field 
value is exactly (well, actually, most –if not all– subinterfaces of Editor 
are dealt with at runtime, provided the field's type extends/implements 
Editor to begin with), or when it's initialized/assigned.

-- 
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/-/D32nDAL3UfUJ.
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: Editor not flush values of subeditors

2011-10-27 Thread Cristian Rinaldi
Hello Christian:

AddressView extends View and EditorAddressProxy

See below: 

public interface AddressView extends View, EditorAddressProxy{  
  public interface Presenter extends MutablePresenterAddressView{
  }
}




-- 
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/-/HNhboah3MP8J.
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: Editor not flush values of subeditors

2011-10-27 Thread Thomas Broyer
Similarly, if AddressView has no subeditors (zero-arg methods with an 
Editor/IsEditor return type), it's basically useless.

Keep in mind that the generator looks at your classes, not the actual 
instances: it runs at compile-time to generate code.

-- 
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/-/VwJffl9VuF8J.
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: jquery?

2011-10-27 Thread Andrei
I wrote complex apps in both JQuery and GWT. My experience boils down
to two key points:

(1) 2-3,000 lines of code or less, you can do it much faster in JQuery
than GWT, and the resulting JavaScript will be much smaller. More code
- go with GWT.

(2) If you plan to use widgets like DataGrid or trees, GWT is much
more convenient.

This is not a religion kind of question: these frameworks are very
different, and each has very distinct advantages in certain
situations.

-- 
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: Editor not flush values of subeditors

2011-10-27 Thread Cristian Rinaldi
Thanks thomas,

I see it clearly now.

It's a shame, I wanted the container interface does not depend on the 
particular implementation of Address. If this changes, I just wanted to 
change the bind in GIN.

Thanks.!

-- 
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/-/vgdUNdeI7O0J.
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 advantages

2011-10-27 Thread shakilsiraj
One more thing to worry about is cross browser compatibility with JSF.
At my work we have two large projects, one in GWT and the other in
JSF. With the JSF project we are forcing ie9+ to use 1e8 compatibility
mode as it is very complex to upgrade the JSF code we have to the new
JSF frameworks. With the GWT one, it took us 2 days to convert the
project (mainly GWT  GXT version upgrades, minor CSS fixes, etc.) to
support ie9.

On Oct 24, 12:17 am, Navindian navind...@gmail.com wrote:
 Hi

 We have decided to go with GWT and dropping the option of JSF for google
 maps application. I need to prepare a slide to support the same. Please
 suggest the parameters where GWT passes and JSF fails. It should be very
 generic such that Quality people appreciate it.

 thanks
 navajyothi

-- 
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: jquery?

2011-10-27 Thread Roger Studner
There are many (many) jQuery based live grid implementations.  They are far 
easier to style, implement and customize than CellTable

A massive strength of GWT, is the ability to model your domain objects on the 
client. Sure, you can do this in javascript using Backbone and other 
techniques, but that is beyond the technical realm of 'using jquery'

Roger

On Oct 27, 2011, at 7:04 PM, Andrei wrote:

 I wrote complex apps in both JQuery and GWT. My experience boils down
 to two key points:
 
 (1) 2-3,000 lines of code or less, you can do it much faster in JQuery
 than GWT, and the resulting JavaScript will be much smaller. More code
 - go with GWT.
 
 (2) If you plan to use widgets like DataGrid or trees, GWT is much
 more convenient.
 
 This is not a religion kind of question: these frameworks are very
 different, and each has very distinct advantages in certain
 situations.
 
 -- 
 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.
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how defined a AbsolutePanel in ui.xml?

2011-10-27 Thread wahaha
g:AbsolutePanel
g:at
g:Label text=1/g:Label
/g:at
/g:AbsolutePanel


i fond these code on the internet,but it is wrong in my computer.

-- 
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: Popup windows printing

2011-10-27 Thread Mike Dee
I really don't like the idea of popping up a new window and then
feeding it HTML.  In this case it works nicely because the main page
has HTML in it and the popup simply shows the same HTML but without
the UI.

However, I can think of situations where there is a celltable with
data and I want to print the celltable contents - in a printer
friendly format.  Now, there is no HTML (that could be fed into a
popup).  That HTML would have to be created.  Remember I want to
leverage the browser's ability to print HTML.

I guess there are two options:

1) Clicking a button (to popup the printer friendly window) would have
to create roughly equivalent HTML (as in the celltable) and feed it
into the popup window.

OR

2) Have the popup window do that logic.  This where I was thinking of
using another module.  But I'm not sure how to do that.  Another idea
is to simply put the logic in a JSP.  Then I'd need to check on how
session sharing works between JSP and GWT.



On Oct 27, 12:19 pm, Mike Dee mdichiapp...@gmail.com wrote:
 Did that.  Seems to work.  Have to figure out CSS issues.

 Experimenting now with using separate module.

 On Oct 27, 6:55 am, Jeffrey Chimene jchim...@gmail.com wrote:







  On 10/26/2011 9:02 PM, Mike Dee wrote:

   It seems easy topopupa new window, but I'm not sure how to stick the
   HTML into it.

  That's the purpose of the _target attribute in the form element.

   If Window.open would return a reference to the window,
   I could see a way to do it.

  Create a JSNI routine that creates a window and returns the handle.

   Here is another idea.  I can create another module to the GWT app.
   It's sole purpose is to handle printing.

  Whatever.

  Bueno Suerte,
  jec

-- 
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: how create project from pom??

2011-10-27 Thread Juan Pablo Gardella
I don't use m2eclipse plugin in eclipse. I do *mvn eclipse:eclipse *and
import the project in eclipse and works fine. The one thing that I must *do
by hand *in eclipse is enable GWT project nature. To do this, in project
properties, in google category option Google Web Toolkit press *Apply.*
*
*

2011/10/27 cri chuck.irvine...@gmail.com

 You are correct. I was referring to the combination of eclipse/gwt/
 maven. And from what I gather, the version of m2e updated for Indigo
 has caused all kinds of breakage of existing maven plugins (when used
 with Indigo). Personally, I'm to the point of believing that you are
 better off without using maven for gwt projects until the situation
 improves.

 On Sep 23, 12:24 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
  On 23 September 2011 09:53, cri chuck.irvine...@gmail.com wrote:
 
   The uptick post is very outdated. It will only confuse folks I'm
   afraid. A much better place to start is the link I posted. (http://
   code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven).
   Developing GWT in conjunction withMavenhas IMHO always been error
   prone and tricky. It does seem like the GWT team is giving a little
   more importance to this than they have in the past. The new Indigo /
  mavenintegration has thrown a wrench in things to some extent.
 
  I don't think that's entirely correct.
 
  Mavenworks fine with GWT and has been since (IIRC) 2.1. What possibly
  doesn't work fine is *Eclipse* +Maven+ GWT. I have no problems
  (other than the usual) but I run builds on the command line (where
  they belong) and use Eclipse for simple compiling and
  editing/refactoring/formatting/et cetera.
 
  Having said that, there are certainly a number of issues. GWT's
  approach to JARs/project management is not quite optimal. It requires
  existing JARs to be changed to create one-offs that don't exist
  anywhere else (AFAIK). Furthermore, these JARs are then all dumped
  together in a few big ueber JARs. This breaksMaven'sdependency
  management and creates classpath problems. Luckily, the fallout
  doesn't seem too bad. It would be great if this could be improved (and
  work is being done in this area). Of course, it would be even better
  if GWT usedMavenitself instead of Ant... ;-)
 
  By the way, I have not been able to get Indigo to run properly at all.
  It keeps breaking on updates so I'm still on Helios. I do get the
  impression that theMavenplugins (there's more than one) are at the
  heart of the issue but I have not delved in any deeper.

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



-- 
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-contrib] AdditionalTypeProviderDelegate uses internal names (issue1583803)

2011-10-27 Thread stephen . haberman

Reviewers: cromwellian,

Message:
This is a small clean up from the less name mangling patch that is just
fixing a variable name to be internalName instead of binaryName.

I have another patch or two coming that is the same thing; pulling
peripheral, no-functionality-changes out of the name mangling patch to
make things simpler to review.



Please review this at http://gwt-code-reviews.appspot.com/1583803/

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
  M  
dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java



Index: dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
diff --git a/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java  
b/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
index  
9f0c604913af233358fa8ee53f445e4ab8de0774..1ab2a23e5fa63ef5286dc907cf7744c3c837fa6c  
100644

--- a/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
+++ b/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
@@ -103,11 +103,11 @@ public class JdtCompiler {
  * Finds a new compilation unit on-the-fly for the requested type, if  
there

  * is an alternate mechanism for doing so.
  *
- * @param binaryName the binary name of the requested type
+ * @param internalName the internal name of the requested type
  * @return a unit answering the name, or codenull/code if no such  
unit

  * can be created
  */
-GeneratedUnit doFindAdditionalType(String binaryName);
+GeneratedUnit doFindAdditionalType(String internalName);
   }

   /**
@@ -290,9 +290,9 @@ public class JdtCompiler {
 }

 public NameEnvironmentAnswer findType(char[][] compoundTypeName) {
-  char[] binaryNameChars =  
CharOperation.concatWith(compoundTypeName, '/');

-  String binaryName = String.valueOf(binaryNameChars);
-  CompiledClass compiledClass = binaryTypes.get(binaryName);
+  char[] internalNameChars =  
CharOperation.concatWith(compoundTypeName, '/');

+  String internalName = String.valueOf(internalNameChars);
+  CompiledClass compiledClass = binaryTypes.get(internalName);
   try {
 if (compiledClass != null) {
   return compiledClass.getNameEnvironmentAnswer();
@@ -300,11 +300,11 @@ public class JdtCompiler {
   } catch (ClassFormatException ex) {
 // fall back to binary class
   }
-  if (isPackage(binaryName)) {
+  if (isPackage(internalName)) {
 return null;
   }
   if (additionalTypeProviderDelegate != null) {
-GeneratedUnit unit =  
additionalTypeProviderDelegate.doFindAdditionalType(binaryName);
+GeneratedUnit unit =  
additionalTypeProviderDelegate.doFindAdditionalType(internalName);

 if (unit != null) {
   CompilationUnitBuilder b = CompilationUnitBuilder.create(unit);
   Adapter a = new Adapter(b);
@@ -312,7 +312,7 @@ public class JdtCompiler {
 }
   }
   try {
-URL resource = getClassLoader().getResource(binaryName + .class);
+URL resource = getClassLoader().getResource(internalName  
+ .class);

 if (resource != null) {
   InputStream openStream = resource.openStream();
   try {
@@ -487,7 +487,7 @@ public class JdtCompiler {
   private AdditionalTypeProviderDelegate additionalTypeProviderDelegate;

   /**
-   * Maps dotted binary names to compiled classes.
+   * Maps internal names to compiled classes.
*/
   private final MapString, CompiledClass binaryTypes = new  
HashMapString, CompiledClass();


Index:  
dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java
diff --git  
a/dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java  
b/dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java
index  
1962d883f889e10e56751f3cfaddf8a819c462cc..e781cc770c47c597850923692ae9c45cba4e7fe1  
100644
---  
a/dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java
+++  
b/dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java
@@ -212,8 +212,8 @@ public class AdditionalTypeProviderDelegateTest extends  
OptimizerTestBase {

 return false;
   }

-  public GeneratedUnit doFindAdditionalType(String binaryName) {
-if (binaryName.compareTo(myPackage/InsertedClass) == 0) {
+  public GeneratedUnit doFindAdditionalType(String internalName) {
+if (internalName.compareTo(myPackage/InsertedClass) == 0) {
   return new JavaWrapperCompilationUnit();
   }
   return null;


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Add various docs, minor variable renames (issue1578807)

2011-10-27 Thread stephen . haberman

Reviewers: cromwellian,

Message:
No functionality changes, just adding docs, usually to explicitly state
whether its internal/binary/source names being used, or a few renames to
make which internal/etc. names are being used more explicit.



Please review this at http://gwt-code-reviews.appspot.com/1578807/

Affected files:
  M dev/core/src/com/google/gwt/core/ext/typeinfo/JClassType.java
  M dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java
  M dev/core/src/com/google/gwt/dev/asm/Type.java
  M dev/core/src/com/google/gwt/dev/javac/CompilationState.java
  M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
  M dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java
  M dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
  M dev/core/src/com/google/gwt/dev/javac/JsniChecker.java
  M dev/core/src/com/google/gwt/dev/javac/Resolver.java
  M dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
  M dev/core/src/com/google/gwt/dev/javac/asm/CollectClassData.java
  M dev/core/src/com/google/gwt/dev/javac/asm/ResolveMethodSignature.java
  M dev/core/src/com/google/gwt/dev/javac/asm/ResolveTypeSignature.java
  M dev/core/src/com/google/gwt/dev/javac/typemodel/JRealClassType.java
  M dev/core/src/com/google/gwt/dev/javac/typemodel/TypeOracle.java
  M dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
  M dev/core/src/com/google/gwt/dev/jjs/ast/JReferenceType.java
  M dev/core/src/com/google/gwt/dev/util/JsniRef.java
  M dev/core/test/com/google/gwt/dev/javac/asm/ResolveGenericsTest.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Ignore qualified refs with generics (issue1578808)

2011-10-27 Thread stephen . haberman

Reviewers: scottb,


http://gwt-code-reviews.appspot.com/1578808/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1578808/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#newcode110
dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:110:
}
I noticed in the debugger than some of these refs had generics in them,
which as type names are never going to have entries in allValidClasses,
so it seems okay to just ignore them.



Please review this at http://gwt-code-reviews.appspot.com/1578808/

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java


Index: dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
diff --git  
a/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java  
b/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
index  
e18682ebae1f92228a8363d61d6f0359b44f5236..645e20945dfa29456491b5dcfa4fb09c057fbfc7  
100644

--- a/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
+++ b/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
@@ -104,6 +104,10 @@ public class CompilationStateBuilder {
  
unresolvedSimple.add(interner.intern(String.valueOf(simpleRef)));

   }
   for (char[][] qualifiedRef :  
cud.compilationResult().qualifiedReferences) {
+// skip refs like  
com.google.gwt.event.shared.GwtEventH.TypeH

+if (CharOperation.contains('', qualifiedRef)) {
+  continue;
+}
  
unresolvedQualified.add(interner.intern(CharOperation.toString(qualifiedRef)));

   }
   for (String jsniDep : jsniDeps) {


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Make form event getTypes public. (issue1582803)

2011-10-27 Thread t . broyer

LGTM

(as a side note, I always wondered why these events are not in
com.google.gwt.event.dom; I believe we could add them there and have the
existing ones extend the new ones)

Oh, and BTW, rjrjr is no longer a Googler; I wonder who to assign this
CL to; jgw? jlabanca? fredsa?


http://gwt-code-reviews.appspot.com/1582803/diff/1/user/src/com/google/gwt/user/client/ui/FormPanel.java
File user/src/com/google/gwt/user/client/ui/FormPanel.java (right):

http://gwt-code-reviews.appspot.com/1582803/diff/1/user/src/com/google/gwt/user/client/ui/FormPanel.java#newcode138
user/src/com/google/gwt/user/client/ui/FormPanel.java:138: private
static TypeSubmitHandler TYPE = new TypeSubmitHandler();
Isn't this initialization defeating the lazy-init done in getType() ?
Seems like the right time to fix this.

http://gwt-code-reviews.appspot.com/1582803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: r10697 is back! It was falsely accused last time. Fingers crossed: (issue1578806)

2011-10-27 Thread rchandia

Submitted as r10726

http://gwt-code-reviews.appspot.com/1578806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Mofifying HasDataPresenter to be more resilient to state changes while it is resolving state cha... (issue1583804)

2011-10-27 Thread jlabanca

Reviewers: dcavalcanti_google.com,

Description:
Mofifying HasDataPresenter to be more resilient to state changes while
it is resolving state changes.  For example, if user code triggers a
SelectionChangeEvent while selection is being resolved, we can handle
that.

Review by: dcavalca...@google.com

Please review this at http://gwt-code-reviews.appspot.com/1583804/

Affected files:
  M user/src/com/google/gwt/user/cellview/client/HasDataPresenter.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Mofifying HasDataPresenter to be more resilient to state changes while it is resolving state cha... (issue1583804)

2011-10-27 Thread jlabanca

committed as r10728

http://gwt-code-reviews.appspot.com/1583804/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Reroll of r10726 (issue1578809)

2011-10-27 Thread rchandia

Reviewers: rdayal,

Description:
Reroll of r10726

*** Original change description ***

Change default of UiBinder.useLazyWidgetBuilders to true, in
preparation for deleting the old code.

Review by: rda...@google.com

Please review this at http://gwt-code-reviews.appspot.com/1578809/

Affected files:
  M user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
  M user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java


Index: user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
===
--- user/src/com/google/gwt/uibinder/UiBinder.gwt.xml   (revision 10728)
+++ user/src/com/google/gwt/uibinder/UiBinder.gwt.xml   (working copy)
@@ -27,11 +27,11 @@
   define-configuration-property name=UiBinder.useSafeHtmlTemplates  
is-multi-valued=false/
   set-configuration-property name=UiBinder.useSafeHtmlTemplates  
value=true/


-  !-- UiBinder can be configured to use a new strategy that enables a  
faster
-   rendering mode and make some widgets lazily created. This is still  
experimental

-   but should be the default option in a soon future. --
+  !-- Set this property to false to revert to the old code gen strategy,
+and lose features like support for LazyPanel and forward references.  
This

+property will soon disappear. --
   define-configuration-property name=UiBinder.useLazyWidgetBuilders  
is-multi-valued=false/
-  set-configuration-property name=UiBinder.useLazyWidgetBuilders  
value=false/
+  set-configuration-property name=UiBinder.useLazyWidgetBuilders  
value=true/


   generate-with class=com.google.gwt.uibinder.rebind.UiBinderGenerator
 when-type-assignable  
class=com.google.gwt.uibinder.client.UiRenderer/

Index: user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
(revision 10728)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	(working  
copy)

@@ -52,6 +52,7 @@
   private static final String LAZY_WIDGET_BUILDERS_PROPERTY  
= UiBinder.useLazyWidgetBuilders;


   private static boolean gaveSafeHtmlWarning;
+  private static boolean gaveLazyBuildersWarning;

   /**
* Given a UiBinder interface, return the path to its ui.xml file,  
suitable

@@ -212,7 +213,14 @@
   }

   private Boolean useLazyWidgetBuilders(MortalLogger logger,  
PropertyOracle propertyOracle) {
-return extractConfigProperty(logger, propertyOracle,  
LAZY_WIDGET_BUILDERS_PROPERTY, false);
+Boolean rtn = extractConfigProperty(logger, propertyOracle,  
LAZY_WIDGET_BUILDERS_PROPERTY, true);

+if (!gaveLazyBuildersWarning  !rtn) {
+  logger.warn(Configuration property %s is false. Deprecated code  
generation is in play.  +

+  This property will soon become a no-op.,
+  LAZY_WIDGET_BUILDERS_PROPERTY);
+  gaveLazyBuildersWarning = true;
+}
+return rtn;
   }

   private Boolean useSafeHtmlTemplates(MortalLogger logger, PropertyOracle  
propertyOracle) {

@@ -221,7 +229,8 @@

 if (!gaveSafeHtmlWarning  !rtn) {
   logger.warn(Configuration property %s is false! UiBinder SafeHtml  
integration is off, 
-  + leaving your users more vulnerable to cross-site scripting  
attacks.,
+  + leaving your users more vulnerable to cross-site scripting  
attacks. This property  +
+  will soon become a no-op, and SafeHtml integration will always  
be on.,

   XSS_SAFE_CONFIG_PROPERTY);
   gaveSafeHtmlWarning = true;
 }
Index: user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(revision  
10728)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(working  
copy)

@@ -1006,7 +1006,7 @@
*/
   public String tokenForSafeUriExpression(XMLElement source, String  
expression) {

 if (!useSafeHtmlTemplates) {
-  return tokenForStringExpression(source, expression + .asString());
+  return tokenForStringExpression(source, expression);
 }

 htmlTemplates.noteUri(expression);


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] Re: Make form event getTypes public. (issue1582803)

2011-10-27 Thread Stephen Haberman

 Sadly, Ray has left!

:-(

 You can definitely still assign reviews to whomever you think is most
 appropriate, but add me to the review if you're not getting a
 response, and I'll make sure it gets some attention.

That's great, thanks, Rajeev.

I have a few that have been pending; might send an email about them to
see if they can get to the right people. Some of them are pretty
trivial, so are perhaps more annoying than they are worth. But I think
would be nice to see go in. I'll do that soon.

- Stephen

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] Announce: GwtQuery 1.1.0

2011-10-27 Thread Ray Cromwell
Awesome job Manuel, taking this project from a proof of concept to a
rock solid library!

-Ray


On Wed, Oct 26, 2011 at 10:38 AM, Manuel Carrasco Moñino
man...@apache.org wrote:
 The GQuery team is proud to announce the version 1.1.0 of the library.

 We have been working hard in order to fix many issues and to achieve a
 closed jQuery API.

 The new release includes new features like the jQuery Ajax API, Data
 binding to easily manage json and xml data, better interaction with
 gwt widgets, and improved documentation.

 You can see the full list of features in the presentation given in The
 RivieraDev last week in France [1] or taking a look to the project
 wiki pages [2]

 [1] 
 http://www.slideshare.net/dodotis/gquery-a-jquery-clone-for-gwt-rivieradev-2011
 [2] http://code.google.com/p/gwtquery/w/list


 Thanks so much to the people sending issues, testing, and using the library.

 - GQuery Team

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors