Having problems with getOffsetWidth() accuracy?

2012-12-20 Thread markww
Hi, I'm using firefox 17. I'm trying to measure the width of a FlowPanel instance. It seems to always be off by about 5 or 6 pixels. I'm doing it like this: FlowPanel fp = new FlowPanel(); fp.getElement().getStyle().setProperty(maxWidth, 300);

Strange results for Window.getClientWidth() on mobile safari vs UIWebView

2012-12-09 Thread markww
Hi, I've got a GWT app which simply reports the client width: Label label = ...; label.setText(Client width: + Window.getClientWidth()); I'm getting strange results on an iphone 4S (retina device). When run from mobile safari, it reports 980 pixels, which is expected. I then created

JsonpRequestBuilder requestString() - does it work?

2012-11-25 Thread markww
Hi, I've got an example of JsonpRequestBuilder.send() working - but this requires us to provide an overlay type in the callback: new AsyncCallbackMyOverlayType() { public void onSuccess(MyOverlayType result) { } } Is there a way to instead get the raw String result from

Re: Keep getting ClassNotFoundException for a server-side class from inherited project?

2012-11-25 Thread markww
-ProjectBase. Then eclipse can do its local compiles ok, and deploys now work ok with it too (both clientside and serverside code). Thanks On Saturday, 24 November 2012 16:40:24 UTC-5, markww wrote: Hi, I have a gwt project, called base. It has a class in its server package, Foo.java

Get an attribute from a GWT object via jsni?

2012-11-24 Thread markww
Hi, I'm using Canvas, I need to get a property from the context: context.webkitBackingStorePixelRatio; I'm not sure how to make a jsni function to do this (this property does not seem to have a wrapper already in the gwt Context2d class): // How do we define this function and pass in

Keep getting ClassNotFoundException for a server-side class from inherited project?

2012-11-24 Thread markww
Hi, I have a gwt project, called base. It has a class in its server package, Foo.java: com.me.test.server.Foo; I have another gwt project called zebra, which references project base. This is done in eclipse, in the Java Build Path settings. I'm trying to use the Foo class server-side in

Re: Keep getting ClassNotFoundException for a server-side class from inherited project?

2012-11-24 Thread markww
for type Bar; did you forget to inherit a required module? I thought these used to block compilation, I can't remember. Thanks On Saturday, 24 November 2012 16:40:24 UTC-5, markww wrote: Hi, I have a gwt project, called base. It has a class in its server package, Foo.java

Re: Keep getting ClassNotFoundException for a server-side class from inherited project?

2012-11-24 Thread markww
compile shows no problems, and I have the base project marked as exported in the zebra project which uses it. Any ideas what's going on here? It just seems like the class file for Foo is not getting exported with the deploy, Thanks On Saturday, 24 November 2012 17:05:32 UTC-5, markww wrote

Re: How to set stroke width for Canvas Context2d?

2012-11-12 Thread markww
Thanks Chris, that's what I needed. On Thursday, 30 August 2012 02:24:28 UTC-4, Chris Lercher wrote: To set the width of the stroke, use ctx.setLineWidth(double) In general, FillStrokeStyle currently has three subclasses: - CanvasGradient - CanvasPattern - CssColor They don't have

More efficient way of creating CssColor instances?

2012-11-12 Thread markww
Hi, I need to do some drawing on a canvas element, is there any better way of creating fill styles on the fly? Currently I have to do this: public void drawFoo(Context2d context, int r, int g, int b, int a) { CssColor clr = CssColor.make(rgba( + r + , + g + , + b + , a + ));

Probably using ClientBundle wrong but can't figure out what is wrong?

2012-11-10 Thread markww
Hi, I'm trying to use ClientBundle with an image. My interface: public interface MyImages extends ClientBundle { @Source(orange.png) ImageResource orange(); } The image orange.png is in the same package as the above class. Now I try to use it: public void

Re: Probably using ClientBundle wrong but can't figure out what is wrong?

2012-11-10 Thread markww
Hi, Context2d.drawImage() wants an ImageElement, but orange.getElement() only produces an Element instance. This is why in the example I had: ImageElement.as(orange.getElement()); Thanks On Saturday, 10 November 2012 14:07:27 UTC-5, Alfredo Quiroga-Villamil wrote: When you go to draw

Read file from /war folder?

2012-11-06 Thread markww
Hi, I have a text file in my war folder: /war |---notes |--- myfile.txt How can I read the contents of myfile.txt from my client code? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view

FastButton? Handling touch events for mobile?

2012-11-05 Thread markww
Hi, I've got some buttons on a page which will primarily be used from mobile devices. The click handlers fire only after a 300ms delay (intentional on mobile devices as detailed here [https://developers.google.com/mobile/articles/fast_buttons]). Looks like someone has tried to implement the

Asynchronous work - what are our options?

2012-09-10 Thread markww
Hi, I was hoping to do some asynchronous work, though I do not believe this is possible (due to the limitations of javascript). The work I need to do is not an http request, it's computing some AI stuff for a game. If I understand correctly: 1. RPC is reserved only for http communication.

Re: CellList + NoSelectionModel - can we get visual feedback on click?

2012-09-08 Thread markww
On Saturday, 8 September 2012 06:35:33 UTC-4, Thomas Broyer wrote: On Friday, September 7, 2012 8:51:44 PM UTC+2, markww wrote: Secondly, when the mouse is released, then I do get a visual change in the list, a row changes color like so: http://cl.ly/image/1f3i0o2X2n3k but this is exactly

CellList + NoSelectionModel - can we get visual feedback on click?

2012-09-07 Thread markww
Hi, I've got a CellList. I am using a NoSelectionModel strategy (I just want the user to click an item in the list without any visual statefulness). When an item is clicked, the list doesn't provide any visual feedback. Can we do this via css (something like set a mouse-down style for a

CellList - is there a better way than building raw html?

2012-09-05 Thread markww
Hi, I'm looking at the CellList demo, the AbstractCell implementation is generating raw html strings for a cell presentation implementation: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList static class ContactCell extends AbstractCellContactInfo { ...

Re: CellList - is there a better way than building raw html?

2012-09-05 Thread markww
Hi Jens, Let's say I only plan on having 20 rows at any given time. If I were to implement a list using a ScrollPanel + 20 VerticalPanel instances as rows, could you see that working? I'd be mostly concerned with being able to scroll the list nicely on mobile devices (fling scrolling, elastic

CellList - clicking an item makes the other list items disappear?

2012-09-04 Thread markww
Hi, I'm trying to implement a CellList. It works ok, but when I click an item, it seems like all other items in the list are destroyed, and I'm left with the clicked item in the upper left corner of the screen. Here's my setup: CellList list = new CellListFoo(cell);

Re: CellList - clicking an item makes the other list items disappear?

2012-09-04 Thread markww
My fault, my custom cell implementation was a copy-paste from the contacts demo. I commented out the closing table tag which was messing things up. On Tuesday, 4 September 2012 18:44:44 UTC-4, markww wrote: Hi, I'm trying to implement a CellList. It works ok, but when I click an item

Centering content in a panel?

2012-08-19 Thread markww
Hi, I'd like to make a vertical group of Buttons, and have them centered horizontally and vertically in the page. This page will likely be used on mobile devices, so the contents might be taller than the device - so I'll need a scroll bar in those cases: http://cl.ly/image/1x3u2A053S01

Re: Centering content in a panel?

2012-08-19 Thread markww
% (the red area is the VerticalPanel with height=100%): http://cl.ly/image/0u0k3c3y1H1X Any ideas here? Thanks On Sunday, 19 August 2012 16:55:01 UTC-4, markww wrote: Hi, I'd like to make a vertical group of Buttons, and have them centered horizontally and vertically in the page

Re: Centering content in a panel?

2012-08-19 Thread markww
I ended up using the trick of adding a window size change listener, ugh: https://developers.google.com/web-toolkit/doc/1.6/FAQ_UI#How_do_I_create_an_app_that_fills_the_page_vertically_when_the_b On Sunday, 19 August 2012 16:55:01 UTC-4, markww wrote: Hi, I'd like to make a vertical group

RootPanel from a Node?

2010-06-01 Thread markww
Hi, Is there a way to get the id of a Node, or to just make a RootPanel from a Node? I am doing this: RootPanel panel = RootPanel.get(foo); Element element = panel.getElement(); for (int i = 0; i element.getChildCount(); i++) { Node node = element.getChildAt(i); String id =

Re: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2010-05-06 Thread markww
work in chrome or safari 2) Use standard login submit form (outside of gwt, but will work on all browsers) Thanks On May 5, 8:29 pm, markww mar...@gmail.com wrote: What version of GWT are you using Viliam, form.addFormPanel() doesn't seem to exist anymore? On Apr 27, 12:32 am, Viliam Durina

Re: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2010-05-06 Thread markww
...@gmail.com wrote: On May 6, 4:45 pm, markww mar...@gmail.com wrote: Actually, just confirming this, all the solutions presented here *do not* work in webkit browsers (chrome, safari), right? Looks like it works in firefox ok. I haven't found any alternative solutions in my

Re: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2010-05-05 Thread markww
What version of GWT are you using Viliam, form.addFormPanel() doesn't seem to exist anymore? On Apr 27, 12:32 am, Viliam Durina viliam.dur...@gmail.com wrote: There is even a simpler solution without using JSNI at all. Set the form's action to just javascript:; and put the login logic to the

Re: Attaching my panels to preexisting divs?

2010-05-04 Thread markww
25, 11:28 pm, markww mar...@gmail.com wrote: That sounds just like what I need, but I am not find a wrap() method on any UIObject derived class, am I missing it, is it part of some static utility class or something? I'm using GWT 2.0, was this removed or something? Have a look

Prerendering GWT UI - avoiding white blank screen before UI is generated?

2010-04-25 Thread markww
Hi, I've got a legacy website that has quite a few different html pages, and we want to add GWT to them a little at a time. I tried just creating a new gwt module per page, to see how it would work. When switching between pages, we'll get a kind of annoying blank white screen before the

Attaching my panels to preexisting divs?

2010-04-25 Thread markww
Hi, I have a page generated using jsp, it just creates a bunch of skeleton elements to which I'd like to then attach my gwt code. Something like: body div div id=col1/div div id=col2/div div id=col3/div div id=col4/div /div /body when my entry point starts

Re: Attaching my panels to preexisting divs?

2010-04-25 Thread markww
: I think there's a wrap() method for most widgets.  You just need to get the div as a divelement and then wrap() it. On Apr 25, 2:14 pm, markww mar...@gmail.com wrote: Hi, I have a page generated using jsp, it just creates a bunch of skeleton elements to which I'd like to then attach

Hosted mode debugging after navigating to a different path in your web app?

2010-04-24 Thread markww
Hi, When we're running our apps in hosted mode, we get a url to run like: http://localhost:/projectname.jsp?gwt.codesvr=192.168.1.2:9997 in my app, I have some links which will send the user to another page on my site, something like: http://localhost:/about once this happens

Defining a global function in JSNI?

2010-04-21 Thread markww
Hi, I'm using the youtube player api. The youtube player object lets you add an event listener callback function, by name. I'm running into a problem with this because I don't think I'm defining a global function correctly or GWT is mangling the name or something along those lines. Example:

Session management and startup state of app

2010-04-20 Thread markww
Hi, Reading this wiki about sessions and gwt: http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ This is the code that is suggested to run when the user lands on your page: String sessionID = Cookies.getCookie(sid); if ( sessionID != null )

Making a simple 3 column layout?

2010-04-14 Thread markww
Hi, I was hoping to use VerticalPanel and HorizontalPanel instances to make a simple 3 column page layout. Something like: VerticalPanel VerticalPanel // this is the header (width: 100%, height: 90px) /VerticalPanel HorizontalPanel VerticalPanel // this

Scrollbars for VerticalPanel?

2010-04-11 Thread markww
Hi, I'd like to make a VerticalPanel which increases the overall height of the document body, and let the main browser scrollbar scroll it. Something like: body myVerticalPanel ... will add a bunch of stuff here /myVerticalPanel /body I'm doing this like:

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-07 Thread markww
Got a solution working for app engine, posting here: http://groups.google.com/group/google-appengine-java/browse_thread/thread/702805bede93842e thanks all On Apr 6, 4:08 pm, markww mar...@gmail.com wrote: That would be perfect! I tried to make a brand new project using it and pushed

JSONP support and memory leaks?

2010-04-07 Thread markww
Hi, I'm reading through this excellent article about supporting jsonp in our gwt apps: http://code.google.com/webtoolkit/articles/using_gwt_for_json_mashups.html I'm not that familiar with javascript, and the following function is worrying me: public native static void setup(Hax0r h,

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
Yeah all program state will be lost but that's ok for my application. Any idea on how to do that catch-all mapping though? I don't know what the term for this is so searching is not going well, I am guessing I have to do something with the url-pattern in the servlet-mapping section:

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
forward slash for the url-pattern) does not work. Thanks On Apr 6, 6:53 am, markww mar...@gmail.com wrote: Yeah all program state will be lost but that's ok for my application. Any idea on how to do that catch-all mapping though? I don't know what the term for this is so searching is not going

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
...@googlegroups.com] På vegne av markww Sendt: 6. april 2010 20:46 Til: Google Web Toolkit Emne: Re: Supporting mysite.com/[username] urls with a gwt app? Hi Sri, Ok I'm using that:  servlet    servlet-namegreetServlet/servlet-name    servlet

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
-pattern    /servlet-mapping That way you don't have to write any java code. --Sri On 7 April 2010 00:33, markww mar...@gmail.com wrote: Ok but if I make a new servlet that does not inherit from GWT's servlet, how can I get it to serve my project.html and associated compiled javascript

Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread markww
Hi, I'd like to have a simple url scheme similar to twitter, something like: // shows my app landing page. http://www.mysite.com // shows public info on a user. http://www.mysite.com/johndoe how could I do this with GWT? I think we can use this format: http://www.mysite.com#johndoe

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread markww
, markww mar...@gmail.com wrote: Hi, I'd like to have a simple url scheme similar to twitter, something like:   // shows my app landing page.  http://www.mysite.com   // shows public info on a user.  http://www.mysite.com/johndoe how could I do this with GWT? I think we can use

Using eval ?

2010-04-01 Thread markww
Hi, I have two textareas set up: [textarea1] [textarea2] in textarea1, I enter some text from a story, like Once upon a time. in textarea2, I enter some text I want to evaluate as javascript. when I hit a button, I want to grab the contents of textarea2, call eval() on it, which can modify

Get value of textarea?

2010-04-01 Thread markww
Hi, I have a textarea in my html host file. I'd like to get its contents from my GWT app. I'm trying something like: Document.get().getElementById(testId).getInnerText(); but it's always empty. Is there a way to grab the value from a textarea? Thanks -- You received this message because

XHTML does not work?

2010-02-20 Thread markww
Hi, I want to use an XHTML file instead of an HTML file as the entry page for my project. If I change myproject.HTML to myproject.XHTML, the project no longer works (I updated the other references to .HTML in my project as well). Does gwt just not work with XHTML? Thanks -- You received this

Re: XHTML does not work?

2010-02-20 Thread markww
NOT_FOUND RequestURI=/index.html Powered by Jetty:// If so then you need to tell browser to hit your new URL. Also go into web.xml and change the default welcome page URL. On Feb 21, 12:33 am, markww mar...@gmail.com wrote: Hi, I want to use an XHTML file instead of an HTML file

Re: XHTML does not work?

2010-02-20 Thread markww
it will detect that and tell you. Paul S On Feb 21, 2:29 am, markww mar...@gmail.com wrote: Hi Paul, Yes I set the path in web.xml, so it doesn't have any problem with that, it looks like when I try to run my project as a web app, I get the usual startup sequence, but no URL

Where does YourProject.gwt.xml go when you want to export to jar?

2010-01-31 Thread markww
Hi, I have a typical project structure that I'd like to export into a jar for import as a module into another gwt project: src com.me.test client Blah.java Test.gwt.xml so Test.gwt.xml is at the same level as the client package. My second project inherits it

Re: Where does YourProject.gwt.xml go when you want to export to jar?

2010-01-31 Thread markww
Ok so I moved Test.gwt.xml into the client package, so it looks like this now: src com.me.test client Blah.java Test.gwt.xml and I removed the entry-point class= statement in it as well. Now I switch over to the project importing this jar. In its

Re: Where does YourProject.gwt.xml go when you want to export to jar?

2010-01-31 Thread markww
 pm, Cristian Nicanor Babula nicanor.bab...@gmail.com wrote: The xml file has to be on the same level with the client package, but not inside it! Also make sure that the .java files are in the .jar file. On 1/31/2010 9:28 PM, markww wrote: Ok so I moved Test.gwt.xml into the client package

Re: Click vs. Double Click

2010-01-31 Thread markww
Hi Vince, did you make any progress with this? I have a ToggleButton, and want to be able to discern between single and double clicks, Thanks On Dec 4 2009, 12:11 pm, Vince vicenci...@aol.com wrote: Hello, Case : I am trying to implementClickandDoubleClickhandlers to an HTML object (It's

Re: How to write a simple overlay implementation?

2010-01-26 Thread markww
/org/gwtwidgets/client/svg... On Tue, Jan 26, 2010 at 6:22 AM, markww mar...@gmail.com wrote: Hi, I'd like to make some really simple overlay classes in GWT to wrap some SVG stuff. I'd basically like to get a rectangle drawn, this is how I do it in javascript:  var svg

Deferred binding with an external JavaScript file?

2010-01-24 Thread markww
Hi, I'm trying to do a bit of deferred binding, not sure if this is possible with GWT. I want to use an external js file, only if the browser is Internet Explorer. The deferred binding example I found shows how to load some gwt classes dynamically - I'd like to include this js file dynamically

Color of cells in row in mouse over

2010-01-05 Thread markww
Hi, Does anyone have an example of setting the color of a row of cells in a FlexTable on a mouse over? I'd like to turn the whole row of cells green for example when the user puts the mouse over any cell in that row, Thanks -- You received this message because you are subscribed to the Google

Where can we find color values used in GWT themes?

2010-01-04 Thread markww
Hi, Where can we find the colors used in the pre-packaged themes? I'm just using the standard theme supplied with GWT 2.0, and I'd like to use the same shades of blue they use in other areas of my app. Thanks -- You received this message because you are subscribed to the Google Groups Google

Re: Using our own server with GWT 2.0

2010-01-03 Thread markww
Hi, I just started using gwt 2.0 with eclipse 3.5, and am also having trouble getting -noserver to work now (had it working ok in previous gwt versions). I compiled my app once, put all my files on my remote web server, example: http://www.mywebsite.com/test/MyProject.html .. etc .. in

Listen for click on VerticalPanel?

2009-09-08 Thread markww
Hi, Is it possible to listen for a click event on a VerticalPanel? I don't see any methods like addClickHandler() for it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

How to combine History and URL Parameters?

2009-06-26 Thread markww
Hi, I'm not sure how we use history and parameters in GWT. For example, when my user wants to go to a login page, I do this: History.newItem(login); which makes the url: www.mysite.com/myproject.html#login that's ok, if they copy and paste that url to another browser instance, my app

GWT + OpenID - experiences?

2009-06-21 Thread markww
Hi, I spent some time figuring out if OpenID would work well with my GWT app, not sure if anyone else has tried. If I understand correctly, when a user gets to my app, I need to ask them to sign in with an OpenID provider (google, yahoo, facebook, etc). This is a bit problematic because the

Setting bg color of a panel?

2009-06-17 Thread markww
Hi, I followed the Building User Interfaces doc on the GWT site. I can't seem to get a panel to fill with a background color though. Example: HorizontalPanel hp = new HorizontalPanel(); hp.add(new Label(some text)); hp.add(new Label(some more text)); hp.setStyleName(mystyle);

Auto-login

2009-06-17 Thread markww
Hi, I have to implement an auto login feature for my web app. It seems the best way to do this is to use cookies. My server will have two tables to support this: // users userid | hashed_password // sessions session_id | userid | session When a user visits my website, they can choose

How to bookmark?

2009-06-14 Thread markww
Hi, I need to store the state of my GWT app in the user's browser address bar for bookmarking. For example, when visitors use my web app, they'll be directed to: www.mysite.com/index.html where index.html hosts the GWT compiled app script. Now through my app's interface, the user may

Troubles getting -noserver to work with Apache

2009-06-13 Thread markww
Hi, I'm trying to get a test project running using -noserver and GWT 1.6. I want to use Apache as the backend. All I wanted to do was call some PHP scripts on my live server from hosted mode, however this seems to be impossible now with changes to GWT and SOP. It seems using -noserver and

Generating UI with GWT or PHP

2009-06-13 Thread markww
Hi, This is a general question about GWT and user interfaces. In my (limited) use with PHP, the server was responsible for generation of most of the 'UI'. Each script would emit some html which the client browsers download and render. If we wanted to write a project only using GWT for the

3rd parties and GWT-RPC?

2009-06-12 Thread markww
Hi, I'm wondering what options we have when we want a 3rd party to talk to our server. For example, I'm using GWT RPC as-is. So my clients (browsers) talk to the server perfectly, works great. Now I'd like to make an iPhone app (an actual objective-c compiled app) that also uses my web service.

MarkerManager - any plans to include?

2009-05-29 Thread markww
Hi, This is a follow up to the following discussion: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/84a78456056ff61c/07f2539bfecc64bc?fwc=1 (however my messages are not appearing there). In the current GWT maps API, there is no MarkerManager class, we add markers

svn - mac/windows/linux?

2009-05-28 Thread markww
Hi, I've got a GWT project I want to put into svn for compilation on a windows machine and a mac. I can't figure out how we're supposed to add the project files to an svn repository so that it will work on both platforms. I suppose I could only svn the /src folder, but that's not ideal. Is

Recover html elements from GWT?

2008-12-05 Thread markww
Hi, I have an existing html file, with a div definition like: html div id=test x=20px y=100px / /html In my GWT project, is there a way to recover that div and use it as the backing for my javascript object? Say I define a class in my project: public class Test {

Re: Your opinion sought: Jetty or Tomcat?

2008-12-05 Thread markww
Yay Jetty. On Dec 5, 2:50 pm, Arthur Kalmenson [EMAIL PROTECTED] wrote: Well, I didn't say that it promises to increase unit test speeds :P, I was asking if it would. It does make sense that it would since unit tests require for hosted mode and tomcat to be launched. -- Arthur Kalmenson

calling new DOMParser()

2008-11-17 Thread markww
Hi, I'm wrapping some native javascript code which calls: var x = new DOMParser(); This call results in an exception being thrown, stating that DOMParser cannot be found. I'm testing it like: private native void test() /*-{ var x = new DOMParser(); }-*/; I don't know much

Re: calling new DOMParser()

2008-11-17 Thread markww
-toolkit- doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideJavaFromJavaScript -jason On Nov 17, 2008, at 9:29 AM, markww wrote: Hi, I'm wrapping some native javascript code which calls:    var x = new DOMParser(); This call results in an exception being thrown, stating that DOMParser

RPC, database connection reality check?

2008-11-15 Thread markww
Hi, I am testing out a simple RPC call (as in the StockWatcher example). I'm pulling some records from a database in the service now: public class MyServiceImpl extends RemoteServiceServlet implements IMyService public Stuff[] getStuff(String criteria) {

Re: RPC, database connection reality check?

2008-11-15 Thread markww
/jndi-datasource-examples-howt... Some of the principles to move from what you have in your current code to code that uses conection pooling are in this article:http://www.javaranch.com/journal/200601/JDBCConnectionPooling.html Hope that helps. //Adam On 15 Nov, 15:57, markww [EMAIL

Javascript object - what are our options?

2008-11-15 Thread markww
Hi, Can we use objects created in native javascript code in our GWT apps? There's a library I want to use which creates an object and uses it like: Car = new Car(); car.onDrive = function(ntype, from, to) { if (! ntype) { whatever(); } } I wouldn't have

Re: Javascript object - what are our options?

2008-11-15 Thread markww
Great that looks perfect, thanks for the example, Mark On Nov 15, 2:52 pm, kozura [EMAIL PROTECTED] wrote: Hi, Check out the JSNI documentation here:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog..., which talks about the JavaScriptObject that you want to use.

Re: Javascript object - what are our options?

2008-11-15 Thread markww
extends JavaScriptObject {   public static final native Car newCar() /*-{ return new Car(); }-*/;   protected Car() {   }   public final native void drive(String from, String to)/*-{ this.drive(from, to); }-*/ } On Sat, Nov 15, 2008 at 11:00, markww [EMAIL PROTECTED] wrote: Hi, Can we use

Calling a web service which uses JSON?

2008-10-22 Thread markww
Hi, I have an ASP.NET server which has made some web services available, and does all its data passing via JSON. Can I get GWT to use the webservices, since the communication is done via JSON? I'm wondering if the: sample/JSON project is the thing to look at in how to do this? Or is

Re: Calling a web service which uses JSON?

2008-10-22 Thread markww
On Oct 22, 8:05 am, Lothar Kimmeringer [EMAIL PROTECTED] wrote: markww schrieb: I have an ASP.NET server which has made some web services available, and does all its data passing via JSON. First make sure if you're talking of WebServices where a WSDL- file is published and XML is the used

remote debugging with Jetty and GWT?

2008-10-13 Thread markww
Hi, I'm using Jetty 6.x as my web server. Does anyone know how to setup remote debugging with GWT? It's difficult debugging via print statements.. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web

Interfacing with Cometd?

2008-10-12 Thread markww
Hi, I was looking to create a chat server using continuations, and came across Cometd, a framework which already provides a scalable continuation based messaging system. I don't think we can mix it with GWT server-side though, as its servlet interface exposes the 'service' method: void

Re: GWT + comet?

2008-09-08 Thread markww
, I don't know how much needs to be ported. Thanks for any comments, Mark On Sep 8, 6:23 am, Thomas Broyer [EMAIL PROTECTED] wrote: On 7 sep, 05:50, markww wrote: Is there any 'comet' support via GWT at the moment? I'm not completely up to speed with javascript / browser technologies, I

Re: GWT + comet?

2008-09-07 Thread markww
a framework for this multiplex stuff. I don't usually recommend cometd because for the majority of comet applications, you don't need to multiplex anything. On Sep 7, 5:50 am, markww [EMAIL PROTECTED] wrote: Hi, Is there any 'comet' support via GWT at the moment? I'm not completely up to speed

GWT + comet?

2008-09-06 Thread markww
Hi, Is there any 'comet' support via GWT at the moment? I'm not completely up to speed with javascript / browser technologies, I believe comet was the practice of having the browser keep a connection open to the server so the server could push data to the browser whenever it wanted, instead of