Transparent Dialog

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Transparent Dialog

Postby Giaros » Tue Dec 21, 2010 2:16 am

Hello,
I'm using GXT 2.1.1 and GWT Designer 7.4.0.

When I try to use Dialog the window appears transparent and if I look into the page I see strange css class with dollar characters like:
x-window$-ml
x-window$-tr
x-window$-tc

If I delete the '$' everything appear OK. Why GWT designer generate such strange class.

Here's the code of my GWT client:
final Dialog simple = new Dialog();
simple.setHeading("ALARM");
simple.setButtons(Dialog.CLOSE);
simple.addText(alarm.toHtmlString());
simple.setScrollMode(Scroll.AUTO);
simple.setWidth(700);
simple.setHideOnButtonClick(true);
simple.show();
Giaros
 
Posts: 6
Joined: Tue Dec 21, 2010 1:49 am

Re: Transparent Dialog

Postby Eric Clayberg » Tue Dec 21, 2010 8:40 am

I have no idea.

At minimum, I would suggest updating to GWT 2.1.1 and GWT Design 8.1.1 (v7.4 is old and no longer supported).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Transparent Dialog

Postby Giaros » Wed Dec 22, 2010 2:30 am

I switch to GWT Design 8.1 and GWT 2.1.0 and GXT 2.2.1.

But I got the following error when I execute Google->GWT Compile :
Compiling module com.alu.imc.r30.web.alarmlist.AlarmListModule
[ERROR] Unexpected
java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:338)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.<init>(JdtCompiler.java:174)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:616)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:193)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:390)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:275)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:299)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:529)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:156)
Giaros
 
Posts: 6
Joined: Tue Dec 21, 2010 1:49 am

Re: Transparent Dialog

Postby Giaros » Wed Dec 22, 2010 3:21 am

OK I resolved the GWT compile error (putting first my GWT libraries in the classpath) but I still have a transparent window and the strange css classes.

Any suggestions?
Giaros
 
Posts: 6
Joined: Tue Dec 21, 2010 1:49 am

Re: Transparent Dialog

Postby Eric Clayberg » Wed Dec 22, 2010 5:31 am

Without a test case, we can't provide much help.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Transparent Dialog

Postby Giaros » Wed Dec 22, 2010 5:57 am

Ok I got a an EntryPoint with a ViewPort.
In the ViewPort there is a Grid<myObject>.

When I double Click a row of the Grid the code that shows the dialog must be executed.

Do you need any further info?
Giaros
 
Posts: 6
Joined: Tue Dec 21, 2010 1:49 am

Re: Transparent Dialog

Postby Eric Clayberg » Wed Dec 22, 2010 6:41 am

Yes. An actual test case would be very useful. See...

http://code.google.com/webtoolkit/tools ... cases.html

Screen shots are always helpful as well.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Transparent Dialog

Postby Giaros » Fri Jan 14, 2011 1:16 am

Hello,
I tried out to reproduce the problem creating a new simple project but I can't.

It seems the problem is caused by some configuration in my project cause I created a new simple GWT Module and it occurs the same.

The only thing that I can say is that the problem occurs on GWT compilation to javascript because if I run the module in development mode everything is OK.

Here my simple module:
Code: Select all
public class Ciao implements EntryPoint {
   private Button clickMeButton;
   public void onModuleLoad() {
      RootPanel rootPanel = RootPanel.get();

      clickMeButton = new Button();
      rootPanel.add(clickMeButton);
      clickMeButton.setText("Click me!");
      clickMeButton.addClickHandler(new ClickHandler(){
         public void onClick(ClickEvent event) {
            Window.alert("Hello, GWT World!");
         }
      });
      
       Dialog d = new Dialog();
       d.setHeading("Exit Warning!");
       d.addText("Do you wish to save before exiting?");
       d.setBodyStyle("fontWeight:bold;padding:13px;");
       d.setSize(300, 100);
       d.setHideOnButtonClick(true);
       d.setButtons(Dialog.YESNOCANCEL);
       d.show();
      
   }

In attach the screenshots with firebug info
Attachments
TransparentProblem.GIF
The transparent dialog with Firebug info that shows the strange CSS classes
TransparentProblem.GIF (67.26 KiB) Viewed 345 times
Giaros
 
Posts: 6
Joined: Tue Dec 21, 2010 1:49 am

Re: Transparent Dialog

Postby Eric Clayberg » Fri Jan 14, 2011 5:11 am

Sorry, but I have no idea. I don't see anything here that appears to be GWT Designer related.

There is not much we can do without a reproducible test case in any case.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests

cron