Re: GWT app as includable javascript library

2016-04-20 Thread Michael Zhou
Yes. The SSO linker is what you want. See my example 
at: 
https://github.com/google/closure-compiler/blob/68002f860cc461daf04c089803fdff865d256e5e/src/com/google/JsComp.gwt.xml#L27.
Credit to Greg 
from: 
https://groups.google.com/d/msg/google-web-toolkit/D4_pJY-62x0/r555EF3YCQAJ.

On Thursday, April 21, 2016 at 12:55:47 AM UTC-4, Dmitry Skavish wrote:
>
> hey everyone,
>
> I am trying to understand how can I package my small gwt app as javascript 
> library which can be used in other javascript code. 
>
> Basically I need to build a bunch of java code into a single .js file 
> which I can later include in a regular html page with 

Re: Compile a Java application into a single JavaScript file?

2016-04-20 Thread Michael Zhou
Thanks Greg, 



did the trick.


On Monday, December 14, 2015 at 3:13:56 AM UTC-5, Greg wrote:
>
> You could use Single Script Linker instead of default Cross Site IFrame 
> Linker by adding this into your module.gwt.xml:
>
> 
> 
>
> You have to collapse all properties because sso linker doesn't generate 
> permutation selection script. After compilation you should get single js 
> file which contains all the logic for different browsers / languages etc. 
> Alternatively you could explicitly specify properties but it would mean you 
> would get js file for single browser / language.
>
> On Sunday, December 13, 2015 at 2:58:21 AM UTC+1, Michael Zhou wrote:
>>
>> I have used GWT to compile a Java application (Google's Closure Compiler 
>> ) into a GWT application 
>> .
>> Currently, GWT outputs a .cache.js file and a .nocache.js file. I wonder 
>> if it's possible to output a single .js file instead of two?
>> We might switch to J2CL when it's ready, but just in case it's possible 
>> to do so with GWT 2.8.
>>
>

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


Re: GWT app as includable javascript library

2016-04-20 Thread Vassilis Virvilis
yes definitely.

With jsinterop it is supposed to be straight forward but even with the
older JSNI method it is easy enough if you have a small number of methods
to export.

Let's say you want to export a method from your java code. The object
hosting the method is MyJavaObject and the method is int
myJavaMethod(String str, int index); The js method is myJsMethod


public static native void exportJSNI(MyJavaObject that) /*-{
$wnd.myJsMethod = $entry(function(str) {

th...@com.my.package.MyJavaObject::myJavaMethod((Ljava/lang/String;Z)(str,
index);
});

//... more exports if you like

   // another tip
if the page has defined a callback - use it to notify the page that your
code is ready to be used
if (typeof $wnd.onMyJavaObjectLoad === "function") {
$wnd.onMyJavaObjectLoad();
}
}-*/;




On Thu, Apr 21, 2016 at 7:54 AM, Dmitry Skavish  wrote:

> hey everyone,
>
> I am trying to understand how can I package my small gwt app as javascript
> library which can be used in other javascript code.
>
> Basically I need to build a bunch of java code into a single .js file
> which I can later include in a regular html page with 

GWT app as includable javascript library

2016-04-20 Thread Dmitry Skavish
hey everyone,

I am trying to understand how can I package my small gwt app as javascript
library which can be used in other javascript code.

Basically I need to build a bunch of java code into a single .js file which
I can later include in a regular html page with 

Re: GWT for Web Development (again)

2016-04-20 Thread Dmitry Skavish
try services like https://prerender.io/
it works for us

On Mon, Apr 18, 2016 at 4:14 AM, Thomas Lefort 
wrote:

> Hi,
>
> sorry to revive this old thread. I am having issues with SEO and GWT.
>
> I use Google Webmaster Tools and I can see that my web application is
> crawled fine when using the "Fetch as Google" tool. However this is not
> reflected in the indexation, structured data detection, etc... For instance
> my keywords are "loading" (sic) and a couple more from my static page
> title. I also added structured data which is not picked on. None of the
> dynamically loaded data seems to be "seen".
>
> I must say it was a series of hit an miss until I managed to get my web
> application crawlable (including the fallback permutation missing), so this
> could explain the current indexation.
> However, it's been a week now (I also resubmitted sitemap and indexing
> after "Fetch as Google") but still no update in the data scrapped, as far
> as I can tell.
>
> Has anybody experienced such problems before? I am missing something?
> Should I just be more patient (that's more a question for the Google
> Webmaster Tools I guess ;-)).
>
> Thanks!
>
>
> On Wednesday, 31 December 2014 15:39:29 UTC+1, Joseph Lust wrote:
>>
>> Can you cite an example metric of the "SEO penalty" you're experiencing?
>> For more than a 18mo now, if you use Google Webmaster Tools
>>  and Fetch as
>> Google, you'll see your fully rendered GWT page with the async content
>> loaded and displayed. Given this is the Google spider, it follows that this
>> is what's being used to index your site and that GoogleBot understands your
>> GWT app just fine. Note: this is for sites I manage that don't even
>> implement *escape fragment*.
>>
>> -Joe
>>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dmitry Skavish

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


Re: GWT Material Design

2016-04-20 Thread Shadab Gaur
Hi Kevin,

I am facing a strange issue in MaterialDesign SideNav bar for FLOAT type.

Step1: I flipped the iPad screen (to test on smaller screen) and clicked on 
side menu bar and then clicked somewhere else on the screen to hide the 
menu bar
Step2: Flipped the iPad screen again (to make the screen bigger) and now 
the Side Nav bar goes disappear automatically and never comes

Same behavior I noticed on google's demo as well. Please refer the 
following link to test. This side nav also behaving the same as I am facing 
issue in my application.

http://gwtmaterialdesign.github.io/gwt-material-patterns/snapshot/#google_inbox
  
Really appreciate if you help to fix this issue.

Thank you very much for your time.

Best Regards,
Shadab
 

On Monday, April 13, 2015 at 1:15:33 PM UTC+10, mark kevin ringor wrote:
>
> Hi to all we release an early version of GWT Material as of:
> Version 15.4.15 
>
>- GWT Material Showcase
>   - Parallax
>   - Material Weather
>   - Login UI
>- Material Collapsible Popout
>- Material Bottom Sheets
>- Side Bar nav fixed with overflow auto on small devices
>- Apache License 2.0 Information Added
>- Donate Button added to support the development of GWT Material
>
> Best Regards,
> kevzlou7979
>
> On Friday, February 6, 2015 at 1:51:20 PM UTC+8, mark kevin ringor wrote:
>>
>> Hi to all,
>>
>> We are a team of GWT Developers to implement the GWT Material Design with 
>> the help MaterializeCSS (http://materializecss.com/). We
>> are doing our best to integrate the Features to be able to integrate 
>> inside GWT Applications. 
>>
>> Anyone interested are well appreciated to join us.
>> We have deployed a demo material here: http://gwt-material.appspot.com/.
>>
>> Hope you like it.
>>
>> Regards,
>> Kevin
>>
>

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


GWT MaterialDesign Side Navigation bar doesn't work properly for FLOAT type

2016-04-20 Thread Shadab Gaur
Hi All,

I am facing an issue for GWT MaterialDesign SideNav. For FLOAT type 
SideNav, 

I flipped the iPad screen to test my navigation bar on small screen
After flipping, clicked on somewhere else on the screen
Filpped the screen again and now the sideNav bar goes disappear on big 
screen.

This issue is there even in google's demo also (please refer the below link)
http://gwtmaterialdesign.github.io/gwt-material-patterns/snapshot/#google_inbox

This side navigation bar also have the same issue. 

Could anyone help me please to get it resolve.

Thank you very much.


Best Regards,
Shadab

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


Re: Struggling with gwt 2.8/JsInterop and jQuery, help please!

2016-04-20 Thread Hristo Stoyanov
Jens,
Thanks .. this seems to work:





@JsType(isNative = true, name = "Checkbox", namespace = "checkbox")
public class SUICheckbox extends JQueryContext {
...
   
 @JsType(isNative = true, name = "Object", namespace = GLOBAL)
public static class SettingsClass {
@JsProperty public Functions.Func onChecked;
}
}



On Wednesday, April 20, 2016 at 3:16:31 PM UTC-7, Jens wrote:
>
> I think your Settings class should have @JsType(isNative = true, 
> namespace = GLOBAL, name = "Object") to make it a JavaScript object 
> literal. 
>
> -- J.
>

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


SDM Codeserver error in SNAPSHOT

2016-04-20 Thread apanizo
Hi all,

I have seen a couple of mails reporting SDM errors in this group but I do 
not think they are related.

I am using GWT's  latest snapshots and specifically maven 
'gwt:run-codeserver' for running my SDM. And since this commit

https://github.com/gwtproject/gwt/commit/525676500a5c876139fa0aaa2d349cdc94942e28

SDM is not running anymore.

Yes, the commit works. now instead of seeing my 'hostname:9876' I see 
'myip:9876', but when I open the browser... woops! Nothing there...

What am I missing?

Note: in my pom.xml I use the bindAdress 0.0.0.0

Thanks in advance,

Adolfo.


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


Re: Struggling with gwt 2.8/JsInterop and jQuery, help please!

2016-04-20 Thread Hristo Stoyanov
Jens,
So how do I create an instance of it?

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


Re: Struggling with gwt 2.8/JsInterop and jQuery, help please!

2016-04-20 Thread Jens
I think your Settings class should have @JsType(isNative = true, namespace 
= GLOBAL, name = "Object") to make it a JavaScript object literal. 

-- J.

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


Re: Organizing project files with UIBinder

2016-04-20 Thread Thomas Broyer
This all depends how you do MVP; see tutorials on GWT website for various 
flavors; one doesn't involve HasText / HasClickHandlers.

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


Struggling with gwt 2.8/JsInterop and jQuery, help please!

2016-04-20 Thread Hristo Stoyanov
Hi all,

I need to interface with JQuery API that looks like this:

http://semantic-ui.com/modules/checkbox.html#/examples

$('.callback.example .checkbox') .checkbox() .first()
.checkbox({ onChecked: function() {...}, onUnchecked: function() {...}, 
onEnable: function() {...}, onDisable: function() {...}, onDeterminate: 
function() {..}, onIndeterminate: function() {...}, onChange: function() 
{...} });
===

I am trying to use JsInterop and getting a weird JS error, because the 
jQuery API above does not like the SUICheckbox.Settings class, which I 
thought would be just a map of callbacks. *Any hints? How do you do tackle 
this with JsInterop?*

Here is the JS error:
===
com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot 
convert undefined or null to object at Unknown.hasOwnProperty(Unknown@-1) 
at 
Unknown.jQuery.extend.isPlainObject(http://127.0.0.1:8080/xxx/jquery.js@13:289)


Here is the GWT usage code:
===
SUICheckbox.Settings settings = new SUICheckbox.Settings(); 
settings.onChecked = ()->Console.log("Checked: "+this.toString()); 
settings.onUnchecked = ()->Console.log("Unchecked: "+this.toString()); 
settings.onEnabled = ()->Console.log("Unchecked: "+this.toString()); String 
checkboxSelector = "#"+planChoices.getElement().getId()+" .checkbox"; 
SUICheckbox checkBoxContext = 
JQuery
.$(checkboxSelector) //This is fine!
.checkbox(settings); //BOOM error!!!


Here is the GWT JSInertop wrapper code:
==
@JsType(isNative = true) public class JQuery { @JsMethod(namespace = 
JsPackage.GLOBAL) public static native JQueryContext $(String selector);
}

@JsType(name = "jQuery", isNative = true, namespace = JsPackage.GLOBAL) 
public class JQueryContext { public native SUICheckbox 
checkbox(SUICheckbox.Settings setings); }
public interface Functions {
@FunctionalInterface  @JsFunction // No Return Type
interface Func {void call();}
}
@JsType(isNative = true, name = "Checkbox", namespace = "checkbox") public 
class SUICheckbox extends JQueryContext{ @JsType public static class 
Settings { @JsProperty public Functions.Func onChecked; @JsProperty public 
Functions.Func onEnabled; @JsProperty public Functions.Func onUnchecked; } }




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


Couldn't load AppFrontEnd from Super Dev Mode

2016-04-20 Thread Farrukh Shakil
My GWT+Maven setup stopped working after upgrading to 2.7. I am running 
both GWT+MAVEN (gwt:run)  and GWT+MAVEN+Eclipse (as google web application) 
using built in jetty and getting this popup box when i bring up the GWT 
process.

Couldn't load AppFrontEnd from Super Dev Mode. server at http:/.. 
Please make sure this server is ready.


I have tried following things

1. Delete *.nocache.* file from target/[SNAPSHOT]/AppFrontEnd   (Does not 
work ,the application does not show up any more)
2. Run with classic dev move in Eclipse   (Does not work and i get a 
slightly different popup but basically asking same thing recompile)
3. mvn clean package and then gwt:run  (Does not work)
4. mvn clean package gwt:compile  and then gwt:run  (Does not work)
5. gwt:run and once the process is up then "gwt:compile  
-Dgwt.compiler.force=true" 
  (Works, the UI shows up fine but code changes are not detected anymore or 
no hot swapping hence useless)










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


Re: SDM not running any more!

2016-04-20 Thread marian lux
Fixed after removing the following lines in my pom.xml


com.google.gwt
gwt-user
${gwtversion}


com.google.gwt
gwt-dev
${gwtversion}
provided


this caused the problem (on GWT 2.8.0-SNAPSHOT) that jetty version 9 was 
used instead of version 8.


Am Mittwoch, 20. April 2016 12:50:26 UTC+2 schrieb marian lux:
>
> Note: I use Eclipse (4.5.2) with GWT Plugin.
>
> Am Mittwoch, 20. April 2016 12:49:03 UTC+2 schrieb marian lux:
>>
>> When I try tor get SDM on my GWT project running, I always get this 
>> output on console:
>>
>> Runing CodeServer with parameters: [-noprecompile, -port, 9876, -
>> sourceLevel, 1.7, -bindAddress, 0.0.0.0, -launcherDir, /home/marian/
>> workspace_oha_mgwt/oha/target/oha-1.0-SNAPSHOT, -logLevel, INFO, at.mlux.
>> oha]
>> Super Dev Mode starting up
>>workDir: /tmp/gwt-codeserver-4503114881501533286.tmp
>>[WARN] Deactivated PrecompressLinker
>> 2016-04-20 12:42:24 INFO  log:186 - Logging initialized @3880ms
>>Loading Java files in at.mlux.oha.
>> Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty
>> .server.AbstractConnector: method ()V not found
>> at org.eclipse.jetty.server.nio.AbstractNIOConnector.(
>> AbstractNIOConnector.java:30)
>> at org.eclipse.jetty.server.nio.SelectChannelConnector.(
>> SelectChannelConnector.java:82)
>> at com.google.gwt.dev.shell.jetty.JettyLauncher.getConnector(
>> JettyLauncher.java:803)
>> at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.
>> java:729)
>> at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632)
>> at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054)
>> at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
>> at com.google.gwt.dev.DevMode.main(DevMode.java:413)
>>Module setup completed in 4594 ms
>> java.lang.NoSuchMethodError: org.eclipse.jetty.server.AbstractConnector: 
>> method ()V not found
>> at org.eclipse.jetty.server.nio.AbstractNIOConnector.(
>> AbstractNIOConnector.java:30)
>> at org.eclipse.jetty.server.nio.SelectChannelConnector.(
>> SelectChannelConnector.java:82)
>> at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:119)
>> at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:128
>> )
>> at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:91)
>> at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at com.google.gwt.dev.shell.SuperDevListener$1.run(SuperDevListener.
>> java:84)
>>
>>
>> No difference which GWT version I am using. 2.7.0 or 2.8.0-beta1.
>> GWT compile works.
>>
>> I think the jetty version is wrong but how to fix this?
>> I can add my pom if desired.
>>
>>

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


Re: SDM not running any more!

2016-04-20 Thread marian lux
Note: I use Eclipse (4.5.2) with GWT Plugin.

Am Mittwoch, 20. April 2016 12:49:03 UTC+2 schrieb marian lux:
>
> When I try tor get SDM on my GWT project running, I always get this output 
> on console:
>
> Runing CodeServer with parameters: [-noprecompile, -port, 9876, -
> sourceLevel, 1.7, -bindAddress, 0.0.0.0, -launcherDir, /home/marian/
> workspace_oha_mgwt/oha/target/oha-1.0-SNAPSHOT, -logLevel, INFO, at.mlux.
> oha]
> Super Dev Mode starting up
>workDir: /tmp/gwt-codeserver-4503114881501533286.tmp
>[WARN] Deactivated PrecompressLinker
> 2016-04-20 12:42:24 INFO  log:186 - Logging initialized @3880ms
>Loading Java files in at.mlux.oha.
> Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.
> server.AbstractConnector: method ()V not found
> at org.eclipse.jetty.server.nio.AbstractNIOConnector.(
> AbstractNIOConnector.java:30)
> at org.eclipse.jetty.server.nio.SelectChannelConnector.(
> SelectChannelConnector.java:82)
> at com.google.gwt.dev.shell.jetty.JettyLauncher.getConnector(
> JettyLauncher.java:803)
> at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.
> java:729)
> at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632)
> at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054)
> at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
> at com.google.gwt.dev.DevMode.main(DevMode.java:413)
>Module setup completed in 4594 ms
> java.lang.NoSuchMethodError: org.eclipse.jetty.server.AbstractConnector: 
> method ()V not found
> at org.eclipse.jetty.server.nio.AbstractNIOConnector.(
> AbstractNIOConnector.java:30)
> at org.eclipse.jetty.server.nio.SelectChannelConnector.(
> SelectChannelConnector.java:82)
> at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:119)
> at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:128)
> at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:91)
> at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at com.google.gwt.dev.shell.SuperDevListener$1.run(SuperDevListener.
> java:84)
>
>
> No difference which GWT version I am using. 2.7.0 or 2.8.0-beta1.
> GWT compile works.
>
> I think the jetty version is wrong but how to fix this?
> I can add my pom if desired.
>
>

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


SDM not running any more!

2016-04-20 Thread marian lux
When I try tor get SDM on my GWT project running, I always get this output 
on console:

Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel
, 1.7, -bindAddress, 0.0.0.0, -launcherDir, /home/marian/workspace_oha_mgwt/
oha/target/oha-1.0-SNAPSHOT, -logLevel, INFO, at.mlux.oha]
Super Dev Mode starting up
   workDir: /tmp/gwt-codeserver-4503114881501533286.tmp
   [WARN] Deactivated PrecompressLinker
2016-04-20 12:42:24 INFO  log:186 - Logging initialized @3880ms
   Loading Java files in at.mlux.oha.
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.
server.AbstractConnector: method ()V not found
at org.eclipse.jetty.server.nio.AbstractNIOConnector.(
AbstractNIOConnector.java:30)
at org.eclipse.jetty.server.nio.SelectChannelConnector.(
SelectChannelConnector.java:82)
at com.google.gwt.dev.shell.jetty.JettyLauncher.getConnector(
JettyLauncher.java:803)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java
:729)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
at com.google.gwt.dev.DevMode.main(DevMode.java:413)
   Module setup completed in 4594 ms
java.lang.NoSuchMethodError: org.eclipse.jetty.server.AbstractConnector: 
method ()V not found
at org.eclipse.jetty.server.nio.AbstractNIOConnector.(
AbstractNIOConnector.java:30)
at org.eclipse.jetty.server.nio.SelectChannelConnector.(
SelectChannelConnector.java:82)
at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:119)
at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:128)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:91)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.gwt.dev.shell.SuperDevListener$1.run(SuperDevListener.java
:84)


No difference which GWT version I am using. 2.7.0 or 2.8.0-beta1.
GWT compile works.

I think the jetty version is wrong but how to fix this?
I can add my pom if desired.

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


Re: Missing class names in superdevmode

2016-04-20 Thread 'Klemens Schrage' via GWT Users
I haven't found the responsible "namer-code" by myself yet, I'll guess I 
have to live with the current display-scheme. 

If it's related to Chrome I'll be happy to investigate in that direction. 
Sadly I currently have no pointer which would lead me to this assumption.

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


Re: Organizing project files with UIBinder

2016-04-20 Thread Martinus van de Ruitenbeek
Hi, 

I also started using MVP and Polymer with UIBinder. Problem is, that 
Polymer does not have all the interfaces that vanilla GWT has to enable MVP 
and proper unit testing, for example HasText, HasClickListeners etc. How 
did you manage to implement MVP with GWT-Polymer? I am using 
vaadin-gwt-polymer-elements version 1.2.3.0 with GWT2.8beta1. 

Thanks!

On Tuesday, 15 December 2015 09:26:20 UTC+1, va...@ant.ee wrote:
>
> Thank you for response Luke,
>
>I am going to build project using Polymer UI elements and MVP. Thus 
> I have no option other than GWT 2.8.0 and GSS. CSS is not working for this 
> type of projects (or better to say - they work in auto conversion mode). I 
> am afraid that if I keep .java, .gss, .ui.xml files in the same packages 
> they become rather big. There is also kind of "scare" to mix different 
> types of files in JAVA packages. Shouldn't JAVA packages be only for .java 
> files and all the rest of the stuff -- somewhere at /resources?  This is my 
> main question.
>
>
> On Tuesday, December 15, 2015 at 5:43:09 AM UTC+2, Luke Last wrote:
>>
>> Here's my quick stab at these, hope it helps.
>>
>> 1. I've never seen this done differently, and personally I find it 
>> helpful to have them in the same package.
>> 2. UIBinder is only client side.
>> 3. UIBinder will work with classic CSS. You could also consider using 
>> CssResource (gss) or using gss embedded in UIBinder templates.
>>
>> On Monday, December 14, 2015 at 8:31:14 AM UTC-5, va...@ant.ee wrote:
>>>
>>> Hello all,
>>>
>>> I have read the chapter 
>>> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html 
>>> about GWT project layout, but still have some questions:
>>>
>>>1. View .ui.xml files are "by default" located at the same folder 
>>>where .java files are. Is it better to move them to some "resource" 
>>>package?  How to bind .ui.xml in corresponding composite .java if so?
>>>2. Going through UIBuinder example there is only "client" side that 
>>>is executed at client browser. Is server side remains pretty much the 
>>> same 
>>>as described at 
>>>http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html 
>>>? 
>>>3. If I have root .css (gss) at my WEB-INF -- will this resource be 
>>>accessible for all .ui.xml modules ?
>>>
>>> Thanks
>>>
>>

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