Re: Is moving away from RPC a good idea?

2024-01-13 Thread Paul Robinson
One thing I really like about using JSON for my message formats is that they are human readable (YMMV). If you're wondering whether a problem is client side or server side, or when you just want to know exactly what information the client was given, being able to read the content of messages can b

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-21 Thread Paul Robinson
Having readable network messages is very useful for debugging. It's also easy to include more data in a GWT RPC messages than you really need unless you're careful with it. Regards, Paul On Fri, 21 Jul 2023, 15:43 Ralph Fiergolla, wrote: > I think I asked the question before: as a long-term GW

Re: GWT.create() is only usable in client code!

2019-06-30 Thread Paul Robinson
Try the shared version instead of the client versionn: com.google.gwt.core.shared.GWT Paul On Sat, 29 Jun 2019, 14:20 Evan Ferrell, wrote: > I am receiving the attached error when trying to run JUnit. Please advise. > > -- > You received this message because you are subscribed to the Google Gr

Re: Stack trace not showing correct line number

2019-06-20 Thread Paul Robinson
I haven't seen proper stack traces in my app without emulation in Chrome, even in older versions of GWT. Is it possible there's a trick to making it show the real line instead of the function start, rather than a bug in 2.8.2? Paul -- You received this message because you are subscribed to the

Re: Unexpected behavior

2019-03-12 Thread Paul Robinson
I don't think you're showing us enough code. The exception indicates something is calling toString() on a null object, but there's nothing in what you've shown us that calls a toString() method. Try compiling in pretty mode with full stack traces. You'll see better error information. Paul On Tue

Re: Deobfuscated stack trace message and line-specific stack traces

2018-11-05 Thread Paul Robinson
I always deploy a version compiled with emulated stack traces alongside the regular version so that if a problem can be replicated, I can get a proper stack trace. But I still share your pain. Trying to work out which line of obfuscated JavaScript could possibly have given a null pointer exception

Re: Upload a file gwt

2018-09-12 Thread Paul Robinson
You can store the file on the server in a temporary area, returning a key to the UI. Then, when the user is ready to submit the lot, the UI sends the file's key to the server as well as the other data. The server can then move the file data to a permanent home, or mark it as permanent. Paul On

Re: Advice Needed - moving to GWT 2.8.2 from 2.7 compile error

2018-05-04 Thread Paul Robinson
Check to see if you're mixing GWT versions. Maybe more than one GWT jar file in your path. Paul On Fri, 4 May 2018, 16:09 Rachel, wrote: > I couldn't find another post with this same error but if there is one I > apologize. > We are moving a project from GWT 2.7 to GWT 2.8.2 but when we try to

Re: compilerArgs setProperty multi values - [ERROR] Unable to parse JavaScript

2017-11-30 Thread Paul Robinson
We do both: release compiles have a permutation with native stack traces for normal use, plus a "debug" version which includes emulated stack traces. We deploy both of them, but don't tell real users about the debug version unless there's a good reason to do so. Sometimes it's useful for us to be

Re: How to contact www.gwtproject.org Website?

2017-07-11 Thread Paul Robinson
I'm not a security expert either, but doesn't https stop a man-in-the-middle attack? So the only way to cause you to download the wrong thing is to compromise gwtproject.org, in which case they could just put the sha1 for their altered file on there. That's much easier than creating an alternative

Re: Debugging with developer tools

2017-06-14 Thread Paul Robinson
You can send the whole stack trace to the server and use StackTraceDeobfuscator to work out the real locations. See this recent thread: https://groups.google.com/forum/m/#!topic/Google-Web-Toolkit/z4Rg1G2MgCQ Paul On 14 Jun 2017 7:06 pm, "Harry Wagner" wrote: > Is there a way to tie an umbre

Re: Any issues running in detailed (or pretty) style in production?

2017-06-09 Thread Paul Robinson
We've done this for a long time now, and it does indeed work well. You don't get the exact line numbers, but rather the first line number of the method it's in, but that's usually enough. We also have an extra permutation for a "debug" build that sets compiler.stackMode to emulated. I set it up so

Re: JsInterop JSON.parse()ed object differs from JSNI JSON.parse()ed object

2016-12-30 Thread Paul Robinson
Have you tried modifying/simplifying the JSON to see what your odd behaviour is sensitive to? Paul -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolk

Re: DateTimeFormat issue

2016-09-19 Thread Paul Robinson
Looks to me like this bug: https://gwt-review.googlesource.com/#/c/14430/ which was (coincidentally?) mentioned today here: https://groups.google.com/d/msg/google-web-toolkit-contributors/33Zw3nP3q7o/eUSj5-eKEwAJ Paul On Mon, Sep 19, 2016 at 2:39 AM, Freddy Boucher wrote: > Hi, > > Can some

Re: CalenderUtil Date Math BUG - GWT 2.8 RC2

2016-09-01 Thread Paul Robinson
start on August 31, and set the month to September, then you find you are on October 1. On Thu, Sep 1, 2016 at 10:01 AM, Daniel Kurka wrote: > Does this code do the same thing in 2.7? > > On Wed, Aug 31, 2016 at 11:41 PM Paul Robinson wrote: > >> You don't say what part o

Re: CalenderUtil Date Math BUG - GWT 2.8 RC2

2016-08-31 Thread Paul Robinson
You don't say what part of this you think is a bug. I presume it's the fact that Aug 31 plus one month is Oct 1. If so, this is not a bug. Adding one month should do literally that, so you get September 31. But there are only 30 days in September, so this automatically becomes October 1. Paul --

Re: GWT RPC in GWT 3.0+

2016-07-13 Thread Paul Robinson
On 13 Jul 2016 9:17 a.m., "Kay Pac" wrote: > > Will the gwt serialization mechanism used in GWT-RPC remain? GWT object serialization has been plugged into the atmosphere (realtime communication/websockets) GWT extension. It would be useful to know if we should migrate away from the GWT serializati

Re: ProjectStruture

2016-02-19 Thread Paul Robinson
GWT RPC may not be supported beyond GWT 2.8, so I'd be wary of using it for a new project now. Paul On 19 Feb 2016 8:17 p.m., "Sam Wootton" wrote: > Thank you Gilberto, good advice. Im not sure it will reduce work or > achieve the 'minimal' server rewrite (or rather maximal legacy reuse), but >

Re: GWT-log 3.1.3 issues GWT 2.6.1 with

2016-01-11 Thread Paul Robinson
On 11 Jan 2016 11:13 a.m., "vaibhav gwt" wrote: > Just upgraded to 2.6.1 and ran into the following when trying to > build with gwt-log-3.1.3.jar. Your gwt-log is too old. See the compatibility information here: https://github.com/fredsa/gwt-log/wiki/GettingStarted Paul -- You received this m

Re: GWT Developer Plugin does not work in Chrome

2016-01-10 Thread Paul Robinson
It's not a bug. Chrome and Firefox removed support for the API that classic dev mode required. You can install an old browser, or embrace the future and go with super dev mode. There have been lots of discussions about this here before; the group archives will explain all the details if you want t

Re: GWT Asynchronous callback and UI

2015-12-21 Thread Paul Robinson
You appear to be adding an item without also creating that item. That suggests the item already exists, and is possibly already displayed. You can't have the same widget appearing more than once. That may be your problem. Paul On Mon, Dec 21, 2015 at 9:02 AM, wrote: > Hello all, > > I hav

Re: ant devmode doesn't work

2015-09-12 Thread Paul Robinson
Have you installed ant? Have you googled that error message? For example, googling the error message gives this as the first result: http://stackoverflow.com/questions/9262712/ant-is-not-recognized-as-an-internal-or-external-command Paul On 12 Sep 2015 5:56 pm, "Priyanka" wrote: > Hello Everyon

Re: Important videos from GWT Meet-up 2015

2015-06-20 Thread Paul Robinson
I suspect most people here just haven't quite realised the magnitude of what's planned. The plans are quite reasonable for anybody that can start from scratch (which doesn't include me). Anybody invested in GWT will have a problem. That includes Google, although there are no obvious plans for a mig

Re: How to deal with large multi-module applications on GWT

2015-06-19 Thread Paul Robinson
> All our developers have new core i7 machines with 8gb of RAM That's not enough. We used to use 16GB RAM for developers, but it was too constraining. We now use 32GB 64 bit machines. Having fast hardware makes a significant difference too. Paul On Fri, Jun 19, 2015 at 12:02 AM, Victor Krausser

Re: Gwt Editors: How to change a value programmatically

2015-03-12 Thread Paul Robinson
On 10 Mar 2015 18:56, "Manuel" wrote: > > // Copy day/month/year to the datebox > startDate.setYear(selectedDate.getYear()); > startDate.setMonth(selectedDate.getMonth()); > startDate.setDate(selectedDate.getDate()); > Perhaps you should remember t

Re: GWT rebranding

2015-02-05 Thread Paul Robinson
+1 This would be a breaking change because all gwt package names should change. But it is probably worthwhile to have a Google-free name and brand. I think this appraisal of the website and especially in comparison to the scala-js website is correct. It's probably painful after the recent changes

Re: DART vs. GWT

2014-11-20 Thread Paul Robinson
I don't have an answer for you, but here's an interesting description of how Google's Inbox uses Java as a base for building Android, web (via gwt) and iOS (via j2objc) apps. Three separate native apps sharing about two thirds of the source code. http://gmailblog.blogspot.nl/2014/11/going-under-ho

Re: Development Mode will not be supported in Firefox 27+

2014-11-03 Thread Paul Robinson
If you're using eclipse and chrome, then sdbg is good. It's not perfect, but it is *much* better than browsing Java source and setting break points in the browser. Paul On 3 Nov 2014 17:49, "David Hoffer" wrote: > I like where you might be going with your last paragraph (the IntelliJ > part)..."

Re: Why Cookies will not be stored if setting Timeout = 30 days in GWT?

2014-07-30 Thread Paul Robinson
You're using integer arithmetic for a sum that overflows beyond the maximum positive value for an integer. So 1000*60*60*24*30 is negative. You could try 1000L*60*60*24*30 Paul On 31 Jul 2014 01:53, "Tom" wrote: > This is very weird. Ok, the below code works fine > > public void setCookie(Strin

Re: ACE Editor for GWT

2014-07-14 Thread Paul Robinson
How does this compare or relate to https://github.com/daveho/AceGWT ? On Mon, Jul 14, 2014 at 6:56 PM, Alain Ekambi wrote: > The link s about the open source project. > The demo is here : http://ahome-it.github.io/ahome-client-io/ > The demo also show another library called ClientIO that helps

Re: Overlay Instruction

2014-07-14 Thread Paul Robinson
Take a look at http://eemi2010.github.io/gwt-tour/ Paul On 14 Jul 2014 08:25, "Vasu" wrote: > Hi, > I am also looking for the same. Let me know if you come across any > such a library. > > [image: Pandurang Patil on about.me] > Pandurang Patil > about.me/pandurangpatil >

Re: symbolMap file : wrong source line number ?

2014-07-11 Thread Paul Robinson
It's probably the line number of the start of the method the exception occurred in. Paul On 11 Jul 2014 22:36, "'Thomas Lacroix' via Google Web Toolkit" < google-web-toolkit@googlegroups.com> wrote: > Hello, > > While in production mode, I would like to pinpoint the root cause of a > given Trowab

Re: GWT distributed builds

2014-07-06 Thread Paul Robinson
Do you really need all 23 permissions several times per hour? Building in parallel is a good idea, but avoiding unnecessary permissions is easy and makes a big difference while developing. Paul Good afternoon, we're using GWT in our application (to be precise, not the vanilla, but SGWT) and what b

Re: Send a arraylist of objects through rpc

2014-06-06 Thread Paul Robinson
Unless each rpc call sends a large amount of data, chaining the rpc calls in the way you suggest will be much slower than sending a single ArrayList. It will also be more complicated code. So in general, you should send an ArrayList in a single rpc call. You'd have to have a good reason to do it t

Re: SuperDevMode and APT

2014-05-24 Thread Paul Robinson
On 24 May 2014 05:03, "Frank Ren" wrote: > > It's been two years. And, I was just push into this problem by Chrome dropping support for GWT plugin. i.e. I have to downgrade Firefox to version 24, or to struggle with super dev mode. > > However, both running a Firefox version 24, and a super dev mo

Re: How to use JavaScript to customize both the client and server in a consistent way?

2014-05-10 Thread Paul Robinson
You could let them write Java code instead and run it in the server only using BeanShell2. Then the syntax and interoperability issues go away. But you have to send results to the client rather than calculating directly on the client. HTH Paul -- You received this message because you are subscri

Re: synchronization problem with rpc calls

2013-11-12 Thread Paul Robinson
In the callback for the click on the hyperlink, disable the hyperlink so it can't be clicked twice. In your RPC callback, you can enable it again in the onFailure method. Presumably it should stay disabled in your onSuccess method. That will stop people from asking for two games with a double clic

Re: gwt date B U G

2013-11-01 Thread Paul Robinson
The problem is this code: Date date = new Date(); date.setYear(Integer.valueOf(y) - 1900); date.setMonth(Integer.valueOf(m) - 1); date.setDate(Integer.valueOf(d)); You found this bug when you ran it yesterday, October 31st. That's pertinent because the first line above creates a new date

Re: GWT changing style during drag event takes too long

2013-08-08 Thread Paul Robinson
Your English is very good. No problems there! I don't know the answer to your problem exactly as you're written it, but you could possibly achieve the same thing a different way. Take a look at the tree dag-and-drop method done here: https://code.google.com/p/gwt-dnd-tree/ It indicates the

Re: determine if running on client or server OR synchronize time on server/client?

2013-06-07 Thread Paul Robinson
Use com.google.gwt.core.shared.GWT.isClient() Paul On 07/06/13 15:34, Magnus wrote: > Hi, > > my chess application should trust only the server time. > > However, I have a "shared" class that is used both on server and client. > Within this class I determine the current time by creating a new Da

Re: Timezone difference issue

2013-05-29 Thread Paul Robinson
The date doesn't actually get changed. What's happening is that a java.util.Date represents an instance in time. Viewed from different timezones, that instance in time can be at different times of day and even a different day. But it's still the same instance in time. To avoid this, you might s

Re: GWT 2.5.1-rc1 available

2013-02-14 Thread Paul Robinson
While it's good to get rid of long-deprecated things, is it really a good idea to do that in a point release like this? Shouldn't it wait until GWT 2.6? I'm thinking in particular of GWTShell and GWTCompiler. Paul -- You received this message because you are subscribed to the Google Groups "G

Re: The Chrome 24 Animation bug and unstable APIs in general

2013-01-30 Thread Paul Robinson
Even better than a command line switch would be a deferred binding switch. Then you could compile and deploy something with and without experimental APIs at the same time. If something breaks you can tell customers to switch to using a different host page that uses the version compiled without e

Re: why some of the Checked RPC Exception fields arrive as nulls?

2012-12-29 Thread Paul Robinson
Your "fooModel" is a private member and nothing ever sets its value. The constructor takes a FooModel, but doesn't use it. Paul On 24/12/12 03:57, vitaliy...@gmail.com wrote: > Hello, > > I have a checked exception FooModelValidationException which is declared in > interface of an RPC service V

Re: Java Generics in GWT-RPC

2012-12-19 Thread Paul Robinson
ListDataProvider.getList() returns a list implementation that is not GWT-serializable. https://developers.google.com/web-toolkit/doc/latest/DevGuideServerCommunication#DevGuideSerializableTypes If you look at the exception you received, it should tell you (in its own idiosyncratic way) that thi

Re: SuperDevMode not so super

2012-11-14 Thread Paul Robinson
I have about 250kloc, lots of RPC and no generators or UI binder. With decent hardware, a recompile is about 7-8 seconds. With a 3-4 year old computer, it was taking about 20 seconds. Paul On 14/11/12 14:34, Paul Stockley wrote: > Our project is about 35,000 lines of client and server code. We

Re: Roadmap GWT?

2012-11-09 Thread Paul Robinson
On 09/11/12 10:01, Thomas Broyer wrote: > no decision were made, except for welcoming JetBrains as a new SC member. That's a good example of something that should have been posted to the SC group. Paul -- You received this message because you are subscribed to the Google Groups "Google Web Too

Re: Are you happy with GWT?

2012-10-05 Thread Paul Robinson
In a word: yes. You also need to decide whether to use a third party library like Sencha's GXT and SmartClient's SmartGWT. Personally, I chose vanilla GWT and have never once regretted choosing GWT or choosing not to use an external widget library. Paul On 05/10/12 16:53, Charlie Youakim wrote

Re: GWT Commercial Support

2012-10-05 Thread Paul Robinson
Vaadin provide commercial GWT support: https://vaadin.com/gwt Paul On 05/10/12 13:53, vinayak wrote: > I understand this is a old post and I have same question in Oct 2012. I am > from similar kind of company. Is there anybody who provides commercial > support for GWT ? > > On Friday, Apri

Re: Serializing different objects in one class that implements IsSerializable

2012-09-21 Thread Paul Robinson
You don't show the Polygon class, but from the error it looks like you haven't provided a zero-argument constructor. It must have one, even if it's private and you never call it. GWT-RPC needs it for anything that it serializes. Paul On 21/09/12 15:40, coffeMan wrote: > I created a class that i

Re: TextBox.setText remove the "\n"

2012-09-20 Thread Paul Robinson
TextBox is for single line text. Use TextArea for multiline text. On 20/09/12 10:16, tong123123 wrote: > as shown in attached ContetWithReturnKey1.png, the content has "\n" before > setText (content\ncontent), but after setText and then getText() again, the > "\n" is disappear(contentcontent)!!

Re: Future of GWT survey

2012-09-19 Thread Paul Robinson
One question missing from the survey that would have been interesting is the number of people using Maven with GWT. On 19/09/12 14:23, Joonas Lehtinen wrote: > What is your opinion on the future of GWT? > How should GWT develop? > What technologies should it better support? > ... > > We all would

Re: Very Big JS

2012-09-18 Thread Paul Robinson
See https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting Paul On 18/09/12 13:37, Néstor Boscán wrote: > Hi > > I have a big application that is generating a 3 MB JS. Is there a way to > divide this JS in multiple modules so they can be loaded if needed? > > Regards, > > Nés

Re: How to see Runtime Exceptions in SuperDevMode?

2012-09-13 Thread Paul Robinson
For the purposes of getting stack traces, SuperDevMode is the same as production mode. For this, you have two options: (1) Deobfuscate your stack traces on the server (see StackTraceDeobfuscator) (2) Emulated stack traces When you do either or both of these, you still don't get something quite as

Re: Ambiguity on javadoc (HTMLPanel - addAndReplaceElement() )

2012-09-12 Thread Paul Robinson
If you look carefully at the source code, you'll see that there are two methods called addAndReplaceElement(Widget, Element), it's just that one of them uses com.google.gwt.dom.client.Element and the other uses com.google.gwt.user.client.Element It's the com.google.gwt.user.client.Element versi

Re: GWT Compilation Time Performance Improvement

2012-09-05 Thread Paul Robinson
Maybe you should get more RAM...4GB isn't a lot when running all the things you need for GWT development. Alternatively, run some (or even all) of the required processes on another computer. Paul On 06/09/12 05:33, Niraj Salot wrote: > Hi Members, > > Thanks for all your suggestion/comments. >

Re: ScrollPanel.scrollToBottom has no effect

2012-08-17 Thread Paul Robinson
One of the nice things about SuperDevMode in chrome is that as you step through it in the chrome debugger, you can see exactly what the browser does and when because the browser display updates as you step through your code. In other words, if you want to know what's actually happening, you can

Re: ScrollPanel.scrollToBottom has no effect

2012-08-15 Thread Paul Robinson
Try calling scrollToBottom after the event loop has finished by running it inside a call to Scheduler.get().scheduleDeferred(...) Paul On 16/08/12 06:15, Magnus wrote: > Hello, > > I have a CellTable within a ScrollPanel with a fixed number of rows (40). > Whenever the CellTable is filled with

Re: Where Is GWT Dev Plugin

2012-08-11 Thread Paul Robinson
I don't understand why so many people are using chrome for dev mode. It's much slower in dev mode than other browsers. On Linux, I'd use Firefox. But if you use super dev mode instead, then chrome is good. Paul On 11/08/12 20:50, Jens wrote: > see: > > https://groups.google.com/d/topic/google-w

Re: Java mysql GWT

2012-08-10 Thread Paul Robinson
On 10/08/12 21:46, xxJohnnyxx wrote: > Hello, I want to connect to a mysql server from the server side of my GWT > code, like this: > > Caused by: java.security.AccessControlException: access denied > (java.lang.RuntimePermission modifyThreadGroup) > > at > java.security.AccessControlContext.ch

Re: can i specify the filename when compiling ?

2012-08-10 Thread Paul Robinson
It's only safe for the browser to cache the file *because* it's got a name that changes every time something changes. Setting the name to something fixed would defeat this. Paul On 10/08/12 08:51, wahaha wrote: > there are 3 files after GWT's compiling: > hosted.html > moduleName.nocache.js > r

Re: SuperDevoMode and Source Maps

2012-08-08 Thread Paul Robinson
Have you enabled source map support in chrome? Click the settings cog/wheel thing in the bottom-right corner, and tick "Enable source maps". Also, you must compile while the developer tools tab is open, or else it won't show the java source code. HTH Paul On 08/08/12 08:42, Adolfo Panizo Touzo

Re: Suggesting a new mode: instant in-place changes of GWT Javascript code?

2012-08-02 Thread Paul Robinson
Search for "super dev mode". It's available now in GWT 2.5RC1 Paul On 01/08/12 15:23, Dieter K wrote: > Dear all, > > This is hopefully starting a discussion that results in a GWT feature > request. Maybe/probably this was suggested before and is currently in the > works or it was rejected -- t

Re: Setting Locale language dynamically initially

2012-07-31 Thread Paul Robinson
On 31/07/12 09:24, Rana wrote: > Hello Jens, > > But, what if I don't want to use neither JSP nor PHP. Is there a way of doing > it using GWT, or JavaScript? That'll be the "whatever" in Jens' email. You can generate a host html page with whatever server-side technology you're using. If you have

Re: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
: > I have done that, now it is giving me the inherit issue, can you tell me I > can inherit all the classes that I want to inherit like this. > Can I use "*" to inherit all. > > > On Tuesday, July 17, 2012 12:14:52 PM UTC-4, Paul Robinson wrote: > > >

Re: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
On 17/07/12 16:24, Venkat wrote: > I have removed the client side code from the test case, the exception is > gone. But I got one exception that is below. I am guessing this is because I > did not specified the test folder in my Module. If yes, can you please tell > me how can I do that. Usuall

Re: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
(RemoteTestRunner.java:467) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) > > Thanks,

Re: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
On 17/07/12 15:07, Venkat wrote: > how can I test my server side logic in GWT. GWT is client-side technology. To test server code, set up tests that are independent of GWT. That is, just create regular junit tests that check your server classes work properly. Paul -- You received this message

Re: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
>[ERROR] Line 13: No source code is available for type > com.ag.sapwidgets.server.ExportDataToExcel; did you forget to inherit a > required module? > This is the problem. You are trying to convert to javascript the server class ExportDataToExcel. Either its package should be added to the se

Re: Super Dev Mode: Is there a way to start the Super Dev Mode with a server other than the embedded Jetty?

2012-07-16 Thread Paul Robinson
On 14/07/12 19:34, Brian Slesinsky wrote: > > On Thursday, July 5, 2012 9:42:26 AM UTC-7, Thomas Broyer wrote: > > > > On Thursday, July 5, 2012 10:28:06 AM UTC+2, monkeyboy wrote: > > Thanks Thomas for the clarification. > I now understand that I must have two servers running

Re: Date Serialization

2012-07-13 Thread Paul Robinson
the data comes and to which I have no access. > > Daniel > > (And sorry for the late answer.) > > Am Dienstag, 3. Juli 2012 23:41:08 UTC+2 schrieb Paul Robinson: > > On 03/07/12 21:41, Daniel F. wrote: >> >> Am Dienstag, 3. Juli 2012 14:42:11 U

Re: Date Serialization

2012-07-03 Thread Paul Robinson
On 03/07/12 21:41, Daniel F. wrote: > > Am Dienstag, 3. Juli 2012 14:42:11 UTC+2 schrieb PhiLho: > > On 30/06/2012 16:37, Daniel F. wrote: > > I need to parse serialized *java.util.Date* values in Python. Where can > I find information > > on the timestamp that represents date and time

Re: How to use Super Dev Mode

2012-07-02 Thread Paul Robinson
On 23/06/12 12:30, Jens wrote: I think currently the codeserver only serves the compiled JavaScript of your app. So you still have to use a server that serves your server side code. No, it serves source too. As Brian said, use -src arguments to the code server. 3.) copy your apps host html pa

Re: GWT Application Patches

2012-06-15 Thread Paul Robinson
On 15/06/12 04:10, jfiallo wrote: I'm fairly new to developing with GWT. I was wondering if there's a way to 'patch' an existing gwt application, that is: update just a portion of an app that a customer might already be using (ex. a java class that was modified). The simple answer is no. It's

Re: SuperDevMode and APT

2012-06-15 Thread Paul Robinson
ccarelli wrote: Great idea! It should work on GAE too using UrlFetch api to talk with the code server. Could you share some pieces of code, please? -- Inviato con Sparrow <http://www.sparrowmailapp.com/?sig> Il giorno giovedě 14 giugno 2012, alle ore 11:33, Paul Robinson ha scritto: On 13

Re: SuperDevMode and APT

2012-06-14 Thread Paul Robinson
On 13/06/12 18:53, Andrea Boscolo wrote: I can confirm that copying the CodeServer's .gwt.rpc files in the local war dir, works but it's a pain: every time they change, they need to be copied. There's an alternative to copying gwt.rpc files. I've changed my app so that when it looks for the se

Re: Resolving client issues when emulated stack trace is not available

2012-05-31 Thread Paul Robinson
You can deobfuscate non-emulated stack traces. Check out com.google.gwt.logging.server.StackTraceDeobfuscator You need to arrange for the symbol maps created at compile time to be available. Note that you can also set up another permutation so that you have emulated stack traces or not, and se

Re: item with hover menus

2012-05-22 Thread Paul Robinson
You can add a MouseOverHandler to find out when the mouse becomes over a widget, and then show a pop-up menu inside the handler. If each item can have a different menu, then maybe you need the handler to ask the item for its menu. If you're using widgets that don't have an addMouseOverHandler m

Re: Firefox 12 release

2012-04-30 Thread Paul Robinson
On 30/04/12 15:23, Piergrossi, Mark J wrote: Alan: Just wanted to say thank you man. The plug-in works great. It is a shame that Google couldn't create these in a timely manner. Your effort is greatly appreciated -- especially from those of us that have to get real work done. Alan is a Goog

Re: RPC serialization/deserialization is very slow

2012-04-25 Thread Paul Robinson
On 25/04/12 11:17, Jacob Glusted Madsen wrote: Does anyone have any sugestions on how to make the RPC serialization/deserialization run faster ?? The biggest difference you can make to RPC speed is to send less data over the network. You should make sure you're only sending stuff that you rea

Re: GWT - DTO

2012-04-18 Thread Paul Robinson
Thanks for clarification, Paul. BTW, do you know if there anywhere I could find documents on the serialization tricks like this. You need to read the docs carefully about what it means to be GWT serializable: https://developers.google.com/web-toolkit/doc/latest/DevGuideServerCommunication#DevGui

Re: GWT - DTO

2012-04-18 Thread Paul Robinson
On 18/04/12 12:02, Roy Yeung wrote: Take a look at this, http://code.google.com/p/google-web-toolkit/issues/detail?id=7213 May be someone can try out and confirm. My comment came from my previous experience in earlier version. That issue is specifically about how abstract classes are treated wh

Re: GWT - DTO

2012-04-18 Thread Paul Robinson
On 18/04/12 10:44, Roy Yeung wrote: One of my experience in DTO: "Attribute in parent class would not be serialized in GWT-RPC" A extends B { String label } B{ String name: } If A is a DTO, the attribute name would not be serialized object object instaniated from class A. Please corre

Deferred binding and static analysis

2012-04-04 Thread Paul Robinson
I have a problem with deferred binding or perhaps GWT's static analysis not behaving quite the way I thought it did. I have a class that looks like this: public abstract class Mode { public abstract boolean isDebug(); } and I have two subclasses, one with a hard-coded value of false for isD

Re: How to compile a particular class

2012-03-01 Thread Paul Robinson
3/12 09:41, Deepak Singh wrote: ok. But will it be a good practice if module B inherits module A for just to use a single class AbcDTO ? Thanks Deepak On Thu, Mar 1, 2012 at 1:58 PM, Paul Robinson mailto:ukcue...@gmail.com>> wrote: If you don't want module B to inherit module A, the

Re: How to compile a particular class

2012-03-01 Thread Paul Robinson
If you don't want module B to inherit module A, then create a new module that sits alongside A that includes AbcDTO and have B inherit that. Paul On 29/02/12 21:34, Deepak Singh wrote: Hi All, I have the following scenario. In GWT application, i have two seperate modules, not inherited one f

Re: flex table help

2012-02-23 Thread Paul Robinson
public class MyTable extends FlexTable { public MyTable() { sinkEvents(Event.ONMOUSEOVER | Event.ONMOUSEOUT | Event.ONCLICK); } public void onBrowserEvent(Event event) { Element td = super.getEventTargetCell(event); Element tr = td == null ? null :

Re: GWT Compiler - java.io.IOException: Too many open files

2012-02-15 Thread Paul Robinson
When building a ClientBundle with images, the compiler holds all the source image files open at the same time, even if you never refer to the image in your code. This can be a problem if you've got a lot of images in the bundle interface. I think this is probably a bug, and I thought there was

Re: Separate client and server implementations of a class

2012-02-07 Thread Paul Robinson
Look for "super-source" here: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html and you can also google "super-source" if you need more. HTH Paul On 07/02/12 17:06, Antón Kuranov wrote: Hello, I have a problem. How to make a separate implementations of the same clas

Re: How to check ip address in GWT?

2012-02-07 Thread Paul Robinson
On 07/02/12 09:49, Edwardxiong wrote: But hard to imagine that there are no standard method in GWT to do this job. GWT is a client-side technology. Depending on what server-side technology you use, you will have different ways of identifying the client's IP in the server. From a servlet (and h

Re: How to check ip address in GWT?

2012-02-07 Thread Paul Robinson
This depends entirely on what server-side technology you choose to use. It's not really a GWT thing. Paul On 07/02/12 03:15, Edwardxiong wrote: My website is a pure GWT site. It need members to login with their account and password. To prevent multiple users login with one same account, I need

Re: Distinct modules, almost same package fail :-(

2012-01-16 Thread Paul Robinson
Define a module com.package.root.app.shared that contains the shared folder, and then have other modules inherit it using Paul On 16/01/12 06:11, n3k0 wrote: I recently joined this group, the reason is the following question. I have a Gwt app, and i have to share classes between modules, i m

Re: How to handel Day Light Saving in GWT2.0

2012-01-16 Thread Paul Robinson
ver located zone and do the need full conversation. On Sun, Jan 15, 2012 at 11:53 PM, Paul Robinson mailto:ukcue...@gmail.com>> wrote: Timezones are a pain in javascript because it just doesn't do them. If you have a javascript Date on the client, it will always display in

Re: How to handel Day Light Saving in GWT2.0

2012-01-15 Thread Paul Robinson
Timezones are a pain in javascript because it just doesn't do them. If you have a javascript Date on the client, it will always display in the client's timezone. If you want to apply timezone offsets, you must do that on the server. You can't then simply transfer the resulting java.util.Date vi

Re: Initializing Hibernate

2011-12-27 Thread Paul Robinson
This really depends on how you set up your server, but you will probably have a servlet that is used for communication with your GWT client. So you can put your initialization code in your servlet's init() method. HTH Paul On 24/12/11 17:16, Blake wrote: Greetings, I want to use Hibernate wi

Re: Compiler errors: NullPointerException and IOException

2011-12-14 Thread Paul Robinson
On 14/12/11 10:41, Thomas Broyer wrote: But the "too many open files" is a strong indication you need to bump the "ulimit -n". If you have a resource bundle with a large number of images, it seems the gwt compile likes to have them all open at the same time, regardless of whether you actu

Re: Service return type best paratice

2011-12-08 Thread Paul Robinson
You're correct. Best practice for choice of return type in an RPC interface is the exact opposite from what you would normally use in Java. That is, you should be as specific as possible to avoid forcing GWT having to generate serialization code for every implementation of Set or List etc. Pau

Re: GWT compiler question(s)

2011-11-28 Thread Paul Robinson
Compile in PRETTY mode, and then you can read the generated javascript. On 28/11/11 15:11, David Vree wrote: Is there any kind of a reference doc that shows what the GWT compiler creates in Javascript for various kinds of Java code? Specifically, I am curious what the GWT compiler generates for

Re: a mistake when set backgroun-color value

2011-11-28 Thread Paul Robinson
It's not a bug. Or at least, it's not a bug in GWT. This is the way CSS works with javascript...whenever you set styles in javascript you must use camel case, and in a css file you use hyphens. GWT was trying to stop you from making a mistake by pointing out that you had a hyphen in your css wh

Re: call static gwt method from js file?

2011-11-23 Thread Paul Robinson
Take a look at gwt-exporter: http://code.google.com/p/gwt-exporter/ Paul On 23/11/11 16:30, Dennis Haupt wrote: is there any way to call a static method of one of my gwt client classes from pure js code? i'm not talking about calling a method from inline javascript inside the gwt class, that

  1   2   3   4   5   >