Re: HTML5 innershiv

2010-11-03 Thread davidroe
royer wrote: > On 22 oct, 20:15, davidroe wrote: > > > bump > > > I guess a better way of phrasing the question is how should a GWT > > project render HTML5 tags for all browsers knowing that one of those > > browsers could be IE? > > > this is achievable us

Re: HTML5 innershiv

2010-10-22 Thread davidroe
over the dynamic process any thoughts on how this could be used with UiBinder? On Oct 14, 4:47 pm, davidroe wrote: > A problem: html5shiv allows you to use HTML5 markup in IE, but the > approach does not work with dynamic content. > Seehttp://code.google.com/p/html5shiv/ > > A solu

HTML5 innershiv

2010-10-14 Thread davidroe
A problem: html5shiv allows you to use HTML5 markup in IE, but the approach does not work with dynamic content. See http://code.google.com/p/html5shiv/ A solution: innerShiv is a function which takes your HTML string, adds it to a hidden document-appended element in IE, and returns an IE-safe docu

Re: IE7,IE8 clicking #fragmented links does not call the history listener

2010-06-02 Thread davidroe
I can remember a similar situation on a project where links like topic1 misbehaved in IE and were substituted for something like topic1 HTH, /dave On May 24, 10:39 pm, Rares wrote: > Hello everyone, > I have a burning problem and I am as always running out of time. > We are using GWT 2.0.3 to ge

Re: UIBinder and CSS resources obfuscation

2010-04-14 Thread davidroe
there was a time when I was also looking for this and was unable to find the answer. pls report back to the group if you come across the solution. thanks. On Apr 14, 4:09 am, "david.herv...@gmail.com" wrote: > Thanks for the reply but I've already tried this solution but as I > have mentionned i

Re: Scroll techniques for mobile phones

2010-03-30 Thread davidroe
If you disable the zooming capabilities of the viewport, very tall panels should be scrolled by the OS. On Mar 24, 11:18 pm, Sekhar wrote: > How are folks (or is anyone) doing page scrolls for GWT apps on mobile > phones? I'm having a bad time getting things going on say Android. > E.g., the scro

Re: UI Binder and MVP

2010-03-24 Thread davidroe
the examples of the mvp4g project seem to mix MVP and UiBinder well. http://code.google.com/p/mvp4g/ On Mar 24, 10:57 am, skippy wrote: > I am using the UI Binder to build a site. > I like the MVP design pattern shown in the contacts example. > > However, when I try to put the ui binder in a vie

Re: UiBinder with background-image and ImageResource

2010-03-14 Thread davidroe
> > > > thew widget works fine as well. It look like if the ui:with does not > > > throw > > > > ensureInjected or something. The styles are applied, but they are empty. > > > > > Regards, > > > > mh > > > > > 2010/3/11 da

Re: UiBinder with background-image and ImageResource

2010-03-10 Thread davidroe
to be not using style at > all. Shall I also add anything to the class itself? > > 2010/3/10 davidroe > > > > > this is how I did it. > > > in whatever.css: > > > @sprite .myClass { > >  gwt-image: "myImage"; > >  width: auto; heigh

Re: UiBinder with background-image and ImageResource

2010-03-10 Thread davidroe
this is how I did it. in whatever.css: @sprite .myClass { gwt-image: "myImage"; width: auto; height: auto; background-repeat: repeat; background-position: 0% 0%; } in Resources.java: public interface Resources extends ClientBundle { ... public interface WhateverCss extends CssReso

Re: How to implement

2010-02-24 Thread davidroe
perhaps something like this? public void onModuleLoad() { // put code here that constructs the widget and inserts it into the DOM DeferredCommand.addCommand(new Command() { public void execute() { //

Re: UiBinder exceptions

2010-02-13 Thread davidroe
the code is not that interesting or special. I define a composite widget class and specify the .ui.xml and everything UiBinder would need, and then instantiate that class 20 times. 18 or 19 of them will attach to the DOM without a problem (and their element can therefore be found) but once or twic

UiBinder exceptions

2010-02-12 Thread davidroe
I have recently started to use UiBinder as a way to define the UI. I have previously defined my UI using either just Java code to build panels and widgets or by (ab)using setInnerHTML. I have never come across runtime exceptions when creating widgets until using UiBinder. My UI will now throw exc

Re: GWT Caching in Internet Explorer

2009-12-17 Thread davidroe
can you try option 4, but insert the date into the URL at the time it is clicked, not when the page is rendered? On Dec 15, 2:41 am, Salil wrote: > Hello Forum Members, > > I am facing a peculiar issue of Caching in internet explorer with my > GWT Application. This issue does not occur in Firefox

Google Web Toolkit Gallery - submissions down?

2009-12-10 Thread davidroe
I have tried to submit a project to the GWT gallery a number of times but I believe there is a problem with the interface - the form submission returns a completely blank page. there are no contact details on the GWT site for problem reporting. is there a better place to report this? thanks, /dav

com.google.gwt.i18n.client.Constants

2009-11-20 Thread davidroe
in general, how should one go about segmenting and structuring methods and properties for i18n for a mid to large sized application? - should there be a single class and associated properties files (1 per language) that cover every requirement in all classes? or should constants be organised into

Closure Compiler

2009-11-05 Thread davidroe
I have not looked at this in any detail yet, but the first question I have is whether this functionality duplicates the work of the GWT compiler, given the following description: "Closure Compiler is a JavaScript optimizer that compiles web apps down into compact, high-performance JavaScript code

Re: what are prerequisites for learning google window toolkit

2009-09-09 Thread davidRoe
which could also be phrased as "you will gain Java skills". I came to GWT from JavaScript and found the transition from one language to another to be easy, you should find it to be a similar experience from Flex. on the down-side, Java can be pretty verbose at times, but at least you won't be us

Re: trying to track GWT timers

2009-07-27 Thread davidRoe
terminating. only time will tell whether it will have an impact - I'm still waiting to see whether I can reproduce the crash. and, by the way, I tried searching the GWT group for this thread and it returned nothing - the index seems broken. On Jun 30, 9:46 am, davidRoe wrote: > I had thought

Re: Using SOYC

2009-07-22 Thread davidRoe
I believe this was changed to -extra extradir On Jul 22, 9:23 am, kuvera wrote: > Hi, > > I have just built GWT from trunk, and I would like to inspect the > component sizes in one of my modules with SOYC, using it for the first > time. > The only specification I found was in the wiki named Code

Re: detecting images that fail to load using image.addLoadHandler

2009-07-15 Thread davidRoe
gt; >    WinAndLose wal = new WinAndLose() { >       public void onLoad(LoadEvent event) { >       } > >       public void onError(ErrorEvent event) { >          ... >       } >    } > >    image.setErrorHandler(wal); >    image.setLoadHandler(wal); > > } > >

detecting images that fail to load using image.addLoadHandler

2009-07-14 Thread davidroe
how can I determine that an image failed to load, due to perhaps a network error? I used to use image.addLoadListener(new LoadListener() { public void onLoad(Widget sender) { ... } public void onError(Widget sender) { ... } } and anything that arrived through onError() was de

Re: trying to track GWT timers

2009-06-30 Thread davidRoe
() and setInterval(), I may be able to track what is going on. /dave On Jun 30, 5:12 am, Ian Bambury wrote: > Surely when you close the browser window (or navigate away) the timers are > gone. > Ian > > http://examples.roughian.com > > 2009/6/30 davidroe > > > >

trying to track GWT timers

2009-06-29 Thread davidroe
I have a situation where I need to ensure that _every_ timer launched is closed upon exit, meaning I track each timer I create and ensure that I cancel it when the application is about to close. is anyone aware of any timers that GWT launches that are, perhaps, allowed to self disintegrate, rathe

GWT + Safari (OS X) + Developer console = consistent crash

2009-06-23 Thread davidroe
I have seen the problem ever since upgrading to 4.0 but today I am starting to think that somehow GWT is related to what is happening. the problem: open Safari, browse to site developed using GWT, open developer console, reload the site, watch Safari crash. I see this consistently on the GWT sit

Re: How to use java.lang.Thread in GWT

2009-05-28 Thread davidroe
Timer t = new Timer() { public void run() { // do something after a delay } }; // delay running for 2 seconds t.schedule(2000); HTH, /dave On May 28, 10:05 am, Adil BENHAMID wrote: > as an example I want to display a button then wait two seconds before > displaying the next one. > > 20

Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-30 Thread davidroe
> On Apr 29, 7:01 pm, davidroe wrote: > > > have you tried zero opacity? this usually does the trick for me as it > > is interpreted as in the DOM and visible. > > I'm not quite sure what you mean. Could you elaborate? > > Anders --~--~-~--~~~---

Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-29 Thread davidroe
have you tried zero opacity? this usually does the trick for me as it is interpreted as in the DOM and visible. /dave On Apr 29, 4:54 am, dduck wrote: > Anyway... > > Using the tip from the issues list (set URL in deferred command) I can > get reliable execution of LoadListener on IE, as well a

Re: ImageBundle + CSS

2009-04-27 Thread davidroe
standard? not so sure. however, the incubator has an approach which does what you are after. this might be a good place to start: http://code.google.com/p/gwt-incubator-1-5-wiki/wiki/CssResource /dave On Apr 27, 2:37 pm, Hannson wrote: > Is there some standard way to let ImageBundle return a

Re: Debugger() was called!

2009-04-27 Thread davidroe
; > On Thu, Apr 23, 2009 at 6:21 PM, davidroe wrote: > > > I use to see this message randomly, now I see it consistently, but am > > wondering what it is that I am doing to cause it. > > > 2009-04-23 15:19:01.980 java[63492:80f] [Java CocoaComponent > > compatibili

Debugger() was called!

2009-04-23 Thread davidroe
I use to see this message randomly, now I see it consistently, but am wondering what it is that I am doing to cause it. 2009-04-23 15:19:01.980 java[63492:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-04-23 15:19:01.981 java[63492:80f] [Java CocoaComponent compatibility mode]: Setti

Re: Facebook XFBML in GWT Hosted Mode?

2009-04-21 Thread davidroe
I'm pretty sure this works for me without a problem. protected Widget makeLoginButton() { String s = ""; HTML h = new HTML(s); DeferredCommand.addCommand(new Command() { public void execute() {

Re: IE6 + history support

2009-04-16 Thread davidroe
rror. On Apr 16, 2:22 am, Thomas Broyer wrote: > On 15 avr, 21:21, davidroe wrote: > > > usual problem with IE6 not behaving like any other browser. this one > > is relatively blatant. I have included the code to a new project > > created in 1.4 that has a history listene

IE6 + history support

2009-04-15 Thread davidroe
usual problem with IE6 not behaving like any other browser. this one is relatively blatant. I have included the code to a new project created in 1.4 that has a history listener and not much else. if I click on the link, which sets the history token to #link1, the page reloads and onModuleLoad is

Re: Issue With Single Origin Policy

2009-03-07 Thread davidroe
you can perform GET requests without violating SOP by dynamically adding script elements that expect JSONP as a return value (JSON wrapped in a callback into your JS). search this group for more detail responses and other techniques. /dave On Mar 6, 9:35 pm, jagadesh wrote: > Hi guys, > > iam

Re: Compilation of a GWT project for firefox

2009-03-04 Thread davidroe
gecko1_8 On Mar 4, 2:08 am, Chichone wrote: > i have the following compilation error : > > [ERROR] Unable to load module entry point class > org.vnf.itineo.client.Main (see associated exception for details) > com.google.gwt.core.client.JavaScriptException: (TypeError): Cet objet > ne gère pas ce

Re: Know when the site is being viewed by hand held

2009-02-25 Thread davidroe
examine the incoming user-agent in the HTTP headers, or in Javascript, examine navigator.userAgent to determine which browser is being used. /dave On Feb 25, 9:23 am, Sean wrote: > I was wondering how certain sites, ESPN.com for example know to go to > the hand helds version of the site (Smalle

Syntax errors viewing search results in google groups

2009-02-23 Thread davidroe
good morning, I've browsed three threads this morning and all three had different questions with a similar recipe - "this is the solution but it doesn't work on IE" - how much longer are we going to suffer for our art? :-) anyway, the reason I am writing is that I am seeing syntax errors thrown w

Re: How to remove a GWT widget from the Dom using native javascript?

2009-02-22 Thread davidroe
because the child you are trying to remove is oNodoToRemove, not removeThis? /dave On Feb 22, 4:46 pm, Darkflame wrote: > *correction I was using; > >  var removethis = $doc.getElementById('fade'); >  removethis.parentNode.removeChild(oNodeToRemove); > > (not $wnd, before anyone points that out

Re: "is invalid or violates the same origin policy" A problem with POST request to the Yahoo API.

2009-02-20 Thread davidroe
+script+element /dave On Feb 20, 1:12 pm, "scottland.yo...@googlemail.com" wrote: > I'll have a search on how to do that, is it simple enough to do?  I > tried downgrading to 1.5.2 but it didn't change anything. > > On Feb 20, 9:08 pm, davidroe wrote: > > > perform the request by dynamically adding a

Re: "is invalid or violates the same origin policy" A problem with POST request to the Yahoo API.

2009-02-20 Thread davidroe
perform the request by dynamically adding a

Re: Best image preloading practice?

2009-02-12 Thread davidroe
I had thought the same, but I remember that there was a reason for using this technique. ISTR that at least one browser didn't load images from the server when attached to a parent whose display is none. I wouldn't stake my life on this being true, as something else may have been causing that beha

Re: Horizontal Open/Close DisclosurePanel

2009-02-10 Thread davidroe
I don't believe DisclosurePanels can work in this fashion. it shouldn't take you too long to roll your own control that can do what you want. build a class that extends Composite, place a control on the left (an image, for example) that displays the toggle switch and a control on the right that s

Re: XMLParser and Internet Explorer

2009-02-10 Thread davidroe
having recently dealt with my own problem regarding IE parsing XML, I can offer you my sympathy but little else. my issue was caused by particular characters in the document not being properly encoded, causing the IE xml parser to barf. my recommendation is to strip down the document until you hav

Re: Best image preloading practice?

2009-02-09 Thread davidroe
negative co-ordinates? Or do > you have to put it to the right and stop horizontal scrolling? > > I assume checking offset width still works even if its offscreen? > > Cheers, > Thomas > > On Feb 9, 6:46 am, davidroe wrote: > > > I have only skimmed this thread,

Re: Best image preloading practice?

2009-02-08 Thread davidroe
I have only skimmed this thread, and I've not looked at the game, but here is my 2c. my situation is a little different - I'm not pre-loading images per se, but I am loading them in the background. I use a hidden panel (hidden by being positioned off screen rather than display:none) which I load

IE8 support

2009-01-20 Thread davidroe
I am curious about current and future support for IE8. > The list of browsers that GWT currently supports are: > > - Firefox 1.0, 1.5, 2.0 and 3.0 > - Internet Explorer 6 and 7 > - Safari 2 and 3 > - Opera 9.0 > > (current as of May 2008) > > We can also add on Google Chrome, Android and iPhone t

Re: What are you using for a backend??

2009-01-20 Thread davidroe
I run a back-end using Apache/mod_perl using AxKit and XSL to convert XML into JSON. have you investigated a web host like slicehost.com? they provide you with a virtual machine which you can install any OS and back-end you choose. /dave On Jan 20, 5:24 am, sloughran wrote: > So, in my messing

Re: GWT Spring Integration

2008-12-11 Thread davidroe
perhaps one of these articles will help: http://delicious.com/davidroe/spring /dave On Dec 10, 8:43 pm, Sriram Iyengar <[EMAIL PROTECTED]> wrote: > Hi, We have been trying to get GWT and Spring to work, but > unfortunately no luck as yet. > > Our application makes a simple c

Re: GWT and Mobile Device

2008-12-03 Thread davidroe
Your targeted mobile device will require a web browser. As that is the case, there is very little else to say until you get down to the nitty- gritty. This group has an article entitled "GWT + iPhone == Pretty Tasty", you could read that for some ideas. As mobile devices are not as powerful as th

Re: setting Label widgets in each cell of 1000row x 17col grid is too slow..

2008-11-28 Thread davidroe
I've not checked out the incubator BulkTableRenderer, so I can't comment, but search this group for "Grid with a million rows" for an excellent solution courtesy of Reiner. /dave On Nov 26, 10:41 am, "Jim Colton" <[EMAIL PROTECTED]> wrote: > ..taking about 25 seconds on a 1.7ghz laptop with fire

Re: setWidgets where no one has gone before

2008-11-11 Thread davidroe
this thread should be of interest to you: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7fca5ad288a2a415/c6b352619dbc4e0e?q=davidroe+FastContainer&lnk=ol&; /dave On Nov 11, 2:56 pm, "seven.reeds" <[EMAIL PROTECTED]> wrote: > Hi All, > >

Re: published iphone apps written in GWT

2008-11-03 Thread davidroe
r this? > > Any hints / opinions on lessons learned thus far on the approach you > are using? > > Many thanks. > > On Oct 29, 11:26 am, davidroe <[EMAIL PROTECTED]> wrote: > > > GWT is a processor-intensive way of building an interface and > > therefore not ideally

Re: published iphone apps written in GWT

2008-10-29 Thread davidroe
nd it... was it not published? > > Many thanks, > Mike > > On Oct 28, 6:19 pm, davidroe <[EMAIL PROTECTED]> wrote: > > > I think that being in the app store is likely to attract more users to > > your application as this is where people tend to look. Additional

Re: published iphone apps written in GWT

2008-10-28 Thread davidroe
I think that being in the app store is likely to attract more users to your application as this is where people tend to look. Additionally, not all apps in the store cost money, so why not use it to organise web apps? That said, I think that the user expects to find applications that will run nati

Re: GWT FeedReader

2008-09-11 Thread davidroe
Load the page in Safari with Developer options on. Inspect the panel to see what is causing the offset. Look for empty elements or non-zero values for margin and/or padding. /dave On Sep 11, 11:19 am, Bear <[EMAIL PROTECTED]> wrote: > I am having a problem using some of the code from FeedReader

Re: GWT 1.5 Code Bloat ?

2008-09-05 Thread davidroe
I haven't a clue myself, but the feeling I get is that the numerous changes and improvements from 1.4 to 1.5 are less focused on reducing the code size and more about improving code performance. If code size is of high importance to you, I suggest you look at what (else) you can streamline within

Re: Chrome support

2008-09-04 Thread davidroe
> [1] IE6 downloads the ImageBundle and the clear.cache.gif for each and > every image on the screen, even if you show 50x the same... could this be solved using this solution that I just copied from the internets? LoadModule expires_module libexec/mod_expires.so AddModule mod_expires.c Exp