Re: GWT3: code splitting

2015-11-25 Thread RyanZA
I think the goal was to implement all of those kind of optimizations using the javascript closure compiler.. so dead code elimination and shrinking and code-splitting would all be done by the closure compiler. I'd guess the GWT code would remain similar, and the output javascript would use

Re: Making an RPC call after a JSNI callback

2014-02-13 Thread RyanZA
You definitely don't want to be sending raw audio over the web to your server - it's huge. What you want to do is take that raw audio, convert it to an ogg or similar using something like https://github.com/muaz-khan/WebRTC-Experiment/tree/master/ffmpeg Then you'd take the ogg output and upload

Re: How to do validations in GWT MVP Pattern

2014-02-10 Thread RyanZA
Slightly off topic, but do you know if the hibernate-validation support will be upgraded to version hibernate validator 5? hibernate-validator-4.1.0.Final.jar requires on an old slf4j, and it plays a bit of havoc when including it in projects that require modern sl4j. On Monday, February 10,

Re: GWT 2.6.0 now available

2014-02-02 Thread RyanZA
There was some talk about Java8 support in GWT - obviously with all the callbacks needed by GWT this would be really helpful. Is there any ETA yet on when Java8 lambdas will be usable in GWT? I think it will be huge in making GWT much better. On Friday, January 31, 2014 12:23:45 AM UTC+2,

Inline webworkers

2013-08-01 Thread RyanZA
How difficult would it be to integrate something like inline webworkers into GWT? An example of this functionality in normal javascript: https://github.com/EtienneLem/architect Would be very nice if GWT could do something like WebWorkers.runAsync(new Runnable(){...}, new Callback(){ ... Object

Re: GWT website moved to gwtproject.org

2013-07-30 Thread RyanZA
Something like this would be great: http://scala-lang.org/ On Saturday, July 27, 2013 8:03:07 PM UTC+2, salk31 wrote: Anyone like this one? http://html5up.net//uploads/demos/minimaxing/ Might need to replace the jquery code ;) -- You received this message because you are subscribed

Re: Switching between two screens take a long time

2013-07-24 Thread RyanZA
You're probably doing a lot of work all at once to display the page, so it takes awhile to show up. You can either try to move some of the logic to deferred calls so it can run after the screen update, or you can first switch in a loading page, and then show your screen. The browser tab will

Re: Does the Google App Engine Support Java/J2EE Web Application

2013-07-24 Thread RyanZA
http://aws.amazon.com/ec2/ https://cloud.google.com/products/compute-engine https://www.digitalocean.com/ http://www.windowsazure.com/en-us/ On Wednesday, July 24, 2013 4:21:44 PM UTC+2, Iman Lechgar wrote: Hi, Richard please what do you mean by VM-based hosting service ??? any examples ?

Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production

2013-07-18 Thread RyanZA
Jens, even with source maps in Chrome, I've been unable to get stack traces to work. They still print out poorly in production when an exception is hit - the exceptions ignore the source maps entirely. I asked previously if there is a way around it, but apparently it's a known issue - so I

Re: Issues with GWT deployed to Tomcat (not AppEngine) and using javax.mail server-side

2013-07-07 Thread RyanZA
Hey First, as long as the code is not compiled by GWT, GWT has zero effect on it. So your problem is likely not GWT related. It's difficult to tell from your error 'The API package 'mail' or call 'Send()' was not found.' - I've never seen a java error like this one before. Do you maybe have

Re: GWT.create conference - call for presentations

2013-07-07 Thread RyanZA
Will this presentation be available on Youtube afterwards? I can't make it to SF or EU, but a talk like Benjamin's sounds very interesting. I'm sure I'm not alone! On Sunday, July 7, 2013 10:11:51 AM UTC+2, Joonas Lehtinen wrote: Sounds very interesting. Could you submit presentation

Exception stack traces in superdevmode

2013-07-04 Thread RyanZA
The docs/information for how to get stack traces working in superdevmode are very, very poor. By the sound of it, the two options are: (1) Deobfuscate your stack traces on the server (see StackTraceDeobfuscator) (2) Emulated stack traces However, I can't get either of these to work in

Re: Uibinder inheriting and extending css classes (not just sharing them), best method?

2013-06-15 Thread RyanZA
I might be way off here, but is there any reason to extend myTestClass at all? You can have multiple css classes per element, so simply doing: ui:style .myLOCALTestClass{ ...more properties specific for this binder...} /ui:style And then assigning both myTestClass and myLOCALTestClass to the

Re: LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread RyanZA
Vaadin has a special linker that should let you use SASS. I haven't tried it though. https://vaadin.com/blog/-/blogs/link-to-the-client-side-from-sass On Friday, June 14, 2013 3:23:43 PM UTC+2, Ed wrote: Hi, I am curious how people use LESS/SASS/... etc.. in GWT i.c.m. GWT Clientbundle

asm.js

2013-05-23 Thread RyanZA
Have a quick read through this article if you don't know what asm.js is: http://arstechnica.com/information-technology/2013/05/native-level-performance-on-the-web-a-brief-examination-of-asm-js/ With firefox already supporting it, GWT should have the firefox compile target target asm.js for, at

gwt:run-codeserver with atmosphere sample

2013-04-14 Thread RyanZA
When running gwt:run on this atmosphere sample, everything works fine: https://github.com/Atmosphere/atmosphere-extensions/tree/master/gwt20/samples/gwt20-demo However, when running gwt:run-codeserver the java code is compiled properly, but the .jsp and servlets aren't copied over/available.

Re: Is GWT Consulting a viable career path?

2013-02-15 Thread RyanZA
Not claiming to be an expert here, but from my experience GWT consulting is probably not viable. This would depend on if you have contacts/inroads into companies already using GWT. You'd probably just be better off going with plain Java consulting which is an enormous market, and it really

Re: GWT RPC future ?

2013-02-07 Thread RyanZA
There is always RestyGWT - http://restygwt.fusesource.org/ I've been using it recently and it works very nicely in combination with Jersey. I'm not sure on speed compared to GWT-RPC though, you'd need to test. I haven't had any speed problems so far though. RestyGWT will let you use raw json

Re: How to embrace asynchrony in GWT apps?

2013-02-06 Thread RyanZA
As far as I can tell from your description, best practices for something like this would be to use an event bus rather than the facade. You would have your presenter listen for both local data and RPC data on the event bus. You would have the RPC system and the local data system both listen for

Re: How to embrace asynchrony in GWT apps?

2013-02-06 Thread RyanZA
and it will not block the client. thank you! On Wednesday, February 6, 2013 8:45:23 AM UTC-5, RyanZA wrote: As far as I can tell from your description, best practices for something like this would be to use an event bus rather than the facade. You would have your presenter listen for both

Re: Canvas dynamical size?

2013-01-19 Thread RyanZA
Make sure that the actual container your uibinder is using is a RequiresResize. Usually you use a Composite for UiBinder - if that's the case, change it to a ResizeComposite On Friday, January 18, 2013 5:07:02 PM UTC+2, membersound wrote: Could you give me the link of your working example?

Re: Eclipse, GWT, which class to use and how to call it via a hyperlink?

2013-01-17 Thread RyanZA
You have mistaken the 'Hyperlink' class - and yes, it is a common/easy mistake to make because of the naming. Hyperlink is a special type of link that deals with the GWT history stack. You sound like you are just looking for a simple html link, which is called an Anchor (a tag). You use it

Re: GWT webapp for local desktop application.

2013-01-16 Thread RyanZA
Since you're using eclipse, the easiest way is to grab the google eclipse plugin https://developers.google.com/eclipse/ Once installed, click the blue icon at the top left, it will drop down a menu, and you can select compile there. Then you can run run the .html produced file directly. On

Re: Access to Java class variable during runtime

2013-01-11 Thread RyanZA
Hi No need to go so extreme - https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI#methods-fields You can access static java methods from javascript as described in that link. On Friday, January 11, 2013 2:59:46 PM UTC+2, Michael Vogt wrote: Hello. I would like to

Re: Access to Java class variable during runtime

2013-01-11 Thread RyanZA
() { return Class1.counter; } public static native void exportStaticMethod() /*-{ $wnd.counter = $entry(@mypackage.Class1Exposer::getClass1Counter()); }-*/; } On Friday, January 11, 2013 4:05:53 PM UTC+2, RyanZA wrote: Hi No need to go so extreme - https

Re: How to preserve session state with a canvas?

2013-01-08 Thread RyanZA
First you need to get the data from the canvas so you can save that. Use this method: http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/canvas/client/Canvas.html#toDataUrl%28%29 Now for session you have 2 options: 1) You can transmit this data to your server in an http

Re: How to only allow digits to be entered in a textbox?

2013-01-08 Thread RyanZA
Grab this code from stackoverflow, should do what you want http://stackoverflow.com/questions/2865647/solution-for-numeric-text-field-in-gwt On Monday, January 7, 2013 4:55:44 PM UTC+2, membersound wrote: Hi, I have a textbox where I want to user to only enter digits. Moreover I want to

Re: Changing label style in uibinder?

2013-01-07 Thread RyanZA
Hi Thomas Do you know if there are any plans to move the gwt-* css styles into the CssResource system directly? It's confusing to have all of the default GWT widgets use external styles when it's also recommended for users to use CssResource? On Monday, January 7, 2013 2:30:49 PM UTC+2, Thomas

Re: GWT Crawlable (SEO)

2012-12-30 Thread RyanZA
Check out this link, specifically point 3 on how to set up a servlet filter that works with _escaped_fragment. https://developers.google.com/webmasters/ajax-crawling/docs/html-snapshot You now have two choices: in the link above, they use a java WebClient ( http://htmlunit.sourceforge.net/ ) to

Re: Alignment of FocusPanel with PCT?

2012-12-27 Thread RyanZA
You can (and should) just use plain html and css for this. Remove your horizontal panel, and then layout the child focuspanels using css styles (that you either declare inside the uibinder.xml or in a cssresource). Relying on tables for layout usually doesn't work that great in the long run.

Re: How to capture visible columns in smart GWT List Grid

2012-12-27 Thread RyanZA
Best place to ask this is on SmartGWT forums : http://forums.smartclient.com/forumdisplay.php?f=14 On Wednesday, December 26, 2012 5:19:52 PM UTC+2, Subramanian Narayanan wrote: Hi, I wanted to interchange rows and columns in my ListGrid. In my current implementation, i capture the

Re: AJAX crawling scheme

2012-12-23 Thread RyanZA
You generally need to do more than #! as GWT is all javascript.. However, cleanest approach is to make your own PlaceHistoryMapper - you can then control exactly how places are turned into tokens. You will also need to provide html snapshots though, which is a lot tougher... On Sunday,

Re: using autobeans in a gwt-rpc call

2012-12-23 Thread RyanZA
Really great option if you have the flexibility to use it - use RESTful services - https://www.google.co.za/search?q=RESTful On the server side you can use Jersey(JAX-RS) to make REST services that can use POJOs to automatically map to JSON/XML - http://jersey.java.net/ and

Re: Background css gradient

2012-12-23 Thread RyanZA
background-image: literal(-ms-linear-gradient(top, #000 20%, #fff 80%)); You can't set a gradient as a background *image* - only images can be set with the background-image tag... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: if change css, need restart the server?

2012-12-23 Thread RyanZA
Documentation is really bad for CSS resource - don't think there is even any CSS code in the documentation itself... Css file my.css would be placed in the same folder as 'MyResources.java' file If my.css looks like the following: .className { width:100px; } .something { width: 200px; }

Re: SASS Compiler

2012-12-22 Thread RyanZA
This is pretty awesome - scss is a superset of css3, so including this linker means that GWT CSS can now fully use CSS3? It shouldn't affect runtime javascript size, or compile time (much) or anything like that, as it just unplugs the GWT CSS compiler, and plugs in the CSS3/SCSS compiler,

Re: if change css, need restart the server?

2012-12-21 Thread RyanZA
It could be something with your setup. Using normal GWT dev mode with firefox, I can change my compiled GWT .css (css resource), hit F5 in the browser, and I see the css changes right away. If you are using css in your WAR folder, your browser may be caching it. Try hit shift+f5 On Friday,

Re: Error processing @WithTokenizers, cannot find type

2012-12-21 Thread RyanZA
It appears to depend on the compiled GWT code to find the correct class - but it runs before the compilation step. So new classes don't appear until it successfully compiles. eg. You create a new .java class and add it to the tokenizer. Try to compile and it will fail. Remove the annotation

Best way to use webfonts in GWT?

2012-12-21 Thread RyanZA
The GWT CSS (clean.css, chrome.css, etc) all have a ton of the following: .gwt-TextBox { font-family: Arial Unicode MS,Arial,sans-serif; } What is the best way to overwrite these strange classes with a webfront family, so that it will conflict as little as possible with future GWT

Re: Hit detection for GWT canvas - which strategy for drawings?

2012-12-20 Thread RyanZA
First option is definitely best, but you need to expand it slightly: Use a bounding box around every shape, so you can do an O(1) check if the click is inside the bounding box (click.x box.left, click.x box.right, etc) If the click is inside the bounding box, then you can run normal edge

Re: Touch/Tap and Hold Event in GWT

2012-12-20 Thread RyanZA
You will want to listen for touch start events - and when one fires, you need to start a timer with a 1-3 second timeout. If the timeout fires, then it is a long touch. You need to also listen to touch end and touch cancelled events - if one of these fires, you must cancel your timer. On

Re: GWT Cells - Unnecessary headache?

2012-12-20 Thread RyanZA
Surely opposite is better? GWT should remove all widgets from the base GWT, and then we can add in widget packages - so if our UI is all CellList stuff then we don't need things like FlexGrid. If we are using RootLayoutPanel, we don't need RootPanel, etc. It also makes GWT much easier to

Re: Hit detection for GWT canvas - which strategy for drawings?

2012-12-20 Thread RyanZA
, 2012 8:29:40 AM UTC-5, RyanZA wrote: First option is definitely best, but you need to expand it slightly: Use a bounding box around every shape, so you can do an O(1) check if the click is inside the bounding box (click.x box.left, click.x box.right, etc) If the click is inside

Re: Hit detection for GWT canvas - which strategy for drawings?

2012-12-20 Thread RyanZA
tlll 3 or 4am, much to the dismay of our loved ones ;-) On Thursday, December 20, 2012 1:00:15 PM UTC-5, RyanZA wrote: The check itself is obviously O(1) per check, as opposed to O(num of lines) for his original proposal (iterate all shape components) - and the 'etc' should have kind

Re: Equivalent to javascript confirmdialog ind GWT

2012-12-19 Thread RyanZA
? On Wednesday, December 19, 2012 11:56:42 AM UTC+2, Thomas Broyer wrote: On Wednesday, December 19, 2012 8:43:36 AM UTC+1, RyanZA wrote: Hey The 'proper' way to do the confirm dialog is to use the Activies and Places framework in GWT. Activities' mayStop relies on PlaceChangeRequestEvent

Re: Equivalent to javascript confirmdialog ind GWT

2012-12-19 Thread RyanZA
Awesome, thanks! On Wednesday, December 19, 2012 12:42:31 PM UTC+2, Thomas Broyer wrote: On Wednesday, December 19, 2012 11:33:15 AM UTC+1, RyanZA wrote: Thanks Thomas, clears it up. As an aside, is there a way to work out which event the mayStop() is being called for? So you could

Re: Dynamic canvas resize without grawings rescaled?

2012-12-18 Thread RyanZA
When you resize an html5 canvas, the contents will be cleared. You can get around this by creating a second canvas without attaching it to the DOM, and then 1.drawing the original canvas on to the new temporary canvas 2.resize the original canvas (which will clear it) - make sure to use

Re: Equivalent to javascript confirmdialog ind GWT

2012-12-18 Thread RyanZA
Hey The 'proper' way to do the confirm dialog is to use the Activies and Places framework in GWT. https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces#Activities /** * Ask user before stopping this activity */ @Override public String

Re: My compiled GWT code runs10 times slower in production mode than hosted developer mode

2012-12-16 Thread RyanZA
As can be seen here, javascript is a lot slower than java for doing number crunching: http://dyn.com/browsers-vs-servers-using-javascript-for-number-crunching-theories/ So, 2 seconds to 25 seconds is possible. It does feel a bit high though, which browser are you testing in? Difference between

Re: Validating RPC Serialization at Compile Time?

2012-09-18 Thread RyanZA
-libraries.googlecode.com/git-history/release/javadoc/com/google/common/annotations/GwtIncompatible.html On Saturday, September 15, 2012 4:34:48 PM UTC+2, RyanZA wrote: Better way to handle this would be great.. Obvious response to this is have unit tests to check if gwt-rpc works for each

Re: Validating RPC Serialization at Compile Time?

2012-09-15 Thread RyanZA
Better way to handle this would be great.. Obvious response to this is have unit tests to check if gwt-rpc works for each class. This gives a problem in complex object graphs with multiple descendants where some are meant to be used over gwt-rpc and some aren't, etc. Having the compiler

Re: GWT programming with Eclipse Xtend

2012-08-25 Thread RyanZA
Xtend is really nice and has some very nice features, but it feels a bit like c++ operator overloading -- really nice to add operator overloading till you or someone else comes in a years time and has to double check every + to make sure it really is a plus and not something else... Basically,

Re: GWT call-back BUG

2012-08-25 Thread RyanZA
Hi I could be way off here, but it looks like a SmartGWT framework bug? You should check the SmartGWT issue list: http://code.google.com/p/smartgwt/issues/list On Thursday, August 23, 2012 5:26:31 PM UTC+2, ILoveGWT wrote: Hi All, One of the GWT Bug(Sorry, as I think It's a Bud) ate my

Re: GWT 2.5 change to provided=true for HTMLPanel

2012-08-20 Thread RyanZA
Also, I'm using 2.5.0-rc1 because of the Maven plugin. Pete On Monday, July 23, 2012 4:48:13 AM UTC+10, RyanZA wrote: Previously in GWT 2.4 and below, this would work: UI Binder: g:HTMLPanel ui:field=myPanel / Code: @UiField (provided=true) HTMLPanel myPanel; myPanel = new HTMLPanel

Re: LayoutPanel animation with Canvas

2012-08-10 Thread RyanZA
:29:36 PM UTC+2, RyanZA wrote: I have a layout panel with two child panels, with one of the children being a HTML5 canvas. It all works well until I try to use the animate() method of the parent canvas to move the children around. It makes the canvas lose its image and reset to transparent

LayoutPanel animation with Canvas

2012-08-08 Thread RyanZA
I have a layout panel with two child panels, with one of the children being a HTML5 canvas. It all works well until I try to use the animate() method of the parent canvas to move the children around. It makes the canvas lose its image and reset to transparent. Any idea why animate() would do

Re: Eclipse Update has broken all GWT Projects?

2012-07-29 Thread RyanZA
I've seen this before. To fix it, just go to properties for the project, open the 'Google' section, then select 'Web Toolkit'. Change to 'Use specific SDK' and then pick a valid one. If there are no valid ones, just add the path manually in 'Configure SDKs'. At least, that's always worked for

GWT 2.5 change to provided=true for HTMLPanel

2012-07-25 Thread RyanZA
Previously in GWT 2.4 and below, this would work: UI Binder: g:HTMLPanel ui:field=myPanel / Code: @UiField (provided=true) HTMLPanel myPanel; myPanel = new HTMLPanel(foobar); In GWT 2.5, this now gives an error: (gwt source) // Make sure that, if there is a UiField for this panel, it

[GWT 2.5]

2012-07-25 Thread RyanZA
Previously in GWT 2.4, I was using uibinder's provided=true feature to add my own panels: (uibinder code) g:HTMLPanel ui:field=myPanel / (java code) @UiField (provided=true) HTMLPanel myPanel; In GWT 2.5, this no longer works and gives the error that it isn't supported: (gwt source)