The method is not yet implemented. For now you have to use normal JSNI.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
GWT trunk supports Lambda, method references, static default methods in
interfaces and intersection casts.
It does not contain any Java8 API emulations so far but something like
button.addClickHandler((e) - Window.alert(click)); should work.
To enable Java8 you have to use the -sourceLevel
There is a project https://code.google.com/p/gwt-syncproxy/ that allows
calling GWT-RPC from plain java, however I have no idea how well it works.
Generally I would probably create a REST service that delegates to the
GWT-RPC implementation and then call the REST service from Java. That way
Nice one!
-- J.
--
You received this message because you are subscribed to the Google Groups GWT
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the
ListEditActivity.mayStop() should not return a message if it is valid to
change list items.
mayStop() is normally used for dirty checking, e.g. someone edits an item
and has not yet saved the edits. In that case mayStop() should return a
warning message which allows the user to decide to
Am Donnerstag, 26. März 2015 18:57:40 UTC+1 schrieb Anton Mityagin:
Why it's look like a design problem?
Can I create ActivityManager with CachingActivityMapper
and FilteredActivityMapper?
Somthing like this:
public
Feel free to open a bug for it.
Do you mean open bug over there
https://code.google.com/p/google-web-toolkit/issues/list?cursor=google-web-toolkit%3A6794
?
Yes.
--- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
Hi,
whats the current situation of adding Java8 emulations to GWT?
I would like to fix the current emulation of @FunctionalInterface (wrong
package and missing imports), add java.util.Optional[Int|Long|Double]
emulation and like to see java.util.function interfaces in trunk committed.
That
I think we make run presubmits with Java 8.
Ok but then it is still with sourceLevel 1.7 by default. Here [1] is a
presubmit log from february that complains about lambda, default methods
and static interface methods.
But that is just job setup in Jenkins. Its more interesting how to
*cellTable.addColumnStyleName(1, hide); // added stylename to the Column
with index 1*
*CSS:*
Added this class in stylesheet
* .hide* {
display: none;
}
Hopefully it is a normal CSS file and not a CssResource? Check your
browsers dev tools to see what is going on with your
Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels
+ widgets?
HTMLPanel has its own HTMLPanelParser used by UiBinder which makes mixing
HTML + Widgets possible, so yes it is kind of hardcoded.
-- J.
--
You received this message because you are subscribed to the
I see. On the col element you need to use visibility:collapse to hide
the entire column. However browser support is pretty poor for it, seems to
only work well in Firefox.
The other thread you have linked pretty much has all information available
to solve your issue. Basically you have to
Create a file Dtos.gwt.xml in de.backend package and add source
path=dtos / to it. Alternatively you can put the file into
de.backend.dtos and then use source path= /. You can then inherit that
module in your App.gwt.xml.
Keep in mind that GWT needs source files so your backend dependency
AFAICT closure stylesheets does not allow disabling CSS linting so GWT
can't do anything about it.
https://code.google.com/p/closure-stylesheets/#Linting
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this
If you apply the correct caching headers there is only minimal overhead on
each request because the browser first checks if a new version on the
server is available and only if it is available it will download the new
version. Otherwise it will continue to use the already cached version.
A lot
sorry for being off-topic but where can i find current 2.8.0 snapshot jars?
i found this repository
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/
but it does not contain any jars.
The repository is correct but
Nope. I have download gwt 2.7 sdk and setup with my project.
I have already gwt plugin installed in eclipse as till now I am working
with gwt 2.5.
When I have setup gwt 2.7, it throw this error.
Can you tell me what is problem here?
The Google plugin for Eclipse reads the GWT version
These outputs are normal when you enable DEBUG log level. It basically
shows you what GWT does during deferred binding rules matching. Yes its a
lot of output.
Generally as your app grows you also have to adjust the heap memory during
compilation from time to time. The -localWorkers option
I don't think that you can change it for now. Maybe via a custom linker,
not sure, but that would be a bit more work anyways.
As a workaround you can reconfigure your VM so you can directly access it
without forwarding, e.g. use a bridge instead of NAT.
-- J.
--
You received this message
Sounds like you should try updating the Google Eclipse Plugin.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I see on Windows, if run as web application normally within the helping
of gwt developer plugin, after I run my project, then I edit my codes, just
refresh the browser and everythings will change follow my code changing,
it's so convenient
Super Dev Mode works the same if you use GWT
Next release will be called 2.8. Meeting minutes of the Steering group
regarding the release:
https://docs.google.com/document/d/1g6Ro3RbrOlD4RxqtWUv86wwXVSyD0uSFOO3-LnR9mGc/edit
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
GWT packages Apache Xerces 2.11 into gwt-dev.jar but in your class path is
a different version (maybe an older one) before the gwt-dev.jar class path
entry. This causes GWT to use a Xerces version that has a different API for
org.apache.xerces.dom.ElementNSImpl.setUserData() which causes your
I'm not sure that's quite going to do what I need - I'm taking advantage
of the FlexTable's ability to have a cell span multiple rows. My table has
four columns. The first three are filled on create, but the data in the
fourth column is dynamic and changes based on buttons (and spans
I guess you can change the return type to SafeUri and use
UriUtils.fromSafeConstant(HOME_PAGE) inside NameTokens.getHomePage()
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails
At least the template stuff kind of sounds like Errai UI. See html files
in
https://github.com/errai/errai-tutorial/tree/master/src/main/java/org/jboss/errai/demo/client/local
-- J.
--
You received this message because you are subscribed to the Google Groups GWT
Contributors group.
To
First you must send correct HTTP caching headers for all *.nocache.* files
so that the browser (or any other caching proxy) first checks if a new
version of that file is present on the server before using a locally cached
version. That way you do not need to clean any browser caches.
Next when
I'm curious if anyone knows, what is 10KB, percentage wise, vs the size of
the average GWT project? I don't know if the one I work with is average or
unusual weighing in at 7.2MB. I'm wondering if my perspective is skewed.
I guess that question is irrelevant. You will always have small
What you are asking for is simply not possible in a reliable way under the
requirement that old css syntax needs to be converted to gss syntax to
avoid producing compile errors when activating GSS for a project.
When I give you (which is hopefully similar to your use case):
@Source({
If I understand you correctly, I could be able to mix css and gss files by
using the correct extension. In case it concerns a css file, the gss
mechanism will sue the css2gss converter to create the gss file before
passing it to to the closure compiler. But that is what I am doing, so
Because GWT can not convert it on a file-by-file basis.
Why not ?
I have already said it before: in case of old css a constant might be used
in one file but is defined in a different file. In case of gss you might
use a @mixin in one file but that @mixin is defined in a different file.
You can't do that in GWT module xml files.
Instead of two files I would manage two branches in GIT: one that is
compatible with 2.6.1 and one that works with 2.7.0. Once you do not need
2.6.1 support anymore you can get rid of that branch.
-- J.
--
You received this message because you are
If you have a mixture of *.css and *.gss files referenced in @Source then
you can not convert the css files one by one because a css file might not
contain @def rules if they are defined in a different file. As you must
also honor css rule ordering the only right thing to do is to merge all
Ok put differently:
When you enable GSS then GWT will use the GssResourceGenerator which
accepts valid GSS and hands it over to the closure stylesheets backend to
produce the final css output. Your css files could contain CssResource
specific extensions like @def, conditionals, sprites, etc.
The update site is outdated, you can download GWT 2.7 from gwtproject.org
and manually add it to Eclipse through Eclipse Settings - Google.
GWT Designer is not maintained by the GWT team at Google and currently GWT
Designer does not work with newer GWT versions. From a GWT point of view
GWT
Please try GWT 2.8-SNAPSHOT.
If I remember correctly there were some commits regarding permutation
properties and SDM recompiles after 2.7 has been released.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this
What does does not work anymore mean? The exception does not have a stack
trace? Or a wrong stack trace? Or you can't send it to the server anymore?
Or something else?
Given that emulated stacks are generated by the GWT compiler it might be a
regression bug, but you have to be more specific
1. Application does not load initially as the IE Browser opens in IE
10 Compatability View Mode.
Use !DOCTYPE html at the top of your html page that loads the app.
1. The application loads successfully once I change the Browser Mode
to IE10. At this point if I CLICK on
The panel is located in an UIBinder with a HTMLPanel as root. So I used
getParent().getOffsetHeight().
Any ideas why this is not exactly the client height?
clientHeight includes padding
offsetHeight includes padding, borders and scrollbars
And why does the panel with the CellList
Instead of GWTShell use com.google.gwt.dev.DevMode
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email
to google-web-toolkit+unsubscr...@googlegroups.com.
What's the best way to include your PR (
https://github.com/google/dagger/pull/119) in a project?
Its a branch in my dagger fork that you can simply build and install into
your local repo: https://github.com/jnehlmeier/dagger/tree/gwt-integration
-- J.
--
You received this message
Thanks Jens. I still have the 2nd error Unknown argument: -out
The DevMode class should show you all valid arguments and the description
should tell you which one to choose as a replacement. I don't know anything
about GWT 1.7, but I assume DevMode -war is probably the same as GWTShell
You need to add the generated sources as Eclipse source folder to make them
usable in Eclipse,
e.g.:
http://stackoverflow.com/questions/7160006/m2e-and-having-maven-generated-source-folders-as-eclipse-source-folders
Maybe the above also fixes the gwt:compile class path issue.
For successful
I started migration today on a 300 KLOC project and all CSS files had been
converted without any major issue using the Css2Gss tool. The only exotic
issue I had was a NullPointerException for *.css files that do not have any
content:
- The big advantage of dynamic internationalization to me, is that I can
store my translations in a database, and update texts without the need of
stopping servers to deploy a new compiled version of my application.
Not sure if its that big of an advantage. IMHO translations rarely
You should use SuperDevMode.
Development of classic DevMode has stopped because browsers have started to
remove required plugin APIs.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop
Try adding
-Dgwt.watchFileChanges=false
to your JVM parameters. This will disable file watching which sometimes
does not work correctly. I had to do that for Mac OS as SDM sometimes
thought that no files had changed.
-- J.
--
You received this message because you are subscribed to the
Are you sure you deploy the app.nocache.js file generated by SDM? If you
have done a production compile in the mean time then you might have
deployed a wrong one. Try to delete any existing ./war/module name folder
and restart SDM to give it a clean start. Once it is started you can deploy.
when you look for the GWT Showcase code, have a look at the github sources:
https://github.com/gwtproject/gwt/tree/master/samples/showcase/src/com/google/gwt/sample/showcase
And as the showcase sample app is part of the GWT SDK distribution download
you can simply import it into your IDE.
Thank for your response. I used to get Maven as gwt version 2.4. But I
changed gwt version as 2.6.1 and than I'd have this problem. But I created
new project on 2.6.1 without Maven and try it. there was no any problems.
Does it have any problem at the Maven version for 2.6.1?
Do you use
gwt-maven-plugin:*2.6.1*:compile (default) @ com.ibank.myproject.test ---
[INFO] Loading inherited module 'com.ibank.myproject.test.Test'
[INFO]Loading inherited module 'com.ibank.myproject.framework.ui'
[INFO] [ERROR] Unexpected error while processing XML
[INFO]
GeneratorExt has been renamed to IncrementalGenerator. So you have to
update your own generators that extend GeneratorExt and any library that
also uses GeneratorExt.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe
The exception itself is pretty clear: GWT-RPC checks if a GWT-RPC request
has the HTTP header Content-Type: text/x-gwt-rpc. If GWT can not find
that header or the header has no value then it throws the above exception.
So in your setup something is messing up that HTTP header. So I guess you
Thanks for your info. I clean the war/client dir and then launch SDM but
still the launch page http://127.0.0.1:/module.html still cannot load
client/module.nocache.js file although the module.nocache.js file is really
under war/client/module.nocache.js. This is Tomcat server, does
1. XxxApp/src/com/acg/xxx/gwt/public
Seems like the best bet because all public resources are copied to the GWT
compilation output folder automatically.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from
The browser does this and not GWT. You have to provide valid HTML otherwise
the browser will try to fix your broken HTML by rewriting it. Otherwise you
must probably use a XHTML doctype.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
I tried to use GWT 2.7 SDM with Tomcat server. From Eclipse, I launched
our app launcher file used to work with GWT 2.6 Dev mode, and so now with
GWT2.7 it becomes SDM by default.
The initial compilation is OK and code server starts fine and our app web
server (using GWT RPC) starts
A simple eclipse project dependency to foo should be enough.
As the error says can not find source it does mean that the GWT compiler
has actually found your foo.gwt.xml that you have inherited otherwise the
compiler would complain about a missing GWT module. At work we have a
common project
Is Chrome Dev Tool the best way to detect Memory Leaks in SuperDevMode?
Given that SuperDevMode produces lots of code that can slow down browser
DevTools, Chrome is probably your best bet and IMHO it is also pretty
intuitive.
-- J.
--
You received this message because you are subscribed
What do you mean with server side code compiled into a GWT module? GWT
modules and server side code are separate things.
I guess you have to be more specific. Also keep in mind that GWT can only
compile a subset of JRE classes unless you provide additional super-source
/ emulation.
-- J.
--
is there any specific reason not to make HistoryImpl accessible?
Its good practice for a library to hide implementation details because you
do not want developers to accidentally or knowingly depend on these
details. I am pretty sure other features of GwtMockito look equally ugly,
How can I stop Leeroy from spamming a Gerrit
CL? https://gwt-review.googlesource.com/#/c/10243/
Seems like the build server is continuously trying to execute gwt.presubmit
for that CL.
-- J.
--
You received this message because you are subscribed to the Google Groups GWT
Contributors group.
I guess you have to make your Foo class public. While code examples in the
doc uses default visibility I guess it is just because of laziness during
writing the doc ;-)
Here is a recent commit that enforces public visibility:
https://gwt-review.googlesource.com/#/c/11490/
Well and as already
This problem already occurred last year and Thomas had explained why (See
mail below). I've just set verified:-1 on the concerned patches in order to
stop Jenkins to do the presubmit check every 1h30.
I guess Monday, Manolo or Daniel will be able to fix that.
Thanks, and thanks for the
Is there a workaround for getting the stacktraces to show up without being
obfuscated?
If you use Chrome 40 and use the UncaughtExceptionHandler I linked in the
issue (comment #4) then you do not need anything regarding stack traces in
your module xml. Any exception you do not catch will
Should be the JRE/JDK you have configured for your project and not the one
you launched Eclipse with.
I am on Mac OS and use Oracle JDK 1.7 and haven't seen any gwtar issues
yet. Maybe you accidentally have two different GWT versions on classpath?
But as Thomas already said, if you have
Its a JVM parameter for defining a system property and not a GWT
compiler/DevMode parameter.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
gwtar support has already been deleted in GWT trunk / 2.8-SNAPSHOT. So if
you skip 2.7 and use a 2.8-SNAPSHOT build you should not have any issues.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and
If you use GWT 2.7 Final release this should be fixed:
https://gwt-review.googlesource.com/#/c/9661/
https://code.google.com/p/google-web-toolkit/issues/detail?id=8716
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe
We are currently using a GWT trunk build from 5. Jan 2015 and don't see
this issue. So either a recent commit causes that behavior or your project
setup is broken.
-- J.
--
You received this message because you are subscribed to the Google Groups GWT
Contributors group.
To unsubscribe from
The js() method does not exist yet (not even in GWT trunk).
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
You can use source path= /. By default GWT uses source path=client /
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
but I can't figure out how to translate @media (max-width: 500px) from
a normal css file.
Just use it directly.
@media (max-width: 500px) {
... css classes...
}
in your *.gss file should work without issues.
-- J.
--
You received this message because you are subscribed to the
Put a SimplePanel in your DockLayoutPanel and then set the ActionBar into
that SimplePanel using SimplePanel.setWidget().
In your setActionBar() method call SimplePanel.setWidget(newBar) to replace
the old ActionBar with the new one.
So you basically put a container widget into your
One of the features of GWT is its abstraction over the browser so that the
GWT-Java layout code may act differently depending on the browser brand and
version. If we use GWT as a JavaScript replacement only, don't we lose
that benefit?
That benefit gets less and less important as HTML
A compiled GWT app is just HTML + JS, so nothing special. That means you
can simply upload it to a web server and it will run. However you need to
take care of the same-origin-policy restriction in browsers when doing your
REST requests to the backend. How you do that kind of depends on how you
This issue was fixed when i switched from 2.7.0 to 2.8.0-Snapshot .
However, in the snapshot, beans which have only primitives and Strings
work. But, beans that have any collections ( lists / maps) don't work,
giving a similar error as this.
At work we use SDM with incremental compile,
Is there a way to upgrade to the trunk version via maven?
SNAPSHOT builds are currently disabled. However you can use
https://github.com/manolo/gwt-snapshot/raw/master/ as a temporary maven
repo.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google
AutoBeanMyBean ab = AutoBeanCodex.decode(factory, MyBean.class, response.
getText());
InitResult result = ab.as();
ab.as() returns MyBean and not InitResult.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this
It has already noticed that the landing page of gwtproject.org is not
friendly for people who know nothing about GWT:
https://github.com/gwtproject/gwt-site/issues/38
So this needs to be updated. Maybe some SEO work can also be done to
improve ranking when searching for Java to JavaScript
On 15.11.2014 a commit from Ray changed JThisRef.getClassType() to return a
JDeclaredType and not a JClassType.
Your GWT searches for this method with return type JClassType. Seems like
you have not correctly updated your dependencies and an old GWT is on class
path as well.
-- J.
--
You
You have to use SuperDevMode. The browser plugin does not work in newer
browsers anymore.
Search this group, there are plenty of threads about it.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and
You should revert all your code changes done in 1-3. All code is
intentional and the real problem is the Google Plugin for Eclipse which
does not understand JSNI shortcut notation and has some trouble with the
UiBinder test files. You can safely ignore these errors.
If these errors bug you
we are intentionally not deploying right now, but we will eventually sort
this out. I am sorry but we do not have an ETA for that.
Why is it intentionally and why will it only eventually be sorted out?
Whats going on?
-- J.
--
You received this message because you are subscribed to
It looks like I've already a dependency to guava-16.0.1-rebased.jar in the
trunk/dev/build.xml (did not change anything except the jdt-things).
Here is the full build.xml:
https://gist.github.com/foxylion/93c69dcc40a0c0e3a95c
Did I miss something?
Have you updated the SVN tools checkout
Thanks Jens, this was the problem. Looks like I missed to change it the
second time.
Eclipse has also published a new build of the jar in case you want to use
it:
https://repo.eclipse.org/service/local/repositories/eclipse-staging/content/org/eclipse/jdt/org.eclipse.jdt.core/3.11.0
Your implementation does not have same behavior as the original GWT one.
GWTs implementation resets hours, minutes, seconds and milliseconds while
your implementation only resets milliseconds AND you reset them wrong as
well :) For negative getTime() your calculation moves time to the next
2.7 uses SuperDevMode by default and uses incremental compilation which
makes SDM actually usable in larger projects. Our recompile times are
between 3-10 seconds depending on project size and the amount of files
changed between recompiles.
-- J.
--
You received this message because you are
Seems like you can not do \d{0,15}+ in JavaScript. You have to wrap it in a
group (\d{0,15})+ or remove the plus quantifier.
.matches(^\\d{0,15}(\\.\\d{1,2})?$)
.matches(^(\\d{0,15})+(\\.\\d{1,2})?$)
You can easily test this using https://www.regex101.com/#javascript (you
need to change the
I am not sure if that also applies to GWT 2.7 as I am using GWT trunk but I
had to delete SDM caches to let changes to logging configuration take
effect. When SDM starts it tells you which workDir it uses for compilation.
Next to that workDir SDM also creates a cache directory named
Probably better asked on a restyGWT forum or on their Github issue tracker.
But I guess you have to use java.util.Date on client and server or you have
to extend restyGWT so it knows how to map JsDate - Date.
-- J.
--
You received this message because you are subscribed to the Google Groups
Linkers are responsible for producing the final compilation output,
see: http://www.gwtproject.org/doc/latest/DevGuideLinkers.html
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving
Sadly (?!) I use intellij which doesn't compile on save.
IntelliJ has auto make. You can enable it in the compiler settings. You
might also need to File - Synchronize to make generated classes visible in
the IDE.
-- J.
--
You received this message because you are subscribed to the
From the official GWT documentation:
When querying the server, RequestFactory does not automatically populate
relations in the object graph. To do this, use the with() method on a
request and specify the related property name as a String:
RequestPerson findReq =
Much to our surprise the test show a quite large performance hit. For
example a simple test running three for loops inside each other took almost
50% longer with 2.7 then with 2.6.1.
What work are you doing inside these for loops? If these loops are empty or
only do local, useless work
Were you able to find a solution to this at all? I have been trying to
figure this out all week, but I am still stuck. When I try to extend
SuggestOracle and implement my own Oracle, I am having problems with some
of the methods being private and classes (PrefixTree) with default access
I would first blame Chrome if you use the dev channel of Chrome. Try beta
or stable channel and see if you still have issues. Also note that you can
not set break points in grey lines since they do not have source mapping
information.
-- J.
--
You received this message because you are
I don't think GWT will provide more advanced widgets in the future. The
problem is as soon as you start adding more advanced widgets, you will get
an endless list of use cases that users want to see on these widgets. So it
quickly becomes pretty work intensive but the GWT team at Google isn't
The Eclipse update site hasn't been updated with GWT 2.7 yet (for whatever
reason). Just download the SDK from gwtproject.org or through Maven.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop
If the code is dereferencing null it should always be an error, right?
Not really. Maybe a field becomes null while a server request is in
progress and when the request finishes the onSuccess callback tries to use
that field without any checks.
-- J.
--
You received this message because
801 - 900 of 2942 matches
Mail list logo