Lienzo 2.0.28-SNAPSHOT - nearing release of 2.0 series.

2014-12-27 Thread Dean S. Jones
-directional JSON, etc. I have benchmarked and tweaked this thing and it is MUCH faster than many other toolkits like it out there. The github repo, links to demo's and there is a ( now incomplete github wiki ) can be found here: https://github.com/ahome-it/lienzo-core Cheers, Dean S. Jones -- You

Re: gwt-kinetic a thin wrapper for Kinetic.js

2014-03-25 Thread Dean S. Jones
I'm not trying to be a party-pooper, or belittle the work you have done in any way, but I have already been down this route, and decided to implement the same API in a project called Lienzo https://github.com/emitrom/lienzo which is PURE GWT but its not 100% parity complete with Kinetic 5.0,

Re: gwt-kinetic a thin wrapper for Kinetic.js

2014-03-25 Thread Dean S. Jones
to continue on Kinetic, or help us flesh out some small remaining pieces? It seems to me wasteful, as you definitely have talent, to work on basically the same thing. On Wednesday, March 26, 2014 1:09:27 AM UTC-4, Dean S. Jones wrote: I'm not trying to be a party-pooper, or belittle the work you have

Re: solution for vector graphics with GWT?

2013-08-08 Thread Dean S. Jones
True. I had previously coded up a full GWT binding for Raphael, some years back, I still have that around. The only issue is to get Raphael to really work nice with GWT events, I had to bind the Raphael Elements up into Widgets, and that was fine with a couple hundred primitives, but when it

Re: solution for vector graphics with GWT?

2013-08-08 Thread Dean S. Jones
True. I had previously coded up a full GWT binding for Raphael, some years back, I still have that around. The only issue is to get Raphael to really work nice with GWT events, I had to bind the Raphael Elements up into Widgets, and that was fine with a couple hundred primitives, but when it

Re: solution for vector graphics with GWT?

2013-08-07 Thread Dean S. Jones
http://www.emitrom.com/lienzo On Tuesday, August 6, 2013 7:27:42 AM UTC-4, Magnus wrote: Hi, I am looking for a method/library for displaying vector graphics in my gwt chess application. What looks good at first sight is lib-gwt-svg: code.google.com/p/lib-gwt-svg/ But there seems to be

Re: Repainting a canvas - clear or create new object?

2013-04-12 Thread Dean S. Jones
Well, you could save yourself a bit of work and take a look at Lienzo http://www.emitrom.com/lienzo /open-source-public-service-announcement-only ;-) On Wednesday, April 3, 2013 10:13:34 AM UTC-4, membersound wrote: Hi, when a Canvas is often cleared and redrawn (for example during a drag

Re: How to remove drawn elements on the canvas?

2013-01-24 Thread Dean S. Jones
You could always have a look at our Canvas toolkit http://www.emitrom.com/lienzo Pan/Zoom will be in 1.1, out by the end of the month On Sunday, January 20, 2013 3:01:39 PM UTC-5, membersound wrote: Hi, I draw ellipses on a canvas on click, and want to remove them on doubleclick.

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

2012-12-20 Thread Dean S. Jones
I had posted, why reason it was deleted? On Thursday, December 20, 2012 6:14:43 AM UTC-5, membersound wrote: I'm creating some kind of drawings/flowchart/UML-diagram like tool with GWT Canvas (Java). For hit-detection of my drawings I could imagine 3 different strategies, but I do not

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

2012-12-20 Thread Dean S. Jones
A bounding box check isn't O(1), it's O(n) for n shapes, THEN you have to run edge detection, and only then if all your shapes are Polygons. The issue with bounding boxes is that, in all but the most trivial cases, they are expensive to compute. If you add in any Affine Transforms ( rotate,

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

2012-12-20 Thread Dean S. Jones
best to go with a library that has already had all of this done for him - provided he can fit his flowchart/UML code into the Lienzo scene graph. :) On Thursday, December 20, 2012 6:28:54 PM UTC+2, Dean S. Jones wrote: A bounding box check isn't O(1), it's O(n) for n shapes, THEN you have

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

2012-12-20 Thread Dean S. Jones
on the web) - and can be easily extended with B-trees in the future if time allows / performance requires it. Most of the HTML5 stuff you see on the web using canvas uses this approach after all. On Thursday, December 20, 2012 8:26:33 PM UTC+2, Dean S. Jones wrote: As long as the shapes

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

2012-12-20 Thread Dean S. Jones
Use of a bounding box over every shape isn't O(1), it's O(n) for n shapes, but then you still have to do a real' hit detection, which is mathematically much more interesting for things like bezier and quadratic curves, etc, unless you decompose the curves to polylines, this isn't all that fun.

Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
GWT Visualization is just for charting, and uses Googles services, Lienzo can be used for Charting, ( as well as any other 2D graphics )... and we are building a charting package that should equal or surpass GWT Visualization or Highcharts On Tuesday, December 18, 2012 9:55:11 AM UTC-5, James

Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
GWT Visualization is just for charting, and uses Google's services, Lienzo can be used for Charting, ( as well as any other 2D graphics )... and we are building a charting package that should surpass GWT Visualization or Highcharts Charts in general are not all that hard, the math is pretty

Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
. On Tuesday, December 18, 2012 4:01:57 PM UTC-5, James wrote: I am feeling this library can provide good chart potential abilities. I can wait for a couple of months for my project. Do you have a road map for chart features? James On Tuesday, December 18, 2012 12:17:12 PM UTC-5, Dean S. Jones

Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
for a couple of months for my project. Do you have a road map for chart features? James On Tuesday, December 18, 2012 12:17:12 PM UTC-5, Dean S. Jones wrote: GWT Visualization is just for charting, and uses Google's services, Lienzo can be used for Charting, ( as well as any other 2D graphics

Re: GWT 2.5 GA is Here!

2012-11-01 Thread Dean S. Jones
Can you outline the incompatibilities between GWT proper and using Elemental? Ran into some issues with ArrayList, etc... bombing out if used in both. Also, and updates on Java7 server side support in GAE? -- You received this message because you are subscribed to the Google Groups Google

Re: GWT + Charts

2011-01-08 Thread Dean S. Jones
commercially. It's pretty cheap, for what you get... Dean S. Jones On Jan 8, 12:19 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingSta... if u are looking for GWT specific libs. Otherwise there are plenty of options like

Re: Creating Eye-candy UI

2010-07-30 Thread Dean S. Jones
attractive UI design is more of an art than a science, but factoring in usability is just as important. I wish most designers would read this book: http://www.amazon.com/Dont-Make-Me-Think-Usability/dp/0321344758/ref=sr_1_1?ie=UTF8s=booksqid=1280544928sr=8-1 something pretty is not ALWAYS easy

Re: Creating Eye-candy UI

2010-07-30 Thread Dean S. Jones
Oh, and... someone with an artistic bent along with technical knowledge could do quite well in the field of Data Visualization. Charting is pretty much covered these days, I have GWT wrapped both HighCharts http://www.highcharts.com/demo/ and Raphael http://raphaeljs.com/ , but images of complex

One v.s N EventBus

2010-07-30 Thread Dean S. Jones
Looking at finishing up an idea, and I have come across a thought in MVP: Global v.s a multiple/hierarchy of view/presenter EventBus's, and wondered if anyone had explored this avenue. The basics are there is the global EventBus, as is typical now, and a local EventBus for actions in the current

Re: Protected Page + PopupPanel

2010-07-30 Thread Dean S. Jones
Typically, I like to avoid this problem altogether, and NOT allow the user to see the GWT page until they are logged in. The Login page is normal JSP, and I employ a ServletFilter to check that if the user tries to load the GWT page and is not logged in, they get redirected to the Login JSP. There

Re: Protected Page + PopupPanel

2010-07-30 Thread Dean S. Jones
Sorry, again, looking at your above example, to make my point clear, using Firebug I can find (!user.isAuthenticated()) and any a JS debugger to subvert it. GWT obfuscates JS code, but anyone with 1) curiosity and a brain, 2) ulterior motives , this is a cakewalk. Think about it. and NEVER

Re: java.util.Map with Javascript Overlay example?

2010-06-19 Thread Dean S. Jones
look at the implementation of FastStringMap http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/FastStringMap.java?r=931 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: central configuration file (xml) - where to place?

2010-06-19 Thread Dean S. Jones
Create a simple Spring config file, initialize it from a ServletContextListener http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/javax/servlet/ServletContextListener.html Store the Spring de-serialized config in your Application(ServletContext) scope. I like to keep my global configs

Re: GWT.create(...) precedence

2010-06-19 Thread Dean S. Jones
A generator can call a generator, i.e. you can put a GWT.create() in your generated code. You are right, the last generator defined is the only one run. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Best way to Deserialize JSON String to Java Object

2010-06-19 Thread Dean S. Jones
This is not totally true, gwt-rpc is OK for most data transfers, but it causes a bit of overhead in deserialization. GWT's client side JSON library is SLOW, it constructs a parallel data structure of concrete types on parse, upfront, and by default uses eval('''), which isn't always the best or

Re: dynamic Messages/ImageBundle possible?

2009-11-23 Thread Dean S. Jones
this might help a little http://code.google.com/p/asmodaiosgwt/ On Nov 23, 10:40 am, denis56 denis.ergashb...@gmail.com wrote: Hi there, I wonder if it is possible to use Internationalization and ImageBundles in GWT in a more dynamic way. For instance, if there is a client method void

Re: how large of your GWT compiled code? My one is 850K

2009-11-13 Thread Dean S. Jones
850k is nothing, it's the size of many images or photo's, as hazy1 said, compression will reduce the size dramatically, ( I moved compression from the app server to my fronting Apache and it's much more efficient ) and you can also set the expires header on the GWT html/js to some future date ( a

[gwt-contrib] PopupPanel over heavyweights

2009-11-11 Thread Dean S. Jones
PopupPanel displayed behind heavyweight browser items, Applets, PDF plugin... I have a fix that uses an iframe and z-indexes, is this already logged as a defect --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: Problem with call function external javascript

2009-09-11 Thread Dean S. Jones
Do you need to execute predefined JavaScript functions, or kind of an eval of JavaScript code ??? On Sep 11, 10:26 am, Senshi cristian.ro...@gmail.com wrote: I need help =( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Your GWT based open source project(s)

2009-09-05 Thread Dean S. Jones
Definitely. I just put up my first Open Source package: http://code.google.com/p/asmodaiosgwt/ , for making AbstractImagePrototype's in an ImageBundle into a MapString, AbstractImagePrototype , so you can find them by a String(name). It's a simple bit of code that uses a Generator, took a few

new project - ImageBundleMap's - look up image by name

2009-09-02 Thread Dean S. Jones
http://code.google.com/p/asmodaiosgwt/ My first project, but many people have asked How do I look up an image by a name ( String ) from an ImageBundle. Generally, it's kind of a mess to try to do that, so I thought I would make it simpler. --~--~-~--~~~---~--~~

Re: Does GWT work in Snow Leopard?

2009-08-29 Thread Dean S. Jones
http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard this got me back up and running --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: How can I get Image from ImageBundle by String?

2009-08-26 Thread Dean S. Jones
{ } On Aug 24, 10:40 pm, Dean S. Jones deansjo...@gmail.com wrote: There is no easy way to do this, Reflection is not supported in GWT. The only thing GWT'ish I can think of is wrapping theImageBundlein some Interface makes a MapString, AbstractImagePrototype from a GWT Generator Thats a bit

Re: How can I get Image from ImageBundle by String?

2009-08-26 Thread Dean S. Jones
{ } If anyone is interested, drop me a line. On Aug 24, 10:40 pm, Dean S. Jones deansjo...@gmail.com wrote: There is no easy way to do this, Reflection is not supported in GWT. The only thing GWT'ish I can think of is wrapping theImageBundlein some Interface makes a MapString, AbstractImagePrototype

Re: Questions about more than one generators apply to one class

2009-08-26 Thread Dean S. Jones
first, Generators apply to interfaces, not classes, and yes, it's one generator per interface... you can choose a generator based on a property, like the DOMImpl interfaces: replace-with class=com.google.gwt.dom.client.DOMImplSafari when-type-is class=com.google.gwt.dom.client.DOMImpl/

Re: Can GWT complier handle annotation with enum?

2009-08-26 Thread Dean S. Jones
this works for me: import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Condition { Type value()

Looking for STRONG GWT/J2EE Developers NYC

2009-08-24 Thread Dean S. Jones
Sorry for the posting on here... I know this isn't a job board... but... Permanent positions in a HOT Financial in Midtown NYC, must know GWT internals, creating custom widgets, GWT patterns, UI design and usability, Apache/Tomcat/J2EE expertise, DOM/HTTP, secure site designs, some Oracle would

Re: How can I get Image from ImageBundle by String?

2009-08-24 Thread Dean S. Jones
There is no easy way to do this, Reflection is not supported in GWT. The only thing GWT'ish I can think of is wrapping the ImageBundle in some Interface makes a MapString, AbstractImagePrototype from a GWT Generator Thats a bit too much trouble for a few ImageBundles, so I just created class

Re: Adding white spaces to my xml

2009-08-24 Thread Dean S. Jones
http://faq.javaranch.com/java/HowToPrettyPrintXmlWithJava --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To

Re: MVP question

2009-08-19 Thread Dean S. Jones
This is where I diverged from the typical MVP pattern, the Has* interfaces just became to numerous and unwieldy. My solution was to make the model richer, and attach a Map of state values to each model property. It was then up to the Presenter to interpret the associated property state map, and

Re: Announcing the Google Plugin for Eclipse 1.1.0

2009-07-31 Thread Dean S. Jones
Thanks to the Google Plugin Team and all involved!!! Any idea when you will switch up to GWT 1.7??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Bundling Background Images defined in CSS

2009-07-30 Thread Dean S. Jones
Short answer: no. Shorter answer: no. ImageBundle images can't be used as CSS backgrounds, if you understand the implementation, you understand why. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web

Re: Using class on both client and server sides

2009-07-30 Thread Dean S. Jones
this is the correct response, tho, I put all inter-client-server classes in shared/rpc, or some such package. On Jul 29, 11:10 am, Paul Robinson ukcue...@gmail.com wrote: You want this in your gwt.xml file:     source path=client/     source path=shared/ Note that if any source... element

Re: Handling servre side exceptions and displaying precise error messages on the client

2009-07-29 Thread Dean S. Jones
I will raise a minor point relaying back EXACT exceptions, with all failure information, is not a good idea in a production environment. This is generally what we call Exception Information Leakage - it exposes the underlying implementation of your servers architecture, and certain errors

Re: Why ImageBundleGenerator does not optimize the generated icon set?

2009-07-18 Thread Dean S. Jones
+1 On Jul 18, 9:38 am, twdarkflame darkfl...@gmail.com wrote: This is a very good idea. On Jul 15, 4:31 am, Kelvin kelvin...@gmail.com wrote: I create a SilkImageBundle and put all silk icons library to it. the silk icon library contains 1000 icons and just a few hundreds of them are

Re: GWT + system call

2009-07-12 Thread Dean S. Jones
if you are talking about Octave, the Numerical Package, maybe this will help: http://jopas.sourceforge.net/ On Jul 12, 8:48 pm, brett.wooldridge brett.wooldri...@gmail.com wrote: I've never heard of, or to my recollection, never encountered this restriction.  Even if some servlet containers

Re: ImageBundle use question

2009-07-12 Thread Dean S. Jones
I had the same issue once, had to do image lookup by name - I ended up creating an Interface with a static reference to the ImageBundle, and then using a GWT Generator to create Map Entries to an ImageFactory type. This was only worth the work because it was a Toolkit for apps where there could

Re: call more than one service

2009-07-12 Thread Dean S. Jones
the best approach is not so cut-n-dried, on what you are trying to do - does the result of one RPC depend on another, if so, the best way in to chain requests - call one RPC when the previous finished, if not - then you can fire them all and use a countdown AsyncCallback to know when they are all

Re: Interdependent ScrollBars

2009-07-12 Thread Dean S. Jones
Both should be ScrollPanels, add a ScrollListener to each, when one scrolls, set the others scroll position based on the values passed on on the onScroll() method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Interdependent ScrollBars

2009-07-12 Thread Dean S. Jones
I really have nothing better to do on a Sunday night ;-) On Jul 12, 11:08 pm, Sky myonceinalifet...@gmail.com wrote: Schooled. (me) Plus I totally forgot you needed them to scroll together. sry I dropped the ball on that one, good thing Dean picked it up :) On Jul 12, 9:55 pm, Dean S

Re: CSS loads for 1 millisecond, then disappears

2009-07-07 Thread Dean S. Jones
) is but a small part of that one site. On Jul 6, 5:20 pm, Dean S. Jones deansjo...@gmail.com wrote: Is there a reason you need to include the CSS in the html file?? it would be more correct - easier to catch errors, and sure of loading order - if you included the CSS file in your apps module

Re: client statefull server stateless

2009-07-06 Thread Dean S. Jones
to be clear - in the above post, we keep no state in the server other than the info associated with the session ID, and that info is NOT stored in the Session Context. As many have found in the past, storing session state leads to performance issues in session serialization and server sync

Re: CSS loads for 1 millisecond, then disappears

2009-07-06 Thread Dean S. Jones
Is there a reason you need to include the CSS in the html file?? it would be more correct - easier to catch errors, and sure of loading order - if you included the CSS file in your apps module gwt.xml file with a stylesheet src=resources/Test.css/ GWT will copy the resources folder to the final

Re: Decorator Panel Example Images?

2009-07-06 Thread Dean S. Jones
The images are defined in the standard theme CSS, make sure you have this line ( uncommented ) in your Module .gwt.xml file: inherits name='com.google.gwt.user.theme.standard.Standard'/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: client statefull server stateless

2009-07-06 Thread Dean S. Jones
My recent experience was to not trust the client AT ALL. If you send any info to the client ( Cookie, or a token to be sent back on RPC ), someone with knowledge enough could use a JS debugger and modify the memory containing the token, and your busted. Personally, I use multiple methods.

Re: GWT + App Engine + Upload

2009-07-06 Thread Dean S. Jones
ugh... this is not simple... start here http://code.google.com/p/google-file-service/ On Jul 6, 8:59 pm, Paulo Coutinho pa...@prsolucoes.com wrote: Hi ppl, Im developing a new app and host on appengine, but now i need know how to upload a file with java backend, because i dont find

Re: client statefull server stateless

2009-07-06 Thread Dean S. Jones
, this is a financial/banking application. You have to go the extra mile and then some in that case.  That said, most of the rest of us (including the likes of gmail, ebay, facebook) aren't overly concerned with user's messing with their cookies. -Brett On Jul 7, 8:36 am, Dean S. Jones deansjo

Re: GWT + App Engine + Upload

2009-07-06 Thread Dean S. Jones
engine database, i only want the data of upload to send to my other server of images. Understand? 2009/7/7 Paulo Coutinho pa...@prsolucoes.com: Ok thanks. 2009/7/7 Dean S. Jones deansjo...@gmail.com: ugh... this is not simple... start here http://code.google.com/p/google-file

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-06 Thread Dean S. Jones
not to be snarky, but congratulations on realizing you just hit a GWT architectural wall - that you likely can't fix* I have posted many times about the issues of Domain Objects in the UI

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-06 Thread Dean S. Jones
This isn't bad, but will eventually evolve/devolve into a SDO like pattern http://en.wikipedia.org/wiki/Service_Data_Objects Essentially, you have ONE DTO type, an object with a Map of properties and their values, a property can be primitive, or another DTO Map, or a collection of either. This

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-06 Thread Dean S. Jones
Your on the right track, but if the base interface is used ( in the signature ) of any RPC method, GWT *has to* generate serializers/ deserializers for every concrete implementor class of that interface. So, how to work around that... IF/F the entire app was was coded to the Domain Interfaces,

Re: How to add 3rd party jars in classpath while creating application using webAppCreator?

2009-07-06 Thread Dean S. Jones
depending on your IDE, just drop the jar in WEB-INF/lib - modify your build.xml to include all jar's in WEB-INF/lib On Jul 7, 12:20 am, Vikas vikas.m.ya...@gmail.com wrote: With GWT 1.5.3 for 'projectCreator' there was addToClassPath parameter to add 3rd party jars, but with GWT 1.6.4 for

Re: Java + AppEngine + GWT + Whitelist

2009-07-06 Thread Dean S. Jones
AFAIK, a GWT iframe is completely client side, and GAE has nothing to do with it. Running hosted mode tho, it will prompt you for permission, and tell you how to set a whitelist in hosted mode. i'm running this on GAE, no problems: public class Deansjones implements EntryPoint { public

Re: Question/Problem Very Large Data Object Maps over RPC

2009-07-06 Thread Dean S. Jones
after some contemplation ( and hackery ), I reached the same conclusion as before: Domain Objects in the UI is a GWT architectural anti-pattern. I can think up several nasty work-arounds, but nothing that wouldn't require major changes to the client code. I stand by my previous assertion: No

Re: Losing some characters via POST requests

2009-06-25 Thread Dean S. Jones
You probably have to encode them... with URL.encode(String) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To

Re: show/hide widget based on user's credentials

2009-06-23 Thread Dean S. Jones
You CAN'T trust the client, anyone skilled enough can hack the JS to display the widget, or subvert any in memory objects. To summarize the best I can, first you MUST check permissions of RPC on the server side. You can use the J2EE roles, but I found that hard to make very dynamic, it's a Pain,

Re: Best Practices For Translating Strings To Be Used In An Internationalized Application

2009-06-23 Thread Dean S. Jones
One of my previous enterprise apps was I18N for 22 languages, including proper display of R-L languages like Hebrew and Arabic. We used properties files, all text on the screen was indirectly drawn by looking up it's key in the property file. GWT I18N can help here, but it creates ALOT of

Re: Preventing JavaScript Injection cient/server side solutions

2009-06-16 Thread Dean S. Jones
http://xkcd.com/327/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to

Re: How can I add a MouseOutHandler to a FlexTable cell?

2009-06-15 Thread Dean S. Jones
Thanks for the example - I have to support 1.5 and 1.6 - so I am still coding to the old event model... But it's nice to see looking inside HandlerManager that they defer editing of the handler list while the event it firing. --~--~-~--~~~---~--~~ You received

Re: Images won't load from full pathname in FireFox

2009-06-15 Thread Dean S. Jones
You can't use a file:: URI to load an image ( that would attempt to load it from the machine the browser is on ), you can in theory load an image from bytes via RPC ( tho it's not worth the highly incredible ugliness of hackery to do that ) You can sorta write images to the filesystem and serve

Re: Preventing JavaScript Injection cient/server side solutions

2009-06-15 Thread Dean S. Jones
Such checks can be routine if you are using proper server side validation of input. I have written several such frameworks, which work on generic RPC Models... hence the validation can be routine and generic. This, as I have pointed out before, is one of the dangers of using Domain Objects for

Re: Preventing JavaScript Injection cient/server side solutions

2009-06-15 Thread Dean S. Jones
no, but they are not hard to replicate - they rely generally on patterns like SDO http://en.wikipedia.org/wiki/Service_Data_Objects , which can be trivial to validate, and reasonably easy to bridge to O/R frameworks. They are also much easier to bridge to client side MVC/PVC patterns, without

Re: Preventing JavaScript Injection cient/server side solutions

2009-06-15 Thread Dean S. Jones
The problem here is that you can only validate post-de- serialization, and then you have to have knowledge of the DTO type(via reflection/AOP monkey business per type ), which gets complicated FAST. My best approach was to validate in the Generic Model to Domain Object Mapper ( BOTH directions

Re: getInteger problem when trying to run hosted mode.

2009-06-15 Thread Dean S. Jones
Integer.getInteger(name) gets an integer from System properties. it is ( roughly ) equal to: Integer.parseInt(System.getProperty(name)); So, in the GAE, what is the definition if System.getProperty() ??? You have no method or means of setting them, you don't know the properties of the Runtime

Re: com/google/gwt/gen2/Gen2.gwt.xml jar

2009-06-08 Thread Dean S. Jones
GWT Incubator http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?tm=2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: stylesheets and multiple modules

2009-06-06 Thread Dean S. Jones
remove the / before List.css On Jun 4, 9:44 am, martinp llanfihan...@googlemail.com wrote: I am trying to build a multiple-module application using GWT 1.6. I have a module containing custom widgets that I wish to use in a number of applications. This module has no entry point. I have

Re: Cross domain issue - not w/ RPC... Please help

2009-06-06 Thread Dean S. Jones
you can try to compile for xs, add add-linker name=xs / to your GWT Module xml I had to do something even nastier, I was loading whole apps from multiple machines into an IFrame and do app-to-app JavaScript communication. there are two solutions to this problem 1) explicit domain lowering,

Re: file download using requestbuilder

2009-06-06 Thread Dean S. Jones
this is really not pretty using a servlet to access Objects sent from GWT - a string is simple in the URL, a list - you'd have to get fancy with a POST request and encode the list in the xxx-form-urlencoded format. OR, send the objects across in an RPC call, save the objects in the Session or

Re: A big GWT splash made by Wave

2009-06-05 Thread Dean S. Jones
nice talk, and how the used some of the upcoming features in GWT 2.0 to solve some of their issues... looking forward to GWT 2.0 but one thing struck me as funny... early in the talk, the espouse the fact that the used alot of code generation using Google Protocol Buffers

Re: GWT VS GWT-EXT

2009-06-05 Thread Dean S. Jones
Many of these issues are WHY we just got done ripping out all EXT-GWT code out of a large financial app. 1) License issues 2) GWT compatibility ( Widget intermixing, events, exceptions ) 3) LookFeel didn't ( and couldn't be made to ) conform to corporate branding 4) generated javascript size 5)

Re: Inheriting a css stylesheet

2009-06-05 Thread Dean S. Jones
post your module.xml file On Jun 5, 12:46 pm, Rafael Barrera Oro boraf...@gmail.com wrote: Howdy? I've written a small module with custom widgets and a simple CSS stylesheet. The problem is that when i inherit the module, i inherit the client side code but not the stylesheet. I am sure

Re: Alternate URL paths (for targeting logical UI locations)

2009-06-05 Thread Dean S. Jones
most ( well, all ) of my GWT apps are single page apps, I include the GWT generated js in index.jsp at the web root, and drive all screen display through history tokens. The administration configuration tab is just a Widget that is ( built/triggered/shown) when say I get a history change with

Re: Class in package can't be resolved to a type

2009-06-05 Thread Dean S. Jones
add source path=client/ source path=common/ to you GWT Module xml On Jun 5, 9:33 am, Dan King dankin...@gmail.com wrote: Hi everyone, I have a GWT project. In that project I created a common package com.projectName.common When I reference a class from the project I dont' have an issue in

Re: Overwrite private method

2009-06-05 Thread Dean S. Jones
Not happening here at all... One issue is you B's ctor will call your A's ctor, which ill run A's doRead()... check this code: ublic class A { private String name; public A(String name) { this.name = name; doThat(); }

Re: Data binding frameworks and overlay types

2009-06-04 Thread Dean S. Jones
I've been down this path a few times, and it's the reason I have posted on this group more than once about Not using domain objects in the UI... http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c3c7706728c5bf97/73113b1a647ab2e9?lnk=gstq=SDO+Dean#73113b1a647ab2e9 I can see

Re: Don't obfuscate Java methods when passing instance to JavaScript

2009-06-03 Thread Dean S. Jones
can't crack how to do it without the aid of a third-party library. Thanks. Any other suggestions? On Jun 2, 11:43 pm, Dean S. Jones deansjo...@gmail.com wrote: Short answer, check out: http://code.google.com/p/gwt-exporter/ --~--~-~--~~~---~--~~ You received

Re: Doing a mailto: with a gwt button

2009-05-31 Thread Dean S. Jones
this is a little hackey, and doesnt work in hosted mode, but... public void onModuleLoad() { final Button sendButton = new Button(Send); RootPanel.get(sendButtonContainer).add(sendButton); sendButton.addClickHandler(new ClickHandler()

Re: Doing a mailto: with a gwt button

2009-05-31 Thread Dean S. Jones
            public void onClick(final ClickEvent event)             {                 Window.open(mailto:x...@x.x;, _blank, );             }         }); Ian http://examples.roughian.com 2009/6/1 Dean S. Jones deansjo...@gmail.com this is a little hackey, and doesnt work in hosted mode

Re: Avoid domain object and DTO in GUI?

2009-05-28 Thread Dean S. Jones
://en.wikipedia.org/wiki/Service_Data_Objects On May 26, 7:18 am, hezjing hezj...@gmail.com wrote: Hi Dean You raised an interesting point which I had never think of it ... On Tue, May 26, 2009 at 5:42 PM, Dean S. Jones deansjo...@gmail.com wrote: As I have posted here numerous times, you

Re: No *.gwt.rpc file generated

2009-05-28 Thread Dean S. Jones
your generate-with class=net.sf.gilead.proxy.gwt.Gwt15ProxyGenerator when-type-assignable class=java.io.Serializable / /generate-with possibly overrides GWT's default serialization generator??? just a guess --~--~-~--~~~---~--~~ You received this

Re: Google Wave in GWT

2009-05-28 Thread Dean S. Jones
The announcement does say it was built with GWT and HTML5 http://googleblog.blogspot.com/2009/05/went-walkabout-brought-back-google-wave.html Interesting, a new major Google app that will only work on a few browsers that are still in beta that have HTML5 support. On May 28, 3:52 pm, Evan Ruff

Re: Service Data Objects with GWT

2009-05-26 Thread Dean S. Jones
As I have posted here numerous times, you will one day regret having domain objects used in your GUI. Better to factor down to the few UI display generic models ( tables, trees, forms, etc ) --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: polling with gwt

2009-05-26 Thread Dean S. Jones
each solution posted has it's advantages and faults. Unfortunately, in real life we still have to deal with IE6, which has a 2 connection limit per host. Some packages may have found a clever work-around to this issue. REAL Comet is not widely implemented in a consistent way ( it doesn't work

Re: Service Data Objects with GWT

2009-05-26 Thread Dean S. Jones
the near-ultimate SDO implementation in RPC's is ListMapString, T , according to the Spec http://en.wikipedia.org/wiki/Service_Data_Objects, but it's not language agnostic. Check out JSON http://www.json.com/ --~--~-~--~~~---~--~~ You received this message because

Re: Something is worong with my app in GWT 1.6

2009-05-16 Thread Dean S. Jones
First: *.php URL's are typically handled by an Apache module ( mod_php ), so Apache needs to be intercepting those requests and processing them, the embedded Jetty server will not do this, or Tomcat, no way, no how. That being said, there are php engines written in Java (

Re: How to handle colliding IMPORT statements

2009-05-16 Thread Dean S. Jones
This is normal Java, the only way to disambiguate is to use full package qualification. On May 15, 7:26 pm, Jeff Chimene jchim...@gmail.com wrote: Hi, I realize this is probably a Java question, but: How does one handle colliding import statements? For example:      import

Re: Two clients one session

2009-04-14 Thread Dean S. Jones
Sessions are usually bound to a browser, for a given host/Application Context(war), by a Cookie ( likely called JSESSIONID ), if the two browsers share a cookie cache/address space, they'll see the same session cookie, and share the same session. On Apr 13, 6:40 am, davidst...@gmail.com

  1   2   >