Re: Private versus Protected definitions

2013-02-14 Thread Jens
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

Re: Query regarding integrating external scripts like Chitika

2013-02-14 Thread Jens
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

Re: GWT Compiler doesnt generate cache.html files

2013-02-14 Thread Jens
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

Re: GWT 2.5.1-rc1 available

2013-02-15 Thread Jens
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

Re: gwt-comet issue with GWT 2.5

2013-02-15 Thread Jens
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

Re: Google Web Toolkit context menu missing in Eclipse

2013-02-15 Thread Jens
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

Re: Serialize data from ListDataProvider?

2013-02-15 Thread Jens
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

Re: DataGrid - How to scroll latest added item into view?

2013-02-17 Thread Jens
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

Re: DataGrid header - how to programatically change styles?

2013-02-18 Thread Jens
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

Re: ValueProxy loading does not need .with(), contradictory to GWT doc.

2013-02-18 Thread Jens
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.

Re: mixing mvp paradigms

2013-02-18 Thread Jens
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

Re: DataGrid - selection jumps onto the first entry on deletion?

2013-02-19 Thread 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 know where you are while navigating with the keyboard. Maybe you have defined the same color for both so you cant

Re: DataGrid - selection jumps onto the first entry on deletion?

2013-02-19 Thread Jens
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

Re: GWT - nothing in the browser

2013-02-19 Thread Jens
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

Re: GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems

2013-02-19 Thread Jens
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

Re: RPC call in Activity onStop()

2013-02-19 Thread Jens
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

Re: Are there any style templates?

2013-02-20 Thread Jens
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

Re: Difficulties with addWindowClosingHandler in IE

2013-02-20 Thread Jens
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

Re: GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems

2013-02-20 Thread Jens
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

Re: Google compilation error

2013-02-20 Thread Jens
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

Re: Removing war directory from GWT project

2013-02-21 Thread Jens
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

Re: Using a proxy in dev mode

2013-02-21 Thread Jens
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

Re: Child widgets of a panel

2013-02-21 Thread Jens
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

Re: IncompatibleRemoteServiceException : The response can not be Deserialized

2013-02-21 Thread Jens
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

Re: IncompatibleRemoteServiceException : The response can not be Deserialized

2013-02-22 Thread Jens
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

Re: TextBox - cannot select text with mouse?

2013-02-22 Thread Jens
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

Re: Auto-hide a PopupPanel Context Menu?

2013-02-24 Thread Jens
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

New widgets: Best way to implement them?

2013-02-25 Thread Jens
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

Re: Class files being generated to source trees when running GWT from within IDE

2013-02-25 Thread Jens
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

Re: DTO as a place constructor parameter in MVP with Activities and Places

2013-02-26 Thread Jens
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

Re: Re sizing in Split Lay out Panel

2013-02-26 Thread Jens
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

Re: How to permanently change text of ToggleButton?

2013-02-26 Thread Jens
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

Re: asynchronous call back for client side method

2013-02-27 Thread Jens
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

Re: Browser plugin

2013-02-27 Thread Jens
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

Re: GWT dev mode and GIN and dependency injection in general

2013-02-28 Thread Jens
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

Re: New widgets: Best way to implement them?

2013-02-28 Thread Jens
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

Re: New widgets: Best way to implement them?

2013-02-28 Thread Jens
[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]

Re: IE 8 issues with GWT 2.5

2013-02-28 Thread Jens
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. --

Re: GWT dev mode and GIN and dependency injection in general

2013-02-28 Thread Jens
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

Re: Advanced RequestTransport implementations. Any available to use?

2013-03-01 Thread Jens
* 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

Re: IE Anchor Issue

2013-03-03 Thread Jens
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

Re: Gwt user agent issue in IE8

2013-03-03 Thread Jens
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

Re: Widget destruction impossible because of EventBus ?

2013-03-04 Thread Jens
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

Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-04 Thread Jens
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

Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Jens
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:

Re: asynchronous call back for client side method

2013-03-05 Thread Jens
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

Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Jens
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

Re: I need link

2013-03-05 Thread Jens
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

Re: GWT Security

2013-03-06 Thread Jens
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

Re: RequestFacory Id Version Name

2013-03-06 Thread Jens
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

Re: GWT Security

2013-03-06 Thread Jens
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

Re: Get the cursor position in TextArea?

2013-03-07 Thread Jens
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

Re: Code Coverage

2013-03-07 Thread Jens
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

Re: GWT Upgrade from old version 1.2

2013-03-07 Thread Jens
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

Re: Get the cursor position in TextArea?

2013-03-07 Thread Jens
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

Re: GWT Upgrade from old version 1.2

2013-03-08 Thread Jens
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

Re: Deployment to Tomcat

2013-03-11 Thread Jens
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

Re: How to get the css styles from showcase SuggestBox?

2013-03-11 Thread Jens
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

Re: GWT WebApp and iOS 6 Safari

2013-03-12 Thread Jens
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

Re: Inline top and left properties cleared when removing child from parent?

2013-03-12 Thread Jens
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

Re: com.google.gwt.user.client.rpc.StatusCodeException: 500 The call failed on the server; see server log for details only when running on external server in Myeclipse

2013-03-12 Thread Jens
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

Re: GWT rendering in differing browser

2013-03-13 Thread Jens
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

Re: Trigger button on ENTER inside a TextBox?

2013-03-13 Thread Jens
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

Re: GWT Tomcat redirect rules

2013-03-15 Thread Jens
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

Re: internal compiler exception with GWT 2.5.1

2013-03-15 Thread Jens
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

Re: How to use Character.isJavaIdentifierStart() in GWT?

2013-03-15 Thread Jens
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

Re: Get String Width in Pixels

2013-03-18 Thread Jens
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

Re: Where can I find gwt-servlet.jar source jar?

2013-03-20 Thread Jens
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

Re: PopupPanel.center() not centering content?

2013-03-20 Thread Jens
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

Re: PopupPanel.center() not centering content?

2013-03-20 Thread Jens
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

Re: URL problem...

2013-03-21 Thread Jens
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

Re: Adding an is null gwt criteria

2013-03-22 Thread Jens
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

Re: PopupPanel.center() not centering content?

2013-03-22 Thread Jens
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

Re: How to mock static client side DOM calls with PowerMock?

2013-03-24 Thread Jens
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

Re: GWT GridPanel max no. of row can be populated

2013-03-25 Thread Jens
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

Re: Where does the clip on my DialogBox come from?

2013-03-25 Thread Jens
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

Re: GWT GridPanel max no. of row can be populated

2013-03-26 Thread Jens
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,

Re: Pre-load server-side resource before client finishes initializing

2013-03-27 Thread Jens
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.

Re: PopupPanel.center() not centering content?

2013-03-30 Thread Jens
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

Re: Same text, different Signature with each execution

2013-03-31 Thread Jens
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

Re: clear browser cache automatically?

2013-04-01 Thread Jens
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

Re: gin field injection

2013-04-02 Thread Jens
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

Re: Guava Iterators not working?

2013-04-02 Thread Jens
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

Re: Create log file

2013-04-02 Thread Jens
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. --

Re: Get mouse position in Canvas on keyPress?

2013-04-02 Thread Jens
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

Re: GWT UI widgets auto-alignment inside different Panels proper solution needed.

2013-04-02 Thread Jens
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

Re: clear browser cache automatically?

2013-04-02 Thread Jens
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

Re: clear browser cache automatically?

2013-04-02 Thread Jens
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

Re: Get mouse position in Canvas on keyPress?

2013-04-03 Thread Jens
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

Re: Window onfocus/onblur events.

2013-04-04 Thread Jens
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

Re: Upload a file - special characters are converted to html chars?

2013-04-04 Thread Jens
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,

Re: DialogBox - modify animation time?

2013-04-05 Thread Jens
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

Re: Displaying an image from Couchdb

2013-04-06 Thread Jens
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

Re: How to use images in CSS ClientBundle?

2013-04-07 Thread Jens
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:

Re: PopupDialog with DockLayoutPanel is empty?

2013-04-08 Thread Jens
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

Re: UIBundle XML not seeing CSS styles

2013-04-08 Thread Jens
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

Re: Re-deployment on appengine sometimes breaks GWT app (Module.Cache.html not found)

2013-04-09 Thread Jens
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

Re: GWT App -- Firefox 20 regression?

2013-04-09 Thread Jens
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

Re: GWT App -- Firefox 20 regression?

2013-04-09 Thread Jens
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

Re: GWT Application Amazon S3 Resource Hosting Question

2013-04-09 Thread Jens
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

<    4   5   6   7   8   9   10   11   12   13   >