Re: UiBinder + CssResource + @ClassName = Error

2015-08-17 Thread DaveC
t a valid value AFAICT, but maybe it'd be > detected only later (and is hidden by the current error) > > On Wednesday, August 5, 2015 at 11:28:37 AM UTC+2, DaveC wrote: >> >> Hi, >> >> I have the following UiBinde

Re: CellTable Memory Leak in IE8

2015-08-05 Thread DaveC
x as well? I'd previously logged Issue > #9164 (https://github.com/gwtproject/gwt/issues/9164) on the gwtproject > page. > > Thanks again! > Harvard > > On Tuesday, August 4, 2015 at 7:11:24 AM UTC-4, DaveC wrote: >> >> Hi, >> >> I think you'll

UiBinder + CssResource + @ClassName = Error

2015-08-05 Thread DaveC
Hi, I have the following UiBinder: http://dl.google.com/gwt/DTD/xhtml.ent";> .panel-default { background: grey; } Hello World! and CssResource: public interface Style extends CssResource { @ClassName("panel-default") String defaultStyle();

Re: CellTable Memory Leak in IE8

2015-08-04 Thread DaveC
Hi, I think you'll have to dig into AbstractCellTable in order to fix this. I did a quick test of a fix I implemented and it "appears" to work for IE11 running IE8/IE9 mode but not IE10 mode, I've not tested it in a real IE8 or IE9. Basically what I did was exaactly what you said - set row.inn

Compiler throws StringIndexOutOfBoundsException when parsing

2015-08-04 Thread DaveC
Hi, I've a with a CSS class that has double hyphens in it (the CSS follows the BEM pattern) e.g. http://dl.google.com/gwt/DTD/xhtml.ent";> .panel--default { background: grey; } Hello World! When the compiler runs it th

Re: Emulated stack mode not resolving symbols

2013-05-01 Thread DaveC
Anyone On Thursday, 25 April 2013 09:53:53 UTC+1, DaveC wrote: > > Hi, > > I'm trying to get some useful stack trace from the client side but all I > get is: > > java.lang.Throwable: Exception caught: Exception caught: For input string: > "59909596809&quo

Emulated stack mode not resolving symbols

2013-04-25 Thread DaveC
Hi, I'm trying to get some useful stack trace from the client side but all I get is: java.lang.Throwable: Exception caught: Exception caught: For input string: "59909596809" at Unknown.jk(Unknown Source) at Unknown.gi(Unknown Source) at Unknown.Wu(Unknown Source) at Unknown.Zu(Unknown Source) .

Re: IE + SSL + Image.setURL throws an Operation Exception at runtime

2011-09-20 Thread DaveC
seen this error??? Anyone? On Sep 19, 11:53 am, DaveC wrote: > I think this maybe be a bug with GWT (but I'm not sure). > > I'm running my app under https/ssl, in IE (7 & 8) I get an "Operation > Exception" (Network Error) if I set a previsouly created Image

IE + SSL + Image.setURL throws an Operation Exception at runtime

2011-09-19 Thread DaveC
I think this maybe be a bug with GWT (but I'm not sure). I'm running my app under https/ssl, in IE (7 & 8) I get an "Operation Exception" (Network Error) if I set a previsouly created Image widget's url to an unsecured url (which causes IE to popup a dialog asking the user for permission). The fo

IE + SSL + Image.setURL throws an Operation Exception at runtime

2011-09-19 Thread DaveC
I think this maybe be a bug with GWT (but I'm not sure). I'm running my app under https/ssl, in IE (7 & 8) I get an "Operation Exception" (Network Error) if I set a previsouly created Image widget's url to an unsecured url (which causes IE to popup a dialog asking the user for permission). The fo

Re: Activities and Places and Layouts (again)

2011-08-17 Thread DaveC
No worries :o) On Aug 15, 7:10 pm, Mike Dee wrote: > Dave, > > I think you got it.  Double checked and wasn't setting height to > 100%.  Thanks, that seems to have done it.  Thought I was doing that. > > Mike > > On Aug 15, 9:01 am, DaveC wrote: > > > >

Re: Activities and Places and Layouts (again)

2011-08-15 Thread DaveC
Hi Mike, I'm trying to understand your issue... I'm assuming that DockLayoutPanel is in an Activity and that you're adding it to the SimplePanel using panel.setWidget() in the start method...? (I don't want to teach you to suck eggs - but you can use Firebug (or similar) to check the DOM of your

Best/Correct way to attach events to an element

2011-08-15 Thread DaveC
Hi, I've got some generated HTML that I'm trying to hook into using GWT to listen to events. At the moment I've this: public class LightWeightUiObject extends UIObject { public LightWeightUiObject(Element element) { setElement(element); sinkEvents(Event.ONTOUCHSTART);

Re: ClickHandlers and Anchors?

2011-06-03 Thread DaveC
stopPropagation() prevents the event from bubbling any futher up the DOM tree, I don't want to teach you to suck eggs but: Click Me Given the above DOM structure if I attach a click event to the table then click the anchor the event usually bubbles up the DOM tree calling any event handlers

@Import CssResource not working (as expected?)

2011-06-03 Thread DaveC
Hi, Given: @ImportedWithPrefix("unordered") interface UnorderedListStyles extends CssResource { list(); } @ImportedWithPrefix("list") interface ListItemStyles extends CssResource { item(); } interface Resources extends ClientBundle { @Import(value = {UnorderedListStyles.class, List

Re: combine GWT application from several modules coming from JARs or OSGI bundles

2011-06-03 Thread DaveC
If you mean dynamically loading code at runtime, I don't *think* this is possible - we have a similar app (written originally against GWT 1.6) we have the notion of a plugin - it's a separate GWT module in it's own project, but is pulled in at compile time... these modules are pulled in using Gin/G

Re: ClickHandlers and Anchors?

2011-06-03 Thread DaveC
if (event.getSource() instanceof Anchor) { ... } Cheers, Dave On Jun 3, 1:17 pm, kevin wrote: > I have a Anchor as a cell of a FlexTable. Both the Anchor and the > FlexTable have click handlers and as a result, I'm getting two events > fired when I click on the anchor. Any one have an idea how

Re: Odg.: Re: How to speed up Hosted mode

2011-04-19 Thread DaveC
I've also noticed that moving from a GWT 1.7 version of building apps to the 2.1 way (UiBinder CellWidgets etc) makes a noticable difference... (less java/ecmascript code I guess). On Apr 18, 9:24 pm, Jeff Larsen wrote: > Lotus notes ouch! -- You received this message because you are subscr

Re: Odg.: Re: How to speed up Hosted mode

2011-04-18 Thread DaveC
I might be on the wrong track but have you checked the temp directory where java writes out files (on windows xp it's something like c:/ documents and settings//*user*/localsettings) I regularly (once a week) have to clear tens of thousands of files and GBs of data otherwise eclipse (and lotus

Re: ListEditor is there a way to edit a generic type?

2010-12-09 Thread DaveC
estion. > > If the latter, you have two options.  Either add wing span information > to the parent type (Animal) or do explicit checks for Birds and then > do a cast. > > Good luck! > > On Dec 8, 9:11 am, DaveC wrote: > > > > > Hi, > > > What I'm tryi

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-08 Thread DaveC
@Greg I felt the need to reply on the topic of what GWT is/does... What (Java) devs think GWT is/does... *** Removes the need for them to understand ANY front end web technologies (e.g. HTML, Javascript, DOM, CSS + xbrowser differences) *** All of our Java developers (where I work) have found t

ListEditor is there a way to edit a generic type?

2010-12-08 Thread DaveC
Hi, What I'm trying to do is pass ListEditor a list of generic types e.g. an AbstractAnimal type but what the list gets might be a Bird type, a Fish type, Mammal... etc... The problem is that that my Bird type has a property "wingSpan" which the Fish type does not.. they might also share a proper

Re: ImageBundle and IE7

2010-11-15 Thread DaveC
I think what you need to be using instead of ImageResource is DataResource. GWT uses a different method for bundling resources for the different browsers - those that support Data URIs (IE8+, Firefox, Chrome et al) get their images turned into base64 encoded strings - IE6/7 gets a sprite image (al

Re: Button embedded in a rich text area

2010-07-12 Thread DaveC
RichTextArea rt = new RichTextArea(); rt.addMouseDownHandler(new MouseDownHandler() { @Override public void onMouseDown(MouseDownEvent event) { Window.alert("MouseDown!");

Re: GWT adoption

2010-07-12 Thread DaveC
The majority of what GWT can do can be done by a good web developer/ designer... but what GWT is good at is all the compile time optimisations - when you're trying to squeeze every last bit of performance out of of your app... and if you only/have to write Java. It is a crutch IMHO, probably quite

Re: Detecting browser in GWT 2.0.3

2010-07-12 Thread DaveC
There *might* be a way to do it... e.g. 1. only invalidate the session on a specific log out request 2. store a flag/timestamp clientside to either invalidate the session or not 3. onload reads this flag and decides whether or not to to invalidate the session (if a number of seconds/minutes have e

Re: TabPanel - 100% height for client widget?

2010-07-12 Thread DaveC
Have you tried using CSS? .my-tab-content { position: absolute; top: 0; left: 0; bottom: 0; right: 0; } this *should* work as long as it's parent is positioned (relative/ absolute)... The new layout panels I think require a RootLayoutPanel not a RootPanel... but I can't remember exactly. C

Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
have such a lot images. Than I would try for splitting up the > ClientBundle > b) GWT has a bug which causes huge images as a result. Maybe a) puts > the compiler in a more stable state > > Stefan Bacherthttp://gwtworld.de > > On 9 Jul., 13:55, DaveC wrote: > > >

Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
Checked the compile report, but I can't seem to find where it references (if it even does) the generated ImageResourceBundles... On Jul 9, 1:58 pm, DaveC wrote: > No, forgot about those (I check them)... but I have some more info > now... I can trigger the big sprites by changing the

Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
eck your Compile reports ? > > http://code.google.com/webtoolkit/release-notes.html#Release_Notes_2_... > > On Jul 9, 1:55 pm, DaveC wrote: > > > Hello, > > > This is really just a heads up... > > > We are currently developing a large/complex GWT app and are m

ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
Hello, This is really just a heads up... We are currently developing a large/complex GWT app and are making use of ClientBundle, CssResource and ImageResource. We've run into an issue where by GWT is generating massive sprite images (for instance one is 163,000 x 300 pixels) - which obviously cau

Re: Why does GWT use UserAgent Sniffing?

2010-03-01 Thread DaveC
has to be enough to determine the > browser anyway. If it wasn't anymore, that HTTP header would become > more and more useless, until we'd all have to either use hacks, or be > forced to make one round-trip. > > Cheers > Chris > > On Mar 1, 2:55 pm, DaveC wrot

Re: Why does GWT use UserAgent Sniffing?

2010-03-01 Thread DaveC
es it easier to NOT support certain browsers. =) > > Moreover, in the case the detection actually errs, because the user > has a browser version that sends a strange user agent string, the ua > string can be changed. Whereas if browser detection fails, there's > probably not much the

Re: Why does GWT use UserAgent Sniffing?

2010-03-01 Thread DaveC
enough to decide, I might actually fall back to > your test - so I'll keep it bookmarked :-) > > Chris > > On Feb 25, 7:22 pm, mmoossen wrote: > > > thanks dave for sharing :) > > i think i will start using your code for browser identification > > > Michael

Re: Why does GWT use UserAgent Sniffing?

2010-02-25 Thread DaveC
preciate these methods aren't infallable - but IMHO they are more robust than UA sniffing. I just wondered whether there was some missing piece of information the Google engineers had (via Google's vast aounts of browser data) that showed that UA sniffing was necessary. Cheers, Dave O

Re: Why does GWT use UserAgent Sniffing?

2010-02-23 Thread DaveC
rred binding or why does gwt test for different browser platforms BUT: Why does gwt parse the useragent string rather than using object/ feature detection - due to the fragility of sniffing the ua string? " On Feb 23, 11:00 am, Paul Robinson wrote: > DaveC wrote: > > Gal, I

Re: How to provide a local css resource file with a Module

2010-02-23 Thread DaveC
What about using ClientBundle and CssResource? http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource Cheers, Dave On Feb 23, 7:49 am, Ashar Lohmar wrote: > you should put the css in a folder name

Re: Why does GWT use UserAgent Sniffing?

2010-02-23 Thread DaveC
mpile 100+ different > versions of the page if you evaluate individual properties? > The way gwt do it give you 6 versions only, one for each browser... > Also, why should you care about browser lying to you if 100% sure it is a > developer.. who else can do that? > > 2010/2/22 Eric

Re: Why does GWT use UserAgent Sniffing?

2010-02-22 Thread DaveC
Thanks for the reply Martin, OK, I think you maybe misunderstood my question though. I understand what Deferred Binding is and why it's a good thing - what I wanted to know was why does GWT sniff use the navigator.useragent string e.g. var ua = navigator.userAgent.toLowerCase(); if

Why does GWT use UserAgent Sniffing?

2010-02-22 Thread DaveC
It's *generally* considered by the web development community that useragent sniffing is bad and object/feature detection is good... why then does GWT sniff the useragent? Can anyone explain why - is there a benefit?? Cheers, Dave -- You received this message because you are subscribed to the Go

Re: Is there a best practice for compiling multiple modules?

2010-02-19 Thread DaveC
The only thing I could suggest is outlined here http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler? (but you've probably already looked at this...) Sorry I can't be more help - it has got me thinking though, where I work will probably run in

Re: mousemove listener for document?

2010-01-29 Thread DaveC
ocument > level is much better that having several handlers on various buttons and > anchors. > > Thanks. > > On Tue, Jan 26, 2010 at 4:47 PM, DaveC > wrote: > > > I've run into (perfornance) issues using a NativePreviewHandler as it > > will recieve *ALL*

Re: mousemove listener for document?

2010-01-26 Thread DaveC
USEOVER: handleMouseOver(foEvent); break; >         }// end switch >      } > > }); > > Regards. > > On Tue, Jan 26, 2010 at 3:09 PM, DaveC > wrote: > > > The way I've done it (I think is): > > > 1. Create a new Class that extends Widget and implement

Re: mousemove listener for document?

2010-01-26 Thread DaveC
The way I've done it (I think is): 1. Create a new Class that extends Widget and implements HasMouseMoveHandlers 2. Grab the RootPanel Element and pass that into your new Class constructor (the one that takes an Element as a param) - this should call setElement(Element element) with you passed in

Re: How to write a simple overlay implementation?

2010-01-26 Thread DaveC
Your create method is returning an Element - not an SVGPanel... I'd personally start with a Widget (not a JavascriptObject) and use GWT DOM methods (these will be optimised for each of the supported browsers)... I have the same problem as you - going from a JS world to a GWT/Java world sometimes s

Re: Am I using deffered binding correctly?

2010-01-25 Thread DaveC
implementation? Cheers, Dave On Jan 25, 5:34 pm, Thomas Broyer wrote: > On Jan 25, 3:12 pm, DaveC wrote: > > > I'm using deferred binding to separate out some browser specific code. > > > In my *.gwt.xml file I've got a property provider (with a bit of > > Java

Re: Deferred binding with an external JavaScript file?

2010-01-25 Thread DaveC
Yeh it's possible - but I'm not sure thats the "best" way of doing it... (for example I've used it when I have a 'Native' browser implemention and a 'Gears' implementation both implementations extend a default one - which is the one I use in my app code - GWT then replaces this with either a Native

Am I using deffered binding correctly?

2010-01-25 Thread DaveC
I'm using deferred binding to separate out some browser specific code. In my *.gwt.xml file I've got a property provider (with a bit of Javascript doing some detection) and a replace-with/when... etc, The deferred binfing works correctly and different browsers are getting different implementation

Re: My icons are missing

2010-01-22 Thread DaveC
Note the first forward slash in your image url - this points to the root of your server and not /appname/... Cheers, Dave On Jan 22, 4:41 pm, darkling wrote: > I'm trying to add icons to my application. Everything worked fine when > I ran in the google browser but now that I've published the sys

Re: HandlerManager

2010-01-22 Thread DaveC
GWT 2 - what browser(s) are you viewing this in?) On Jan 21, 6:24 pm, PaulBee wrote: > Thank you DaveC, > > But the BlurHandler doesn't seem to work on the FocusPanel. > I've tryed every way of taking the focus away from the panel, and it > is just not calling the BLurHan

Re: HTML5 DND and File Upload...

2010-01-22 Thread DaveC
rManager in FileReader is undefined (which I think equates to null in GWT/Java speak)? Cheers, Dave On Jan 21, 4:49 pm, DaveC wrote: > OK, > > I've have a working implementation in IE, FF and Chrome (using Gears > where necessary - GWT 2.0) that allows me to capture when a file

Re: HandlerManager

2010-01-21 Thread DaveC
Something like... ListBox box = new ListBox(); box.addItem("Hello"); box.addItem("World!"); final PushButton button = new PushButton("Hidden"); FocusPanel p = new FocusPanel(); p.addFocusHandler(new FocusHandler() { @Override

HTML5 DND and File Upload...

2010-01-21 Thread DaveC
OK, I've have a working implementation in IE, FF and Chrome (using Gears where necessary - GWT 2.0) that allows me to capture when a file is dragged from the desktop and dropped into the browser window. The next part of the puzzle is to grab the file data/content and upload it... grabbing the dat

Re: better place for image

2010-01-09 Thread DaveC
n Jan 8, 11:46 am, ale wrote: > > > > > Thanks for the answer, I will try your example. > > I'm a little afraid to upgrade to gwt 2.0, because I have a lot of > > pages developed with 1.7 ... > > and the idea of rewrite a lot of code now... > > >

Re: Injected CSS rules are evaluated after onModuleLoad/Widget#onLoad

2010-01-09 Thread DaveC
use both modifications, deferring the onModuleLoad (mainly > for the logger) and ensuring immediate CSS injection -- explicit is > better than implicit :) Or do you see any (performance) issues with > this approach? > > Sebastian > > On Sat, Jan 9, 2010 at 1:25 AM,

Re: Injected CSS rules are evaluated after onModuleLoad/Widget#onLoad

2010-01-08 Thread DaveC
Have you tried StyleInjector.inject(cssText, true) ...? " the DOM will be updated immediately instead of just before returning to the event loop. Using this option excessively will decrease performance, especially if used with an inject-css-on-init coding pattern" I had a similar problem using th

Re: Clone a widget using DOM.clone ?

2010-01-08 Thread DaveC
public class ClonedWidget extends Widget { public ClonedWidget(Element element) { setElement(element); } } ClonedWidget myNewWidget = new ClonedWidget(Dom.clone(elementToClone, true)); Is that the kind of thing you're looking for? Cheers, Dave On Jan 8, 12:07 am, Michael

Re: better place for image

2010-01-08 Thread DaveC
I use ClientBundle (and CssResource) (I'm using GWT 2 by the way...) e.g. public interface RichToolTipClientBundle extends ClientBundle { @Source("resources/css/rich-tooltip.css") public RichToolTipCssResource getCss(); @Source("resources/img/logo.png") public ImageResource getLo

Trying to Implement HTML5 Drag And Drop API

2010-01-07 Thread DaveC
OK, So far I have a working implementation in Firefox 3.0 - 3.6 (using Gears for < 3.6) and Chrome which allows me to capture (and inspect) a file when it's dragged from the desktop and dropped into the browser. I'm now trying to get an implementation working in IE (using Gears) - but I feel a bi

Re: Having Trouble Extending MouseEvent...

2009-12-31 Thread DaveC
case "error": return 0x1; case "mousewheel": return 0x2; case "DOMMouseScroll": return 0x2; case "contextmenu": return 0x4; case "paste": return 0x8; case "drop"

Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
..also I override the eventGetTypeInt(String) method in order to add the html5 drag and drop events, is this what you did? Cheers, Dave On Dec 31, 2:16 pm, DaveC wrote: > Ignored those warnings/errors and renamed anyway it it compiled/runs > in hosted mode fine... > > The only pro

Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
Ignored those warnings/errors and renamed anyway it it compiled/runs in hosted mode fine... The only problem is that the events aren't being captured (or the handlers aren't being added correctly)... would you be able to post one of your Event classes? Cheers, DaveC On Dec 31, 1:45

Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
ient.impl' already exists in this project in a folder I guess if I downloaded the GWT source doing this would be straight forward but I can't do that for this project... I need to stick with the (2.0) release. Any other suggestions? On Dec 31, 9:26 am, DaveC wrote: > Ah, cool t

Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
> addHandler... > > ... and it works perfectly... > > Hope it can help... > > On 31 déc, 01:28, DaveC wrote: > > > > > It seems I'm trying to do the same > > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa.. > > and have

Re: DOMImpl for iPhone: How to do ?

2009-12-30 Thread DaveC
It seems I'm trying to do the same thing http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e1c6bd5a5d196ecf... and have come up against the same barriers. If I find the answer I'll let you know. Cheers, Dave On Dec 30, 10:23 pm, fvisticot wrote: > I would like to manage the

Re: Having Trouble Extending MouseEvent...

2009-12-30 Thread DaveC
ar to be possible (or at least simple or obvious or documented)... Its frustrating for me as I've already written the (few lines of) javascript code to do this - I'm using GWT for a project so really I need a GWT implementation... Do any of the GWT experts have any suggestions?? On Dec 3

Having Trouble Extending MouseEvent...

2009-12-30 Thread DaveC
I'm probably not doing this the right way but, I've been trying to extend MouseEvent to support HTML5 Drag and Drop (drag, dragenter, etc. etc.). I've created a: Has...Handlers interface bunch of Handler classes (DropHandler, DragEnterHandler, etc) and a bunch of Event classes that extend MouseEv

Re: GWT & CSS3 sitting in a tree...

2009-10-20 Thread DaveC
7;m not a Java programmer - but I can write a bit - so patching Flute, CSSParser and GWT is probably beyond my knowledge - but maybe I'll have a go at writing something in Javascript first and then port it to Java! On Oct 19, 4:15 pm, Thomas Broyer wrote: > On 19 oct, 11:38, DaveC wrote:

Re: Wait until widget is ready

2009-10-19 Thread DaveC
Hi Michael, The Widget.onLoad method should be called after its attached to the document (rendered)... Assuming that you have a "MyComponent" inside a ScrollPanel, perhaps try this in your MyComponent: @Override public onLoad() { Widget parent = getParent(); if (parent != null

GWT & CSS3 sitting in a tree...

2009-10-19 Thread DaveC
I'm trying to use some css3 media queries in my GWT app via a CssResource and StyleInjector e.g. @media screen and (color) { ... } Unfortunately GWT’s CssResource doesn't yet support this - it strips out the bit it doesn't understand and outputs: @MEDIA screen{} …removing any rules I declare