I don't understand your argument that the implementation would become
locked down because changing methods from private to protected is opening
it up, not locking it down. Can you give an example of what you mean? How
can this possibly break existing code (barring a name conflict -- in
I don't know Chitika but can't you just put it into your host html page
which also loads your GWT app?
-- 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
In one of your *.gwt.xml files you probably have added the 'xsiframe'
linker. This linker allows you to load your app from a different domain and
because of this it has to generate *.cache.js files instead of *.cache.html
files.
So everything is fine :-)
-- J.
--
You received this message
Deleting gwt-unitCache solved the issue for me. I have also deleted
war/appname and war/WEB-INF/deploy but I think thats not needed.
Can you compile through Eclipse using GPE? I don't think the maven plugin
itself is causing the problem. Maybe you still have a gwt-unitCache folder
lying around
The most easy workaround is probably to download the
CometSerializerGenerator.java from the issue you have mentioned and put it
into your app's project into the correct package.
Then as long as your classes/output folder is before gwt-comet.jar in your
classpath the GWT compiler should pick
I think you have forgot to install GWT Designer or it has failed to install
in Juno.
GPE does not provide the context menu. At least I never had one in all my
Eclipse versions and I have always only installed GPE and never GWT
Designer. So I guess its provided by GWT Designer.
-- J.
--
You
Could I do better?
I don't think so. Well, you could always write your own ListDataProvider
and/or file an issue in the meantime.
-- 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
My guess.
After dataProvider.getList().add(foo) is executed,
DataDrid is updated asynchronously,
and you try to
dataGrid.getRowElement(...)
before this update happens.
Right. ListDataProvider uses Scheduler.get().scheduleFinally() to update
the DataGrid. That is done for performance
Because setHeaderStyleNames() expects CSS class names, e.g.
footer.setHeaderStyleNames(myfooter);
along with
.myfooter {
cursor:pointer;
cursor:hand;
}
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this
I think ValueProxys that are direct properties of an EntityProxy have to be
loaded using .with(). When you choose to load the ValueProxy property then
the ValueProxy itself contains all data as you cant ask the server for more
data of a given ValueProxy as it does not have an identity.
-- J.
Activity/Places is not MVP. An Activity is just something abstract that
starts for a given place. What you do in your Activity can by anything. In
most examples you see an Activity that is used as Presenter for the View
the Activity reveals. In most cases that makes sense but you are not forced
DataGrid has two selections. In its default style darkblue is the selection
stored in the selection model while a yellowish selection is the keyboard
selection to let you know where you are while navigating with the
keyboard.
Maybe you have defined the same color for both so you cant
keyboard focus
-a way to link keyboard + mouse selection at one?
Am Dienstag, 19. Februar 2013 11:35:12 UTC+1 schrieb Jens:
DataGrid has two selections. In its default style darkblue is the
selection stored in the selection model while a yellowish selection is the
keyboard selection to let you
Check if
dashboard/dashboard.nocache.jshttps://google-web-toolkit.googlegroups.com/attach/31b4b30a48caec9/dashboard/dashboard.nocache.jscan
be loaded from your server. Using Chrome and its DevTools or FireFox
with FireBug you can see network requests and if any of them fails with a
404 not
Does the error go away when you delete the folder war/appname ? I think
your war/appname/hosted.html page is maybe outdated and needs to be
regenerated by GWT DevMode.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe
I don't see why it should not work. You can do an RPC request in
Activity.onStop() but you have to be aware of the fact that the activity
will continue to stop while the request is pending. So your request's
callback should not do anything that depends on the activity state or its
view (which
GWT itself offers three styles: standard, clean, dark.
Then there is a theme generator but I have really no idea how well it works
as I have never tried it. Looks like it only changes the colors:
http://gwt-theme-generator.appspot.com/
-- J.
--
You received this message because you are
a href=# onclick=yourFunction(); return false; link /a
Adding return false; has the same result as calling event.preventDefault() *
and* event.stopPropagation().
You can also do that on the href attribute directly I guess.
-- J.
--
You received this message because you are subscribed to the
3) AND clear the browser cache!!
Ah yeah makes sense. I have a local apache pointing to my IntelliJ project
output and that local apache adds no-cache headers for hosted.html and
proxies server requests to the backend (embedded jetty or external servlet
container). So I do not have the
Out of the box you can only use java classes that are emulated by
GWT: https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation
AWT and Swing are not emulated.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
I Think in Eclipse project settings - Google - Web Application you
can uncheck a box that says This project has a war directory. When you do
so, Eclipse/GPE should stop complaining and you can delete the war folder.
-- J.
--
You received this message because you are subscribed to the Google
I am developing on Mac and I am using the bundled apache server as proxy.
The document root is my project's war folder and server requests are
proxied to the backend. The backend could be an external server or the
embedded jetty that comes with GWT. You could also configure multiple
vhosts
Panels may have implemented HasWidgets and/or IndexedPanel. HasWidgets
provides an iterator while IndexedPanel provides access to its childs using
an index.
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/HasWidgets.html
But this code still runs in the context of your app or does it also fail as
a standalone mini example?
Things I would do (in this order):
- make sure you use source/target version 1.6 for Java7 (client and server
code)
- recheck that gwt-servlet.jar belongs to 2.5.0 and you are compiling with
We use RemoveServiceObfuscateTypeNames without issues.
In your request payload you see 7|1| at the beginning. The first value is
the GWT-RPC version and the second value describes the GWT-RPC flags. A
flag 1 means type names are obfuscated. The flag can be found in
Are you doing any crazy things in your app? :-)
Have you used Event.addNativePreviewHandler() somewhere and the handler
maybe busts certain mouse events? Or overwritten any onBrowserEvent()
methods somewhere in your outer App UI?
Couldn't think of anything else that forbids you to select text
If auto-hide along with auto-hide partner (see JavaDoc) does not fit your
needs you have to call hide yourself.
-- 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
I am planing to write some new widgets that meet my personal requirements
and I would like to have some opinions how to implement them best.
First my requirements:
1.) Performance
2.) ClientBundle for styles/resources
3.) DOM/behavior should be extendable/changeable (see next point)
4.) Mobile
Probably a misconfiguration in your IDE. I am using Eclipse and IntelliJ 12
and never had this problem. Check your class output folders and your launch
configuration.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe
Its just a matter of taste.
I guess most people only store the database Id inside the place and then
fetch the data in the activity. If you have multiple activities active at
the same time you may build a thin layer between your activity and RPC
mechanism so that only one request is done for a
You dont have to remove and re-add it. JavaDoc:
SplitLayoutPanel.setWidgetHidden() / SplitLayoutPanel.setWidgetSize()
Am Dienstag, 26. Februar 2013 12:22:02 UTC+1 schrieb membersound:
I have the same error using DockLayoutPanel when re-adding a west panel.
Did you find a solution?
--
You
ToggleButton is a CustomButton and has so called Faces and setText() only
changes the text of the current Face. In a click handler the current Face
can probably only be UP_HOVERING and DOWN_HOVERING and you have changed the
text of one or both of them.
So all the faces can have different text
GWT has a generic callback interface that you can use as method parameter
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/core/client/Callback.java
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
After you have compiled your GWT app to JavaScript using the GWT compiler
you don't need a plugin anymore as the browser now can execute the
JavaScript directly.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from
I just experimented somewhat with Gin and realized that it (v2.0) seems to
break the incremental compilation feature of GWT's development mode, ie.
where I just have to save the .java source file and the gwt dev mode server
automatically incorporates the changes.
Not exactly sure what
Interesting topic.
Can't really comment on those things but I guess the CellWidgets are a
good starting point.
I also came across a good stackoverflow reply which I think might also be
useful: http://stackoverflow.com/a/7481137/356594
Yeah I have also came across this link and it
[1] http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets
[2] http://www.sencha.com/products/gxt/whats-new-in-sencha-gxt-3/
[3]
https://groups.google.com/d/topic/google-web-toolkit-contributors/g8WPRxkdqPA/discussion
[4]
Our app runs with SSL and IE8 and any GWT version just fine.
Make sure that IE 8 does not automatically activate compatibility mode for
intranet sites. Also check your IE 8 security settings, because you have
said that it works when you add your site to the list of trusted sites.
-- J.
--
I believe you're right. If you mess with DI stuff (for example add a new
parameter to a constructor annotated with @Inject) the code will break when
you reload. You have to rebuild the project at that point. I believe this
is due to gin using generators which are not triggered on
* Expose state of the request transport, requests pending etc to drive
progress indicators...
That information could be send on the EventBus to decouple it from the
request transport. Beside driving progress indicators you could also use
that information to display a slow network warning
Instead of Anchor use a Label/CustomButton that is styled like a link or if
you want to keep using Anchor then you have to call event.preventDefault()
in your click handler.
Take a look
at: http://code.google.com/p/google-web-toolkit/issues/detail?id=5280
-- J.
--
You received this message
Maybe the IE8 you have tested activates compatibility mode for your site?
Or it has installed Chrome Frame that maybe causes issues? As long as you
have referenced ie8 in the user.agent property (or haven't changed the
user.agent property at all) it should work.
Not sure what you mean with
Instead of adding the handler in your constructor you can overwrite
Widget.onLoad() to add the handler to the EventBus just before the widget
is attached to the DOM and Widget.onUnload() to remove it automatically
when the widget is detached from the DOM (by calling
Its not a GWT issue. You have either spring4gwt or spring itself
misconfigured as it seems like that utilDb is null and thus @Autowired
simply does not work.
You should start
re-reading http://code.google.com/p/spring4gwt/wiki/SimpleRPCExample and
make sure that your config is correct. I
Following the linked wiki page you should have
servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-pattern/springGwtServices/*/url-pattern
/servlet-mapping
and
@RemoteServiceRelativePath(springGwtServices/spring bean name)
So in your case probably:
void asyncMethod(final CallbackSuccessType, FailureType callback) {
//Some async work, could also be a simple Timer task or similar that
only runs on the client.
rpcservice.getData(new AsyncCallbackString, Throwable {
void onSuccess(String result) {
//Do what you need to do
Jens, are you sure of what you're saying ? The GWT services have to be
servlets AFAIK, and are actually managed by the servlet container in the
given wiki page.
Re-read point 2.) + 3.) of the wiki page. If the wiki page isn't wrong you
only have to declare a name for your GWT-RPC service
in a new tab is something the user decides based on his browser settings.
You cant force it.
You can use Anchor to link to an external site.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop
You could load your user credentials on app start and then set UI controls
visible/invisible based on the users credentials. But that only makes the
UI nice for the user. You still have to check for the same credentials on
your server so that your server disallows any server actions that the
Column names are irrelevant and can have any name as long as you have
getters named getId() and getVersion(). If your getters have different
names then you have to use a Locator.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
Well actually you have to call setVisible/setEnabled a thousand times if
you have thousand widgets to configure.
You can either do it explicitly by if/else for each widget all across your
code base or you search (maybe DOM based)/register the relevant widgets.
But that still means you have to
can I know from the backing code where the cursor in the TextArea is
placed? Eg to extract the text that is in front of the cursor, and after
it.
TextArea.getCursorPos() ?
Also, is it possible to format a text to be displayed differently than the
backend source holds the text? Eg if
Have you used the patched GWT emma version?
Take a look at:
https://developers.google.com/web-toolkit/doc/latest/DevGuideTestingCoverage
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop
The IncompatibleRemoteServiceException should go away when you update
gwt-servlet.jar in your war/WEB-INF/lib folder. It must match the version
you have used to compile your application.
You have compiled your app using GWT 1.5 (GWT-RPC version 5) and your
server still uses gwt-servlet.jar
You can use com.google.gwt.text.shared.Renderer/Parser or roll your own
Formatter to implement the back and forth logic and then you could also
create a custom TextArea that requires a Renderer/Parser or your custom
Formatter.
Shouldn't be too difficult.
-- J.
--
You received this message
Thanks for the reply, but it's actually the opposite. I got that error
AFTER replacing the jars (including gwt-servlet.jar) and before I replaced
the *.nocache.html and *.nocache.xml files with new *.nocache.html and
*.nocache.js files.
Ah yeah somehow misunderstood it. So your server
DevMode deploys the app to the root while on tomcat you have probably
deployed your app into a subfolder. Thus your server requests will result
in 404 Not Found. Make sure you deploy your app to the correct location.
-- J.
--
You received this message because you are subscribed to the Google
If you like the Showcase theme then you can simply use the Clean.gwt.xml
theme in your module.
What I do to change the GWT style globally the way I want is to copy the
GWT style into a ClientBundle and only inherit
theme-nameResources.gwt.xml so that images get copied to the war folder.
For
This is a bit old, but in the interest of linking information here's a
blog post I found on this issue with another workaround:
http://deploythoughts.blogspot.com/2012/11/gwt-webapp-and-ios-6-safari.html.
That workaround did the trick for us.
I don't think thats a good workaround. You
Normally you are supposed to use AbsolutePanel.add(Widget w, int left, int
top) to add a child widget. This method overrides the CSS properties
position, top and left of the provided widget so it can be positioned
absolutely.
When removing the child from AbsolutePanel these CSS changes are
The call is definitely hitting your server so you have to dig for server
logs. Maybe logging is disabled/misconfigured on your external server?
Alternatively you could use Java's remote debugging features to connect to
your external application server to see whats going on by using breakpoints
Is there a way to get rid of it. ?
Yeah, make your CSS right. If you use ClientBundle you can use conditional
CSS if you need to:
https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#Conditional_CSS
-- J.
--
You received this message because you are subscribed
Do you use UiBinder for the DialogBox content widget? If so you can add
more than one widget to @UiHandler:
@UiHandler({box1, box2, box3})
void maybeTriggerSave(KeyUpEvent event) {
//check for ENTER and trigger save
}
Without UiBinder the above is equivalent to:
KeyUpHandler
For Tomcat many people are
using https://code.google.com/p/urlrewritefilter/ or just put an ordinary
web server that directly supports URL rewriting (apache, nginx) in front of
Tomcat.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
Please try deleting your gwt-unitCache directory between swapping GWT
versions.
-- 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
https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation
This method is not emulated by GWT, so you cant use it in client code.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop
CSS example: http://quirksmode.org/css/user-interface/textoverflow.html
--
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-servlet.jar is a subset of gwt-user.jar and as along as you have
gwt-user.jar in your classpath you don't need to have gwt-servlet.jar in
your classpath (although it needs to be deployed). So you can either
exclude gwt-servlet.jar in Eclipse or you make sure that gwt-user.jar is
before
This is strange, I'd swear it used to work…
It must then be a lower-level change, as I don't see anything suspicious
in the latest changes to PopupPanel or any ancestor class.
We use PopupPanel.center() for showing wizards. Also we calculate optimal
wizard sizes before first showing the
I just changed my code a bit and removed any explicit sizes on the
PopupPanel itself. Now when adding a Label without any size or something
else with explicit sizes everything still works as expected without using
any deferred command.
@Ed: We use LayoutPanel inside PopupPanel so either the
Do you use the embedded Jetty inside Eclipse (GWT Eclipse plugin) or have
you deployed your app to a different server? Whats your
@RemoteServiceRelativePath value on your service interface?
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
What is GWT criteria API?
If its something of a 3rd party GWT library then you better ask the
corresponding people that have build that library. They probably have their
own forum/group.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
Can somebody please test the above centering of the popup ?
Let's confirm that it's not only me such that I can report it as a bug.
Any ideas for workarounds? (some action to trigger the correct dimensions)
The code below works for me in FF 19.0.2, Chrome 25.0.x (using GWT
2.5.1 and
The DOM class contains a static class variable impl that is instantiated
using GWT.create(). I don't think you can workaround this fact using
PowerMockito.
What you can do is to refactor your code slightly. Instead of
public Foo() {
id = DOM.createUniqueId();
}
you would refactor it to
GWT only has a widget called Grid that is not limited in row size other
than its decreasing performance the more rows/columns you add. An
alternative is CellTable that supports pageable content and is meant to
manage large data sets.
In general its a good idea to only show a limited number of
You probably have enabled animations for the DialogBox. DialogBox extends
PopupPanel and PopupPanel uses CSS clip when animations are enabled. Take a
look at PopupPanel.ResizeAnimation.
To get rid of it just disable the animation (and maybe use CSS3 transitions
instead).
-- J.
--
You
This is not a GWT-Ext/SmartGWT group, so I have no idea. You better ask at
their forum: http://forums.smartclient.com/
-- 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,
You can put the data directly into your index.html (static data) or
index.jsp (dynamic data generated by server) and load it through GWT's
dictionary class. Obviously you would need to make sure that the browser
does not cache index.html/jsp in case you need to update the data.
Can you share code for a popup content that reproduces the problem?
-- 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
No idea. Only thing I would change is to explicitly use a Charset like
UTF-8 in String.getBytes() and probably inside Base64Utils.toBase64(). As
you only use JRE classes beside Base64Utils I would first double check
Base64Utils if it works correctly.
The following JUnit 4 test works (it does
http://stackoverflow.com/questions/4274053/how-to-clear-cache-in-gwt
-- 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
Fields can only be injected after the class has been instantiated. Thus all
injected fields are still null during constructor execution. Either
refactor your code so you don't need to access the field right away in the
constructor or use constructor injection instead. IMHO constructor
Iterators/Iterables.filter(..., ClassT type) methods are both
incompatible to GWT as both implementations use Class.isInstance() which is
not emulated by GWT.
All you can use is the Iterators/Iterables.filter(..., Predicate? super T
predicate) version.
-- J.
--
You received this message
You would need to send your client log to the server where it can be logged
into a file.
GWT emulates a subset of java.util.logging:
https://developers.google.com/web-toolkit/doc/latest/DevGuideLogging
http://stackoverflow.com/questions/5812035/setup-a-remoteloggingservlet-in-gwt
-- J.
--
You could probably track the mouse movement globally in your app and
remember its position somewhere.
-- 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
Why dont you extend the GWT classes and give them your desired default
values? E.g. instead of HorizontalPanel you would create a
CenteredContentPanel that extends HorizontalPanel and sets its own size
to 100% along with the desired alignment?
Alternatively you can also look at @UiChild for
The filter will be executed when the url-pattern matches. The example uses
/* as url-pattern which matches all URLs so it will always be executed.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and
What is the impact performance wise?
Probably the same as if you would add a new if statement to any of your
servlets. Just test it in your development environment if you are concerned
about it.
We dont do it via a filter as we serve our static content from dedicated
web servers. So we
Missed the part that you want the mouse position in a canvas.
Take a look
at http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
You could easily transfer this to GWT and on a key event use the current
mouse position you have saved in your app by tracking the mouse
Check out http://stackoverflow.com/a/1060034
Its pure JavaScript but it shouldn't be hard to adapt it to GWT.
-- 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
As far as I know, GWT posts/submits to an iframe and then reads the
iframe's content which you access through event.getResults(). So after a
form submit is complete the iframe contains your server response. If you
don't send back the uploaded file from server to client,
You can't without copying PopupPanel or maybe creating a sub class of it in
the same com.google.gwt. package so you have access to package private
ResizeAnimation class.
Alternative could be to disable animation and use CSS3 transitions instead.
-- J.
--
You received this message because
You need an URI for your image. Either your server generates a Data URI
(https://en.wikipedia.org/wiki/Data_URI_scheme) or you write an
ImageServlet that can serve your image's byte array with the correct HTTP
content type so that the browser can render the image.
So in case of data uri you
Do you want to bundle images into your JS file or do you really want the
images to be loaded externally?
In the first case you have to use ImageResource inside your ClientBundle so
that images will be bundled into your JS file. Read the chapters
ImageResource and CssResource - Image Sprites:
DockLayoutPanel needs a size in pixel or you use 100% as size but then you
have to set a size on the PopupPanel.
-- 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
It should be
ui:style src='GWTtest.css'/ui:style
instead of
ui:style
src='GWTtest.css'
/ui:style
-- 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
Never used AppEngine but the first two things I would check are:
1.) Caching issue for module.nocache.js so that the browser has the old one
cached and requests an old hash.cache.html file which does not exist
anymore.
2.) Maybe AppEngine distributes your app across different nodes which may
Probably not related but hit a weird issue with FF20 too:
* undefined in a variable that the Java source (compiled to JS) says
should be initialised.
* works fine in all other browsers.
* works in FF if firebug or the built in debugger turned on...
Sounds like a JIT Compiler issue
I think you have to set javascript.options.ion.content to false to disable
IonMonkey (the name of the JIT Compiler in FF) in FF20.
-- 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
Assuming you have one host/server that you can fully configure I would just
proxy the requests to the correct location. To make things easy I would
group remote services under a common URL prefix, something like
example.com/services/*, so you only need a single proxy rule.
We use this approach
801 - 900 of 2944 matches
Mail list logo