Re: multiple views

2012-09-12 Thread Jens
Looks like a PopupPanel/DialogBox thats not closed correctly. Probably a left over of your modifications to GWT's example project. Take a look through your code and make sure it gets closed correctly by calling its hide() method. -- J. -- You received this message because you are subscribed

Re: Custom Composite GWT Widgets using MVP

2012-09-12 Thread Jens
The fact that a custom widget uses MVP should be hidden so you would end up having: MyCustomWidget extends Composite implements CustomView { MyCustomWidget() { myPresenter = new Presenter(this); //takes CustomView as argument so you can mock the view while testing the presenter }

Re: Absolute positioning images

2012-09-13 Thread Jens
Image img = new Image(); RootLayoutPanel.get().add(img); RootLayoutPanel.get().setWidgetTopHeight(img, 100, Unit.PX, 12, Unit.PX); RootLayoutPanel.get().setWidgetLeftWidth(img, 100, Unit.PX, 12, Unit.PX); should work I guess. RootLayoutPanel is just a singleton LayoutPanel. -- J. -- You

Re: GWT MVP Architecture

2012-09-13 Thread Jens
As your view is singleton you have to tell the presenter that it should detach itself from the view, e.g. by introducing a public Presenter.unbind() method. You then have to call that unbind() method before you throw away your presenter instance. Your presenter needs to remember the

Re: How to send images with image map to client and create widget with it

2012-09-14 Thread Jens
Create a DTO that describes the image map, something like: ImageMap - String: imageUrl (would point to your png-image servlet) - ListImageMap.Area: areas (calculated on server using your lib) ImageMap.Area: - ShapeTypeEnum: shape (RECT, CIRCLE, POLY) - ListInteger: coords - String: href -

Re: transitioning from flex to gwt

2012-09-14 Thread Jens
The documentation of GWT gives a pretty good overview about UI / server communication: https://developers.google.com/web-toolkit/doc/latest/DevGuide For a widget overview you can take a look at the Showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCheckBox -- J. -- You

Re: How to send images with image map to client and create widget with it

2012-09-14 Thread Jens
So for each image to server requests are necessary: 1 to get the dto and create html with image-url 2 to get the image from servlet Yes, although the second request is done by the browser and not by your GWT app. To remove the browser request, you would need to use data uris (base64)

Re: application architecture ideas: Appli

2012-09-17 Thread Jens
Could we please just stop confusing ActivitiesPlaces and MVP? +1 Maybe we should write an example app that only deals with Activity Place and that uses some widgets that internally do MVP. So no Activity implements Presenter stuff. -- J. -- You received this message because you are

Re: GWT Bean Validation + Hibernate Validator version?

2012-09-17 Thread Jens
Should GWT 2.5 SDK then bundle Hibernate Validator 4.1.0 if it depends on that specific (older) implementation? Or at least mention it somewhere in the docs that Hibernate 4.1.0 is the way to go? -- J. Am Montag, 17. September 2012 15:54:20 UTC+2 schrieb Chris Lercher: Ok, thanks. On

Re: Will PopupPanel.hide() clear the memory it used?

2012-09-18 Thread Jens
All code in your GWT app's client package will be run by the users web server and not your WebLogic app server. If your WebLogic app server throws an OutOfMemory exception then you have an issue in your GWT-RPC method implementation and not in the PopupPanel. -- J -- You received this

Re: DockLayoutPanel/SimpleLayoutPanel - Css padding

2012-09-18 Thread Jens
SimpleLayoutPanel stretches its child to fill the whole area. It does so by using absolute positioning with top, left, bottom, right: 0px (see SimpleLayoutPanel.setWidget() source code). Thats why your padding does not have any effect. -- J. -- You received this message because you are

Re: To resize or to not resize a layout

2012-09-19 Thread Jens
How do you do that? I was under the impression that you could only add one layoutPanel via RootLayoutPanel.get(). Would you have a code fragment I can look at - thank you very much. It's like: RootLayoutPanel -- DockLayoutPanel -- NORTH: header -- CENTER: SplitLayoutPanel

Re: In page (html) anchors don't work - they interfere with history tokens

2012-09-21 Thread Jens
Have you tried to attach an event listener (DOM.addEventListener()) to these anchors and call ClickEvent.preventDefault() when you click on them? That could suppress the history change and you can scroll your html document yourself by reading the href attribute and searching the anchor you

Re: Serializing different objects in one class that implements IsSerializable

2012-09-21 Thread Jens
The Polygon class is a JavaScriptOverlay type provided by Google and it does not have a no-arg constructor, so you can't use it with GWT-RPC. Other than that I assume you can't use JSO's on server side either (How should JSNI work on server side?) so it does not make sense to use them in a

Re: iOS 6 Bug: Safari caches POST requests

2012-09-23 Thread Jens
Thanks. Good to know. -- J. Am Sonntag, 23. September 2012 08:17:10 UTC+2 schrieb KevMo: I'm not sure how many people this will affect, but I thought I would send out a heads up. Check out these posts for more information:

Re: rename-to module attribute and DevMode

2012-09-24 Thread Jens
Hm we use DevMode and rename-to and never had any problems with it. We have something like App.gwt.xml, DevApp.gwt.xml (contains logging and inherits App.gwt.xml), DevAppGecko.gwt.xml (contains use.agent and inherits DevApp.gwt.xml) and all have the same rename-to=app attribute, so we don't

Re: GWT Designer - Can't create SWT Browser

2012-09-25 Thread Jens
Honestly I have never used GWT designer. Eclipse + Google Plugin provides pretty good auto completion in UiBinder xml files. Just make sure you open the UiBinder xml with the UiBinder Template Editor (right click - open with) that comes with the Google Plugin. Sure this does not solve your

Re: GWT 2.5 RC1 Is Here!

2012-09-25 Thread Jens
I would say so. Last commit has changed the pom.xml of GWT examples to include GWT 2.5 RC2 as dependency (http://code.google.com/p/google-web-toolkit/source/detail?r=11299) -- J. Am Dienstag, 25. September 2012 14:59:26 UTC+2 schrieb Samyem Tuladhar: Is the 2.5 release still on track? Still

Re: Request Factory, Hibernate, Validation Error: ClassNotFoundException: javax.validation.ValidationException

2012-09-25 Thread Jens
1) I included the following in WEB-INF/libs (they are in subfolders like WEB-INF/libs/validators/.. for structuring.. hope thats no problem) Unfortunately that is a problem. Put all libraries into WEB-INF/lib without using sub folders and it should work. If you want sub folders in

Re: How to use Request Factory with JPA Hibernate and PostgreSQL ?

2012-09-26 Thread Jens
If you want to use Hibernate I guess the persistence provider is wrong. Looks like its the one of EclipseLink. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: Anybody else having a problem with the mac GWT dev plugin in Chrome?

2012-09-26 Thread Jens
I am using stable Chrome Version 21.0.1180.89 and do not have any problems with DevMode plugin on Mac OS (10.8.2). I switched to stable Chrome because lately the DevMode plugin stopped working for me in all the dev versions of Chrome. -- J. Am Mittwoch, 26. September 2012 03:37:59 UTC+2

Re: GWT Dev Plugin broke (Chrome/mac osx)

2012-09-26 Thread Jens
It works with stable Chrome 21.x.xxx. Just don't use the Chrome Beta build. -- J. Am Mittwoch, 26. September 2012 18:49:08 UTC+2 schrieb Jambi: Hey guys, today I was starting my gwt app in Chrome and there appears a message that the dev plugin couldnĀ“t be loaded. I think this could be the

Re: GWT Dev Plugin broke (Chrome/mac osx)

2012-09-26 Thread Jens
You should also consider using Firefox during development. The DevMode plugin for Firefox is *a lot faster* than the Chrome plugin. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: gwt openpa serialization problem

2012-10-02 Thread Jens
Your entity is serializable and you want to send it from server to client. Most JPA providers enhance entity classes to support features like lazy loading, so although you have used a java.util.List in your entity code it could very well become an org.apache.openjpa.kernel.DelegatingResultList

Re: GWT throwing No source code is available for type on adding a new class in client

2012-10-02 Thread Jens
Your structure should be: src |-- mystock |-- client | |-- Stockexample.java | |-- LoginGWT.java |-- StockExample.gwt.xml If thats your structure, does the error go away if you add source path=client/ to your StockExample.gwt.xml? Following the documentation it should

Re: page completely fails to load on ie8, works on safari, firefox, chrome, ie9

2012-10-03 Thread Jens
Do you have Chrome Frame installed? Is IE8 maybe in compatibility mode? -- J. Am Mittwoch, 3. Oktober 2012 02:05:22 UTC+2 schrieb jones34: There's a good chance this is not gwt-related, but if anyone has run into this and has any quick suggestions it would be greatly appreciated. thanks

Re: page completely fails to load on ie8, works on safari, firefox, chrome, ie9

2012-10-03 Thread Jens
Do any script errors occur in IE? If so, you could compile your app in PRETTY mode and use IE's development tools to see whats going on. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: GWT WebApp and iOS 6 Safari

2012-10-03 Thread Jens
Hmm couldn't see why there should be a ClassCastException. As a side note, your equals() method is not correct, email/code can be null and two instances containing the same null variables are currently unequal (your if forbids null values). You should also overwrite hashcode() because you have

Re: GWT RPC synchronic calls

2012-10-03 Thread Jens
I think you dont need a GWT module for gwt-syncproxy. It should work in a pure JUnit test as it does not use GWT.create() for creating the GWT service. gwt-syncproxy uses Java's dynamic proxy to implement the service interface and uses Java's HttpUrlConnection to call your server. -- J. --

Re: GWT RPC synchronic calls

2012-10-03 Thread Jens
Jens, thank you but as I suspected I have troubles. What do you mean with a pure JUnit test ? you mean a non gwt program ? A pure junit test launched from a normal java runtime, not in GWT ? Yes. See the provided tests of gwt-syncproxy (e.g.: http://code.google.com/p/gwt-syncproxy

Re: In page (html) anchors don't work - they interfere with history tokens

2012-10-05 Thread Jens
Someone else already explained it ;-) http://carlosaguayo.posterous.com/html5-history-in-gwt Also read the two comments on that page. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: Can you build a flickr like app in gwt?

2012-10-05 Thread Jens
The data will be served by your server and your GWT application only knows how to construct URLs pointing to that server data. ClientBundle is for static data that should and will be cached by the client, so for a flickr like app you won't use ClientBundle for the actual images but only for

Re: Are you happy with GWT?

2012-10-05 Thread Jens
I am also happy with GWT, working with it for about 2 years now. I like the fact that I get all the benefits of a strongly typed language like Java (strong IDE support, Java debugging features thanks to DevMode, static code analysis) and you get some nice build-in features through GWT like

Re: mp3 resources - can they be played from within GWT?

2012-10-07 Thread Jens
Check out gwt-voices. -- J. Am Sonntag, 7. Oktober 2012 02:59:00 UTC+2 schrieb jones34: Is there any way (a widget, maybe) I can play an MP3 that I have as gwt resource, without leaving gwt or sending the user to a new browser tab? An MP3 player widget, maybe? thanks -- You received

Re: RequestFactory in a offline Szenario?

2012-10-08 Thread Jens
I think I would store data changes locally and when the device is back online I would send everything to the server and let the server synchronize it with its server database. The server can send conflicts back to the client and then let the user choose which version of the conflicted data

Re: GWT Designer - MenuBar

2012-10-10 Thread Jens
http://gwt-code-reviews.appspot.com/1726805 They changed the API from Command to ScheduledCommand recently and I would guess that GWT Designer does not respect this yet. So you best file an issue at http://code.google.com/p/google-plugin-for-eclipse/ or http://code.google.com/p/gwt-designer/

Re: TextArea vs RichTextArea

2012-10-11 Thread Jens
There are at least two (old) issues for it: http://code.google.com/p/google-web-toolkit/issues/detail?id=1127 http://code.google.com/p/google-web-toolkit/issues/detail?id=2182 In the comments someone mentioned that he has created a library: http://code.google.com/p/gwt-selection/ Maybe you

Re: TextArea vs RichTextArea

2012-10-11 Thread Jens
And searching in google gives me the following result: http://stackoverflow.com/questions/12542522/how-to-get-cursor-position-or-location-from-richtextarea-in-gwt Maybe that also works for you. -- J. -- You received this message because you are subscribed to the Google Groups Google Web

Re: What does it mean when gwt-unitCache-... is out of sync exactly??

2012-10-11 Thread Jens
It caches compilation artifacts (GWT compile and DevMode) so that iterative development is faster. When Eclipse says that this resource is out of sync with your file system it pretty much means that Eclipse has detected changes to these files since the last time Eclipse has read-in these

Re: Performance Tip for IE browsers : Java garbage collection is NOT Javascript garbage Collection

2012-10-12 Thread Jens
You have a static variable that is instantiated when its needed (lazy instantiation). private static AsyncCallbackPerson findPersonCallback; private AsyncCallbackPerson createFindPersonCallback() { if(findPersonCallback == null) { findPersonCallback = new AsyncCallbackPerson() {

Re: GWT 2.5 RC2 EntityProxy Validation

2012-10-13 Thread Jens
Doesn't look that wrong. You need to add validation annotations to the proxy class if you want to do client side proxy validation. As you want to reuse the validation annotations on the server I would think about defining an additional interface IEmployee so that your server Employee class do

Re: How to intercept this event : A click on a ScrollPanel's scrollbar ?

2012-10-16 Thread Jens
There is no onScrollbarClick event or similar. For scrollable DIV's you could listen for click events and then calculate if the click has happend inside the rectangle of the scrollbar. Not sure if this works with all browsers. See:

Re: GWT Serialization

2012-10-16 Thread Jens
Correct me if I am wrong. You have a GWT application up and running on your application server (jetty, tomcat, or similar) and now you want to move your compiled app (HTML/Javascript) to an external web server on a different domain/host. To do so you have two options: 1.) Enable CORS on your

Re: How to intercept this event : A click on a ScrollPanel's scrollbar ?

2012-10-16 Thread Jens
And ScrollPanel.addScrollHandler() does not work for both cases? -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NxR9PCjpH60J. To post to

Re: Intercept response from remote services

2012-10-16 Thread Jens
You can cast your GWT-RPC service interface into ServiceDefTarget and set a custom RpcRequestBuilder. Your custom RpcRequestBuilder should overwrite doSetCallback() and wrap the provided RequestCallback with a custom one. In RequestCallback.onResponseReceived() you have access to HTTP headers.

Re: RPC call from server to client

2012-10-17 Thread Jens
You can use a push approach where the server actively pushes data to its clients via WebSockets (works only on modern browsers and you need a server that knows WebSockets) or you can use a long polling approach (Comet) where the client makes a request to the server and the server does not

Re: RPC call from server to client

2012-10-17 Thread Jens
scalability is important for me. I want to make strong use of server push once I have a working skeleton. For example, I would like to push chess moves to all clients that are currently watching a chess board: The two players and all visitors. There are other chess servers that do this

Re: Intercept response from remote services

2012-10-17 Thread Jens
Something like this does not exists as far as I know. You can create a static factory method like Services.newXyzService(), do a global text search for GWT.create(service.class) and replace it with the corresponding factory method. After a global organize imports done by your IDE everything

Re: How to include JSP in GWT Project

2012-10-17 Thread Jens
Does your JSP file contain a script tag that points to /moduleName/moduleName.nocache.js ? See: https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects#DevGuideHostPage -- J. Am Mittwoch, 17. Oktober 2012 07:56:35 UTC+2 schrieb venu: Hi, I am new to GWT and i want to

Re: CellTable - hide/show individual columns?

2012-10-18 Thread Jens
ok, but if the user should be able to do this one would have to implement such a functionality? Yes. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: How to handle double click/enter key on the row of a datagrid ?

2012-10-18 Thread Jens
If you want to do this outside the Datagrid you can use DataGrid.addCellPreviewHandler(). The event contains all the information you need. And it is SelectionModel? super T because its less restrictive. For example you can have a DataGridInteger that holds a more generic SelectionModelNumber.

Re: RequestFactory - how to fetch object graph

2012-10-18 Thread Jens
Editor Framework: RequestFactoryEditorDriver.getPaths() is one solution. It gives you all paths needed by your Editor hierarchy. In GWT 2.5 there is a global/wildcard operator *: http://code.google.com/p/google-web-toolkit/issues/detail?id=6697 (but ** is not supported yet). I think thats all

Re: Issue with TabLayoutPanel in 2.5.0 RC1 RC2

2012-10-18 Thread Jens
Hopefully you have called uiBinder.createAndBindUi(this) after instantiating your tabPanel_? If not it won't contain any tabs. How/when do you call your render() method? Maybe you have refactored something while migrating to GWT 2.5? -- J. -- You received this message because you are

Re: keyboard shortcuts

2012-10-18 Thread Jens
You can globally listen for all browser events by using Event.addNativePreviewHandler(). Inside the handler you can globally check for shortcut keys on keydown / keyup events. But be aware that there are inconsistencies between browsers for the return values of NativeEvent.getKeyCode() and

Re: GWT client side Java object serialization

2012-10-18 Thread Jens
Is it possible to perform regular Java object serialization in the GWT client? Puh, once compiled your Java code is JavaScript code. No JVM available, no reflection available, classes/methods/variable names obfuscated. So your only chance would be a GWT generator that produces

Re: JavaEE anottation in a POJO and compile dose pojo to JS objects

2012-10-19 Thread Jens
Simply add the annotations to the classpath of GWT compiler and it should work. They won't compile to JS but the compiler needs them to load you client side classes. Also I guess you need everything on classpath that your annotations reference. The real issue you may have is that JPA providers

Re: Compile report

2012-10-19 Thread Jens
These are Java's anonymous classes. Activities/Presenters typically have quite a few of them because of Callback implementations. class MyActivity { doStuff() { service.call(new AsyncCallback() { //implement }); } } will result in Activity$1 because of anonymous

Intellij for GWT app development. Is it worth it?

2012-10-19 Thread Jens
I am thinking about moving away from Eclipse (IMHO 4.2 feels really sluggish) and switching to Intellij IDEA 12 when its released. Is anybody here that has used both Eclipse + GPE and Intellij + GWT Plugin and can share his/her experience? Having Jetbrains joining the GWT steering group I

Re: RPC call from server to client

2012-10-19 Thread Jens
Take a look at: https://github.com/Atmosphere/atmosphere https://github.com/Atmosphere/atmosphere/wiki *https://github.com/Atmosphere/atmosphere/wiki/Getting-started-with-GWT* For downloading latest binary version: http://search.maven.org/#search%7Cga%7C1%7Corg.atmosphere There are also

Re: How to define AutoBeanFactory?

2012-10-19 Thread Jens
AutoBeanUtils.getAutoBean(payload); will only return an AutoBeanIPayload instance if the method parameter already belongs to an AutoBean (see JavaDoc). So things would look like the following (from memory, hopefully its correct): //GWT client side MyAutoBeanFactory factory =

Re: CellTable with AsyncDataProvider - load performance issue

2012-10-21 Thread Jens
1.) Can't you use SQL Limit/Offset keywords to select the range? Would probably simplify your server code a bit and your DB knows what you want to do. 2.) Some (if not all) databases should be able to log slow queries if configured. If thats not possible add some time tracking and logging code

Re: Intellij for GWT app development. Is it worth it?

2012-10-22 Thread Jens
Am Montag, 22. Oktober 2012 11:21:19 UTC+2 schrieb Thomas Broyer: Not with the Google Plugin for Eclipse. I think he means full JS auto complete. Doesn't GPE only provides auto complete for calls from JSNI back to Java? -- J. -- You received this message because you are subscribed to

Re: Intellij for GWT app development. Is it worth it?

2012-10-22 Thread Jens
Am Montag, 22. Oktober 2012 17:31:02 UTC+2 schrieb Joseph Lust: However, I fear I'm also too invested in Eclipse and in many ways it does all that IntelliJ does. However IntelliJ is quicker and has support behind it. If I didn't have 3 years of memorizing every button/preference and

Re: Moving Animation

2012-10-23 Thread Jens
Use GWT's Animation class for full cross browser animation. You can implement your custom animations and also run them in parallel, e.g. a fade-in animation and a bouncing-drop animation in parallel similar to what Googles Hotel Finder uses. Other options are CSS3 transitions and/or animations

Re: Moving Animation

2012-10-23 Thread Jens
Basic example can be found in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwAnimation -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: RPC call from server to client

2012-10-25 Thread Jens
I would check the example's xml files in WEB-INF and META-INF directory to see if any servlet paths are incorrect for your deployment. Maybe you have just deployed it differently than the example expects (different webapp context root for example). Also, just to test the example, can't you

Re: Security considerations for GWT applications

2012-10-26 Thread Jens
For a secure GWT application: - *use SSL for the entire app* *- check for SSL vulnerabilities and update your server accordingly * * * - use your app servers session id and send it as payload from server to client during login and then from client to server on each request. On the server check

Re: gwt 2.5/PrecompressLinker useless with tomcat/jboss?

2012-10-26 Thread Jens
No idea if tomcat/jboss support it or not but in case they don't you can always have a web server in front of your application server. This web server would serve your static pre-compressed GWT client files and proxies remote service calls to your application server. Apache and Nginx can be

Re: curious class class not found exception

2012-10-28 Thread Jens
And gwt-servlet.jar is in your war/WEB-INF/lib folder? In your stack trace you can see: at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:207) which indicates that you are using AppEngine. The IsolatedAppClassLoader JavaDoc states that it

Re: CSS - add background-image to an existing style

2012-10-28 Thread Jens
I guess it is s.setBackgroundImage(url(img/Background/std.jpg)); The image should be loaded by the browser as soon as you have called the function and its set to the element. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-28 Thread Jens
Remember to clean up the EventListener when you don't need it anymore. Failure to do so can result in memory leaks. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: Destroy a widget

2012-10-29 Thread Jens
When you create two HelloWorld widgets each of them receives its own events. If you use @UiHandler in your UiBinder widget and you want to stop receive events for a widget without removing the widget itself from the parent (for whatever reason) you have to disable your @UiHandler

Re: GWT 2.5 Java 5 runtime(!) compatibility

2012-10-30 Thread Jens
Since November 2009 Java5 isn't supported anymore by Sun/Oracle and we are reaching 2013. So it should be fine that GWT now requires Java 1.6 and their jar files are also build using target 1.6. Also Websphere 6.1 reaches its EOL in september 2013 (increased by one year. Original date was

Re: GWT 2.5 Java 5 runtime(!) compatibility

2012-10-30 Thread Jens
Still, other then saying that it is so because it has been said so - I still don't see an argument why the gwt-servlet.jar would technically require Java 1.6. True, but some day you have to make the cut. Technically they probably have used a Java 1.6 API somewhere thats not available in

Re: GWT R PC ON SERVER START JAVA THREADS

2012-10-31 Thread Jens
You are using Google AppEngine so you must conform to their sandbox restrictions. Read the Thread passage in the docs: https://developers.google.com/appengine/docs/java/runtime?hl=en#The_Sandbox -- J. -- You received this message because you are subscribed to the Google Groups Google Web

Re: GWT, dependent projects, GWT Compiling, and deploying

2012-10-31 Thread Jens
I also have a app and a common project in Eclipse. Both are GWT enabled projects and app has common as a project dependency. Also the app.gwt.xml GWT module inherits common.gwt.xml. When you compile app using the GWT compiler it will compile everything it sees starting from the module you

Re: Cross field validation on client

2012-10-31 Thread Jens
Haven't tried it yet but as GWT BeanValidation has implemented the JSR303 TCK tests you should be able to create custom validation annotations and a corresponding validator. That way you would end up having something like @ValidPassword(repeat = repeatPassword) //custom annotation that links

Re: GWT RPC Serialization on web and app server

2012-11-01 Thread Jens
Make sure that your app server can still find the HASH.rpc file. Thats your GWT-RPC serialization policy file that the server must know in order to serialize anything that implements Serializable. If it does not find this file it falls back to the old IsSerializable mechanism and if you do not

Re: How to clear fields of editors?

2012-11-01 Thread Jens
When you want to edit a new instance (regardless if its an empty instance or not) you would create a new editor driver and call edit() with the new instance. As the editor graph represents more or less your object graph this should be enough to update the Ui. If the instance is empty the Ui

Re: How to clear fields of editors?

2012-11-01 Thread Jens
+1 except you don't have to create a new editor driver, you can reuse a previously built one. Wasn't there a memory leak somewhere in the editor framework when you reuse the driver? That was somewhere in my head while answering. But maybe its already solved. -- J. -- You received this

Re: GWT server Side - Axis2 SOAP - get xml from External Server , [ access denied (java.lang.RuntimePermission modifyThreadGroup) ]

2012-11-02 Thread Jens
If Axis spawns threads internally you can't use it on AppEngine unless you modify Axis to use AppEngines ThreadManager. http://code.google.com/p/googleappengine/wiki/WillItPlayInJava states: *JAX-WS is supported for web service clients but not for servers. To write a SOAP server on App Engine

Re: How to clear fields of editors?

2012-11-02 Thread Jens
Broyer: On Thursday, November 1, 2012 7:45:30 PM UTC+1, Jens wrote: +1 except you don't have to create a new editor driver, you can reuse a previously built one. Wasn't there a memory leak somewhere in the editor framework when you reuse the driver? That was somewhere in my head while

Re: rpc serialization without the rpc

2012-11-02 Thread Jens
How do you plan to get the payload of any GWT-RPC request to the server when using HTTP GET? Using URL parameters can be pretty unsafe because every GWT-RPC payload should contain your app's security token / session id to prevent CSRF attacks. -- J. -- You received this message because you

Re: GWT server Side - Axis2 SOAP - get xml from External Server , [ access denied (java.lang.RuntimePermission modifyThreadGroup) ]

2012-11-02 Thread Jens
If you dont plan to deploy your app to AppEngine then remove AppEngine from your project. If you want to use AppEngine then you should read AppEngine documentation and ask for help on the AppEngine group. I haven't used AppEngine so far, so I can't help you any more. Also

Re: rpc serialization without the rpc

2012-11-03 Thread Jens
You can switch out the default RpcRequestBuilder of any GWT-RPC service. Your custom RpcRequestBuilder would overwrite doCreate() to create a RequestBuilder that uses GET instead of POST. Everything else should continue to work without any further modifications. To change the default

Re: GWT 2.5.0 backwards compatibility

2012-11-05 Thread Jens
Take a look at the release notes to see if any breaking change could possibly affect GXT 2: https://developers.google.com/web-toolkit/release-notes -- J -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web

Re: GWT 2.5 RC2 EntityProxy Validation

2012-11-05 Thread Jens
Ouch! Totally forgot that you have to return the proxy on client side :( Well in that case you probably have to duplicate your validation annotations or implement the proxy interface in your entity as mentioned above. I would go with duplication as the entity shouldn't be a proxy. It should be

Re: GWT 2.5 RC2 EntityProxy Validation

2012-11-06 Thread Jens
Sounds like the rescue ;-) Indeed that works. -- J. Am Dienstag, 6. November 2012 10:13:59 UTC+1 schrieb Thomas Broyer: On Monday, November 5, 2012 9:31:30 PM UTC+1, Jens wrote: Ouch! Totally forgot that you have to return the proxy on client side :( Well in that case you probably have

Re: GXT Canvas: What is the format to define a Font?

2012-11-06 Thread Jens
It's the same as the CSS font syntax. http://www.w3.org/TR/2010/WD-2dcontext-20100624/#text -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: ValidationMessages.properties not picked up

2012-11-07 Thread Jens
Take a look at http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/main/java/com/google/gwt/sample/validation/client/ The sample uses a custom MessageResolver that in turn uses GWT's ConstantsWithLookup i18n interface. -- J. -- You received this message

Re: GWT app crashing on iOS 6

2012-11-07 Thread Jens
Can you: 1.) compile your app in PRETTY mode so you can read JS source code easily 2.) enable iOS inspector and use Safari 6 on Mac OS to connect to your iphone/ipad for remote debugging (http://moduscreate.com/enable-remote-web-inspector-in-ios-6/) 3.) In Safari 6 web inspector go to

Re: Ways to detect a site is running GWT?

2012-11-09 Thread Jens
1. Look for *.nocache.js files in body - but this could trigger on non GWT sites if someone likes that name/scheme Can produce false positive as well as false negatives. I think you can rename nocache to anything and, like in Google Groups, you don't have to use the *.nocache.js

Re: RPC interface declares throws statement, server side implementation doesn't complain about not having it

2012-11-10 Thread Jens
When you declare an exception (checked or unchecked) in an interface it means that anyone who uses this interface should be prepared to handle this exception but it does not mean that every implementation of that interface must throw this exception. Maybe an implementation exists that simply do

Re: Running a Maven/GWT project

2012-11-12 Thread Jens
To run the example: 1.) checkout: https://github.com/Atmosphere/atmosphere-extensions 2.) go into gwt/samples/gwt-chat 3.) run DevMode via mvn gwt:run https://github.com/Atmosphere/atmosphere does not contain the gwt-chat example. -- J. -- You received this message because you are

Re: Running a Maven/GWT project

2012-11-13 Thread Jens
Tried it yesterday and had the same error. Maybe Maven pulls in a library thats not really compatible with the demo so I have done mvn install in /atmosphere-extensions/gwt/ to install all the atmosphere gwt snapshots into my local repository and then re-run mvn gwt:run in the gwt-chat

Re: RPC interface declares throws statement, server side implementation doesn't complain about not having it

2012-11-13 Thread Jens
The docs talk about checked exceptions. These are exceptions that extend Exception and not RuntimeException. A checked exception is part of the API as you can not throw a checked exception without defining a throws clause on a method. Also you must use a try catch block when you want to call a

Re: Running a Maven/GWT project

2012-11-14 Thread Jens
Looks like you have to use GWT 2.5. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jAJ-r9zbYUoJ. To post to this group, send email to

Re: Running a Maven/GWT project

2012-11-15 Thread Jens
Simply check for updates in Eclipse. You should see updates for Google Eclipse Plugin and GWT SDK. GWT 2.5 has officially been released. -- J. Am Donnerstag, 15. November 2012 04:58:55 UTC+1 schrieb Magnus: Looks like you have to use GWT 2.5. Ok. I always used GWT with the eclipse

Re: Urgent help with GWT dev mode performance required

2012-11-15 Thread Jens
2-3 minutes really hurts! How large is your app? We have about 150k LOC and a refresh in Firefox takes ~5 seconds. As DevMode with Firefox seems to be leaking memory sometimes I have configured DevMode to use 1,5G heap space and 1G permgen space. Our app uses GWT-RPC (single service with lots

Re: How to tell if a servlet is running in hosted mode?

2012-11-16 Thread Jens
As the server has no idea in which mode the client runs, the client has to tell it the server. The default RpcRequestBuilder adds the header x-gwt-permutation to server requests to prevent CSRF attacks. It contains the permutation name in production mode and HostedMode when running DevMode. So

<    2   3   4   5   6   7   8   9   10   11   >