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);
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
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
-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
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
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
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
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
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
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 + ));
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
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
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
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
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.
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
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
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 {
...
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
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);
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
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
% (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
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
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 =
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
...@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
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
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
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
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
:
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
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
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:
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 )
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
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:
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
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,
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:
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
...@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
-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
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
, 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
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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);
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
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
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
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
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.
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
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
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
{
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
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
-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
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)
{
/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
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
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.
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
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
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
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
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
, 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
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
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
86 matches
Mail list logo