Why do you need the file to be on the server, just put it in the client side
and load it wit ClientBundle, it supports .txt resources
On Sun, Jan 3, 2010 at 8:42 AM, ky zane.t...@gmail.com wrote:
I am trying to have the server read from a file, called config.txt,
in the same directory as the
Hi
Before Christmas I switched from Vista to Ubuntu, so I've been
wondering if that what's been causing the logs to go missing (unlikely
i know), but I've just rebooted into Vista and tried it again and it
still doesn't work.
Surely someone else using Spring is seeing this too?
--
Thanks
Paul
Sorry Pion, you are correct. Http supports syn and asyn calls.
When you are using Http, you receive from the server or Xml file or a String
(Key:value). It work fine for simple applications.
But when you are building large and complex applications, you follow some
design patterns (MVC for
RPC means, that you can write Java Code for your browser, that invokes the
methods of an server side object. It also provides a complete build in
serialization for your Java objects.
HTTP request means, that your doing a normal Ajax / HTTP request to an URL.
Which solution is better, depends on
Lucas, I don't agree with you.
I would recommend to use HTTP, since you can use JSON instead of XML and
JSON objects are directly available to your GWT app (JavaScript overlays).
Furthermore in a RIA architecture (that's what GWT is developed for) you
should have clear separation between your
Hi,
I am using gwt-dispatch to implement my GWT-RPC calls. I need to get the
remote address from the http request. But i don't have access to the
request. With direct gwt rpc i would use
getThreadLocalRequest().getRemoteAddr, but how to do it with gwt-dispatch?
For my session management i use
Make it very practical, and have decent computers.
Good luck
On Jan 3, 4:28 am, Henry q8e...@gmail.com wrote:
Hi,
I'm about to teach a course on GWT here in my home city in Canada.
Any hints/tips/advice before I start?
thx,
Henry
hc...@apache.org
--
You received this message because you
Also, check the site's videos section.
On Jan 3, 4:28 am, Henry q8e...@gmail.com wrote:
Hi,
I'm about to teach a course on GWT here in my home city in Canada.
Any hints/tips/advice before I start?
thx,
Henry
hc...@apache.org
--
You received this message because you are subscribed to
Hi
i also want to ask what is the best practice with cookies and gwt-
dispatch. In standard server side web frameworks the cookie is added to the
response, but in gwt we have Cookies class in the client side(js), so in the
first approach the cookie is created on the server and send back to the
For me, one of the most important points is that I didn't want to have
a java based server code.
I needed to work on anything else.
That left me with the http / Json, it was not hard to be done but you
will need to take care of a lot more things...
On the other hand, if you don't mind using java
Hi,
i have a problem when packing custom utilities in a jar for reusing in other
projects. I would like to know, if there is special way to pack custom gwt
library into jar file.
In my IDE (Eclipse galileo) i have 2 projects A (main project) and B
(project with the gwt utilities classes).
On Sun, Jan 3, 2010 at 21:07, Rodrigue Lagoue rlag...@googlemail.com wrote:
Hi,
i have a problem when packing custom utilities in a jar for reusing in other
projects. I would like to know, if there is special way to pack custom gwt
library into jar file.
In my IDE (Eclipse galileo) i have 2
You can used a simple http filter.
On 3 jan, 12:46, mariyan nenchev nenchev.mari...@gmail.com wrote:
Hi,
I am using gwt-dispatch to implement my GWT-RPC calls. I need to get the
remote address from the http request. But i don't have access to the
request. With direct gwt rpc i would use
Thanks for your answer..
No i have the new one... I think if it was the case, the java compilation
wouldn't work, since i use the new classes added with GWT2.0.
On Sun, Jan 3, 2010 at 2:18 PM, Qian Qiao qian.q...@gmail.com wrote:
On Sun, Jan 3, 2010 at 21:07, Rodrigue Lagoue
On Sun, Jan 3, 2010 at 21:25, Rodrigue Lagoue rlag...@googlemail.com wrote:
Thanks for your answer..
No i have the new one... I think if it was the case, the java compilation
wouldn't work, since i use the new classes added with GWT2.0.
The reason I asked whether you have GWT2.0 on your
Hi Quian Qiao,
i just looked at it more precisely and i fount out, that the path to
gwt-user.jar was wrong. I think i was tired last nignt :-)
thanks a lot for your support...
it works now
happy new year
Rodrigue
On Sun, Jan 3, 2010 at 2:34 PM, Qian Qiao qian.q...@gmail.com wrote:
On Sun,
ky schrieb:
I am trying to have the server read from a file, called config.txt,
in the same directory as the main .html file within the war.
In hosted mode, I can easily access the file using a Scanner object:
Scanner s = new Scanner(config.txt);
But this does not work when deployed
On Sun, Jan 3, 2010 at 21:38, Rodrigue Lagoue rlag...@googlemail.com wrote:
Hi Quian Qiao,
i just looked at it more precisely and i fount out, that the path to
gwt-user.jar was wrong. I think i was tired last nignt :-)
thanks a lot for your support...
it works now
happy new year
Rodrigue
Hi,
Eclipse seems to use old versions of my test classes. When I add a
method to my test class, and run the test via Run as - GWT JUnit
Test or Run as - GWT JUnit Test (production mode) or Run as -
JUnit Test, Eclipse doesn't see the new test method. Same for
removing old test methods. Even after
Chris, or anyone else with experience on MVP in GWT...
Practically, do you always have 1 view as the user sees it, i.e., the
whole GUI, or if your GUI has many components (as most GUIs do), do
you have multiple views, and most importantly, multiple presenters,
presenting 1 coherent view to the
I don't think i understand you. I need to use getRemoteAddr() in my execute
method (from gwt-dispatch).
On Sun, Jan 3, 2010 at 3:20 PM, philippe vonck...@yahoo.fr wrote:
You can used a simple http filter.
On 3 jan, 12:46, mariyan nenchev nenchev.mari...@gmail.com wrote:
Hi,
I am using
Yes, this is the same issue.
It is already entered.
Thanks.
Pardeep
On Dec 28 2009, 8:28 am, Chris Ramsdale cramsd...@google.com wrote:
Checkout:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4413
If this is the same issue that you are experiencing, start the issue (or the
In my experience, the fewer components you have for a single view, the
easier it becomes to maintain code. With that being said, there are some
cases where it makes more sense to combine a large number of UI components
into a single view, but you certainly can have many views and many
presenters
Hello,
If you wanna do this probably you would have to patch gwt-dispatch a
little bit. But I'm not at 100% sure about that, cause I'm not familiar
with that library.
Guice Servlet allows injections of HttpServletRequest and
HttpServletResponse classes in case your class is scoped to the
Hi Jan:
I am with you on the separation of concern between GWT client and server
using JSONP. Have you look at http://google-web-
toolkit.googlecode.com/svn/javadoc/2.0/index.html in GWT trunk and work
out a solution with a REST framework such as Restlet. Please share your
experience.
Duong
Thanks!
I tried to inject ProviderHttpServletRequest and it worked, but i'm not
sure if this is the right approach. Hupa project for example injects
ProviderHttpSession and uses it for session management. May be i have to
look at the implementation, because it is like some magic at this moment :).
Hi,
maybe I am just too blind, but I have troubles getting the maximum
scroll position of a ScrollPanel.
Getting the current scroll position is really simple:
myScrollPanel.getScrollPosition();
but - I do not see any possibility to get the maximum scrolling
position in a similar simple
Cool :)
I think that such usage is okay.
Regards,
Miroslav
mariyan nenchev wrote:
Thanks!
I tried to inject ProviderHttpServletRequest and it worked, but i'm
not sure if this is the right approach. Hupa project for example
injects ProviderHttpSession and uses it for session management.
Just a thougt - have you tried java 1.5? If I remember correctly I
used to have similar problems (on Mac).
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To
After some searching I found this:
http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html
. It worked for me on GWT 2.0 + MySQL. Be careful when copy-pasting
the sample jetty-web.xml file, it uses curling quotes; also, don't
forget to add jetty-plus-*.jar and jetty-naming-*.jar
When I trying to define another version in script tag than 2 (for
example 2.0) my gwt compiled code doesn't work. It only displays map
without my overlays and controls.
I need to define 2.0 version because of 2nd version of google maps
doesn't work properly with overlays in Opera browser.
Has
Abhay,
As Sripathi Krishnan pointed out in his reply, I also find it hard to
believe you´d run into that trouble just because of a missing JAR.
I had a similar issue with my mysql connection when updating to GWT
2.0, though my error message was slightly different (it indicated some
sort of lack
The official Google Web Toolkit (GWT) developer discussion group. GWT
lets you build AJAX apps in the Java programming language
For more info;
www.123maza.com/construction/
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this
I've found this can be caused by an old version of gwt-servlet.jar in
the path.
Szemere
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this
I'm trying to get the GWT compile phase to spit out a template
properties file that I can hand to translators to make it easy to do
translation work. For my server-side strings, I've been using the
xgettext metaphor (and GNU gettext tools to do the string extraction,
which can then convert the
Hi All
I am trying to start hosted mode for DynaTable samples from GWT2.0.0
using command line(see below):
This sample works very very in all previous gwt versions.
[ERROR] Unable to find 'DynaTable.gwt.xml' on your classpath; could be
a typo, or maybe you forgot to include a classpath entry for
http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html
The directions in the link above worked for me using GWT 2.0 + MySQL.
On Dec 1 2009, 4:22 pm, Steve shar...@rationalblue.com wrote:
I am also very interested in this capability. After spending this
entire day researching
In Gmail, for instance (yes, I know it predates GWT, but please bear
with me for a moment), it's possible to override browser detection and
run against an unsupported browser for various reasons. So I've been
dissecting the nocache.js in Detailed compile mode to see if this sort
of thing might be
I'm currently investigating porting a library to GWT that makes fairly
heavy use of the Java 2D API (java.awt.*). There seem to be a few
oldish attempts to integrate GWT with the Java AWT classes (e.g.
http://tinyurl.com/abstractcanvas , http://tinyurl.com/yetanotherjsblog),
but nothing very
From what I have read, not tried yet but planning on soon: You can
take JDO object, make it serializable, and mark it transient, then
you can send it to the client. The client can then use it and send it
back. But you cant just add it back as a JDO object because it is now
a new object. You
Hopefully it will save someone else time to point out that the
adthwart chrome extension must be disabled or whitelist the code srvr
or ui actions/events won't execute.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group,
It would be cool, if you do it like PeepCode, I mean online.
2010/1/3 Henry q8e...@gmail.com
Hi,
I'm about to teach a course on GWT here in my home city in Canada.
Any hints/tips/advice before I start?
thx,
Henry
hc...@apache.org
--
You received this message because you are
On Sun, Jan 3, 2010 at 09:02, jetpac jet.jet...@gmail.com wrote:
Hello experts,
I am new to gwt and am trying to use google map api. In the getting
started guide, there is a prerequisite to know how to 'import it into
the Eclipse IDE environment using the projectCreator and
Stating the obvious here, but the above URL is spam. Please do not click on
it. This user has been blocked from any further posts.
- Chris
On Fri, Jan 1, 2010 at 6:57 AM, rosey veenam...@gmail.com wrote:
The official Google Web Toolkit (GWT) developer discussion group. GWT
lets you build AJAX
On Sat, Jan 2, 2010 at 22:17, morfeusys morfeu...@gmail.com wrote:
When I trying to define another version in script tag than 2 (for
example 2.0) my gwt compiled code doesn't work. It only displays map
without my overlays and controls.
I need to define 2.0 version because of 2nd version of
On Sat, Jan 2, 2010 at 05:34, shooty sasan.sa...@gmail.com wrote:
Hi All,
I tried everything, but the eclipse plugin is not working together
with the GWT SDK.
I installed newest JDK, GWT and tried several eclipse versions. I also
installed the newest appengine.
The behavior is always the
Do you see the following files under your root DynaTable directory?
./src/com/google/gwt/sample/dynatable/DynaTable.gwt.xml
./war/WEB-INF/classes/com/google/gwt/sample/dynatable/DynaTable.gwt.xml
On Sat, Jan 2, 2010 at 10:40 PM, Costa costa.con...@gmail.com wrote:
Hi All
I am trying to
There are some minimum version numbers required for the
gwt-google-apis - see the release notes.
On Sun, Jan 3, 2010 at 1:44 PM, Qian Qiao qian.q...@gmail.com wrote:
On Sat, Jan 2, 2010 at 22:17, morfeusys morfeu...@gmail.com wrote:
When I trying to define another version in script tag than 2
Couple of diagnostic questions:
1. What version of Windows are you running (Vista, Windows 7, etc...)?
2. I'm assuming 32 bit architecture and not 64 bit. Is this correct?
3. What project are you trying to compile (custom or one of the samples)?
4. What do you see in the Eclipse log file
Yaakov,
Having multiple presenters driving a single view would be a bit strange.
Typically want to the presenter to define the display interface that the
view will implement. Having multiple presenters drive a single view means
that either a) the display interface is defined in some parent
Also, is there a particular reason that you're using
com.google.gwt.dev.GWTShell and not com.google.gwt.dev.DevMode?
On Sat, Jan 2, 2010 at 10:40 PM, Costa costa.con...@gmail.com wrote:
Hi All
I am trying to start hosted mode for DynaTable samples from GWT2.0.0
using command line(see below):
Hi Chris
Thanks for you input around the dividing of presenters and views in bigger
apps like Gmail.
Do you have any brief input on how runAsync and MVP play together?
/Flemming
On Sun, Jan 3, 2010 at 8:36 PM, Chris Ramsdale cramsd...@google.com wrote:
Yaakov,
Having multiple presenters
I would suggest using addStyleName(), as it will allow you to tweak the look
and feel, and still leverage all of the existing DecoratorPanel CSS. The
following code worked for me:
public ContactsView() {
DecoratorPanel contentTableDecorator = new DecoratorPanel();
Hi,
I would like to add object to a suggest box, and when selected I would
like to get the object.
Is it possible?
My problem is that I have a some DTO, that have and id and a
description, but the description is not unique:
so, in the suggest I have some description repeated (and this is ok),
but
Just to reiterate, I would like best to find a way to obtain the base
path for the web application that lives inside the war.
@Lothar:
Thanks for the tip; I am calling getClass().getResourceAsStream
(config.txt) from ServiceImpl.java in the server package. It works
when I put config.txt in the
This is a bug. The ListListObject return type is causing the compiler to
generate serialization code for any class X that extends ListT, where T is
an interface that has a implementing class that extends class X. The
following code will reproduce the issue:
@Deprecated
public class MyTest extends
I don't agree about the separation of concerns factor with GWT-RPC.
GWT has gone to great lengths (to the point of being annoying in my
case) to ensure that a developer knows exactly where the code is that
is being written.
As far as the RPC vs RESTful debate, I think most everyone would agree
HI,
When i am trying to GWT Compile in eclipse it is deleting
CSS,JS,images files from workspace.
What can be the problem?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to
The way I'm getting around the issue is by calling
String root = getServletContext().getRealPath(/);
after the server has initialized (i.e. outside ServiceImpl.java's
constructor). Apparently you simply cannot get the ServletContext in
the constructor of ServiceImpl? I suppose that makes sense.
Hiya,
I'm using GWT 2.,0 (just ported my app from 1.6) on Ubuntu (karmic
amd64), Galileo (Eclipse 3.5) and Spring (2.0.6)
using log4j and a console appender works just fine, and sends the logs
to the Console view in Eclipse (NOTE: NOT the log at the bottom of the
'Development Mode' view).
The
Hi Nathan,
even, if I'm using Java on a server, I would prefer REST with JSON, since
most of my server side projects are Spring based.
My experience with GWT RPC and Spring is, that it's harder to integrate than
doing some REST. With Spring 3.0 REST even becomes much more easier. A
further point
ky schrieb:
Thanks for the tip; I am calling getClass().getResourceAsStream
(config.txt) from ServiceImpl.java in the server package. It works
when I put config.txt in the server package, but I was hoping to put
it in the war in the same place as the main .html file, on the same
level where
At the expense of repeating a few points already mentioned, here's my
summary -
*
Server Platform*
1. If you are using a non-java platform on server side, GWT RPC is not an
option.
2. If you want to integrate with existing thirdparty services or do
mashups, you'd have to use REST. In
Or if your *.rpc files are out of sync. Make sure you are copying the
generated rpc files to the war.
--Sri
2010/1/1 Szemere szemereszem...@googlemail.com
I've found this can be caused by an old version of gwt-servlet.jar in
the path.
Szemere
--
You received this message because you
Is there any way to extend that code in UserAgent.gwt.xml without copying
it verbatim or hacking it up in-place?
Don't see a way out other than copying property-provider to your
module.gwt.xml and making modifications. At least you don't have to hack up
UserAgent.gwt.xml.
Its not too bad, in
Thanks for the notes on the two functions - nice to know about them!
--Sri
2010/1/4 Sripathi Krishnan sripathi.krish...@gmail.com
Is there any way to extend that code in UserAgent.gwt.xml without copying
it verbatim or hacking it up in-place?
Don't see a way out other than copying
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,
Even i don't understand the acual issue with GAP, but yes once i
switch it off from then location
you gave me, my application stats working...
Thanks
On Jan 2, 1:58 am, PrimateMarco
marco.antonio.almeida.si...@gmail.com wrote:
Abhay,
As Sripathi Krishnan pointed out in his reply, I also
It would be great if the new ClientBundle would be used to style all
gwt widgets.
(btw: Why is it called ClientBundle and not ResourceBundle as it
bundles up different resources...)
So let each widget define an interface containing all resources used
to style the widget (messages, images,
On Jan 3, 6:42 am, jarrod jarrod.carl...@gmail.com wrote:
While working with some of the new Layout widgets (DockLayoutPanel in
particular), I noticed
that older widgets, such as HTML, automatically set a default primary
style name in the
constructor, while the DockLayoutPanel does not.
Using both setStyle and addStyleNames isn't a necessity. However,
in some cases, it is desirable to remove any existing, default styles
from the widget (in the case of HTML) before adding my own custom
styles. For this to be effective, I imagine I would have to use
setStyleName or
Yes. You can have a look at my current testpage at
http://www.floreysoft.net
It's just a bunch of new LayoutPanel with css styles only.
On Jan 3, 6:30 pm, John Tamplin j...@google.com wrote:
On Sun, Jan 3, 2010 at 5:56 AM, dflorey daniel.flo...@gmail.com wrote:
- TabLayoutPanel is working fine
For some reason I get this error when launching oophm devmode:
18:48:49.359 [ERROR] [website] Unable to load module entry point
class
com.floreysoft.website.client.Website (see associated exception for
details)
java.lang.NoSuchMethodError: java.lang.String.equals(Ljava/lang/
String;)Z
at
I had to remove all gwt dependencies from the run configuration and
restore the defaults to get rid of this error.
Just in case someone else struggles...
On Jan 3, 6:50 pm, dflorey daniel.flo...@gmail.com wrote:
For some reason I get this error when launching oophm devmode:
18:48:49.359
Maybe I'm dumb but I do not find any styles associated with the new
StackLayoutPanel...
And no methods to add click listeners etc.
I'd expect the same styles as on StackPanel:
CSS Style Rules
.gwt-StackPanel { the panel itself }
.gwt-StackPanel .gwt-StackPanelItem { unselected items }
On Jan 3, 5:24 pm, jarrod jarrod.carl...@gmail.com wrote:
Using both setStyle and addStyleNames isn't a necessity. However,
in some cases, it is desirable to remove any existing, default styles
from the widget (in the case of HTML) before adding my own custom
styles. For this to be
Hi googlers,
In DOMImplMozilla's initSyntheticMouseUpEvents is a reference to
$wnd.__captureElem, which is never set (or read) anywhere, making the
workaround fail as being no-op in practice.
Shouldn't it be
@com.google.gwt.user.client.impl.DOMImplStandard::captureElem instead?
--
77 matches
Mail list logo