hi, i dont want to talk if the anemic is good or evil ;) anyway, your
domain classes without any transformation logic should reside in the
shared package, to be available to client and server. Then I would
take this approach:
you define interface to access the domain classes and put them in
...indeed its a good workaround to solve some issues, but there could
be many nontransparent side-effects in web/dev mode etc and in
serialization, furthermore it yields maintainance of many versions of
same code. imho its better to respect the tiers in the software
architecture
On 22 Feb.,
hello, I have written a linker which shall post-process resources
generated by a generator due to rebind-with rule. It works well during
compilation process. But in dev mode I cannot get it running, i have
hooked into relink() method which is documented to be called in dev
mode and I also have
you obtain it from your servlet context:
i.e. getServletContext().getRealPath(/WEB-INF) from within your
servlet
On 21 Feb., 11:30, Jon Britton mankillseveryth...@googlemail.com
wrote:
Hi,
When I was running on Windows, the ./ directory would be
tomcat_home/webapps/my_app but now I'm running
*sry for doublepost*
i.e. servletContext().getRealPath(/); from within your servlet
On 21 Feb., 11:30, Jon Britton mankillseveryth...@googlemail.com
wrote:
Hi,
When I was running on Windows, the ./ directory would be
tomcat_home/webapps/my_app but now I'm running on ubuntu it just
refers to
GWT needs to wrap any exception to make it serializable and prevent
the server from answering a 500 http status code. that is, GWT moves
exception handling from HTTP layer to each own and the exception is
handled on the client, which first tries to parse the exception and
rethrows it, thats how
unfortunately, there is no formatter, I'd also would be happy if there
was one. but you can make a helper function which formats numbers with
padding zeros:
String fn(int num, int pads) {
if(num=10)return Integer.toString(num);
char[] z;
for(z= new char[pads], int i=0; iz.length; i++) z[i]='0';
yes, gwt 2.1 introduced JUL support, so you can either use the built-
in java logging api or a 3rd party library like gwt-log, more doc to
find at http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuide.html
On 16 Feb., 11:12, Jon Britton mankillseveryth...@googlemail.com
wrote:
Hi,
am, ep eplisc...@googlemail.com wrote:
yes, gwt 2.1 introduced JUL support, so you can either use the built-
in java logging api or a 3rd party library like gwt-log, more doc to
find athttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuide.html
On 16 Feb., 11:12, Jon Britton
for sure they are! but probably due to this GWT 2.2 update they
obviously dont have time to answer, seems like this recent update has
broken a lot of things... so please be patient
On 14 Feb., 13:19, alexoffspring alessales...@gmail.com wrote:
I got the same error this morning. and i already
GWT is not designed to be a UI Framework, rather its a base for
everything else. And this is good so. We're using ExtGWT as a UI
Framework, we kicked SmartGWT because of their JS wraps (not a native
GWT implementation)
On 10 Feb., 11:11, jaga j.annes...@gmail.com wrote:
One problem with GWT is
in addition, in most cases it doesnt matter what java version to use
for GWT code, if your environment still allows java1.4 and you want to
integrate latest GWT into your project, it will do perfectly if you
keep GWT out of serverside as GWT does not dictate to use RPC
communications, or the
thumb of rules for generator:
1) only possible when using deferred binding ( i.e.: Foo foo =
GWT.create(Foo.class) )
2) your generator runs in pure VM so you're free to do whatever you
want BUT the code you generate has to be translateable to JS, while
generating you can also create additional
in 2.1.0 I have the problem that I define my locales like so:
extend-property name=locale values=en,de/
set-property-fallback name=locale value=en/
so actually the 'default' locale is excluded and can never happen that
would be used. I dont provide any key for the default locale, neither
in
ok, got a workaound, see issue.
On 16 Dez., 11:22, ep eplisc...@googlemail.com wrote:
in 2.1.0 I have the problem that I define my locales like so:
extend-property name=locale values=en,de/
set-property-fallback name=locale value=en/
so actually the 'default' locale is excluded and can
you dont need to, just put a fullyqualified classname on the wire and
forName() it in the VM. you may also think about providing your custom
field serializer for the class, but actually would be nonsense since
you anyway cannot use it reasonably on the client
On 14 Dez., 12:20, yves
hi, everything's possible ;) there is no problem about that, you've
just to keep in mind that you're not going to talk against the API
you've coded in java. for those purposes you have ability of writing
JSNI methods to communicate with JS world directly. If you want to
call your GWT code from the
depends on the MVP framework you use - gwtp for instance, already
supports it, if GWT MVP does not, then you can subclass presenter,
call it IndicatingPresenter and add one more lifecycle state,
because the presenter will be lazy loaded and shows a loading
indicator until its data is not
to create 50 manually is
ridiculous, I should be able to create one that I can use multiple
times.
On Nov 23, 10:43 am, ep eplisc...@googlemail.com wrote:
what jhulford meant is that you really have to make a new on every
widget class you add to any place.
On 22 Nov., 06:00, Paul daemo
Thomas, in fact it would be really nice if GWT.create() would not
require literals, we wanted to use a template method throughout our
framework to allow to declare the classes to instantiate, maybe you
can provide the issue number so we can vote for it :-)
But after a month I discovered that
just wondering how u want to get image's raw data (binary) on the
client...actually not possible before html5, you have to upload the
image via browser form (and all the remnant data maybe as well to not
work with separate transactions)... take a look at gwtupload
On 29 Nov., 08:20, Noor
as didier already mentioned you'll dont have to care about stuff not
under governance of SoP, actually, the only work your rpc servlet will
have to do is to rewrite the URLs, here you can develop a logic based
on SoP:
i.e. an iframe may reference foreign sites, img as well, script, too,
etc.
do you also add the current changehandler to the recently created
listbox? I mean, while you add the new listbox to the container, this
op fires the second change event, looks like you're nesting your
listboxes, so any change on the child box will propagate to the parent
resulting in second
I guess he got confused on variable name, as actually a final
pageSizeChanged promotes that cannot get changed and therefore the
latter check is needless
if (pageSizeChanged) {
pageSize = length;
}
I've had to look at it twice as well ;)
On 29 Nov., 15:37, Paul Grenyer
have you registered a servlet in your GWT module?
servlet class=yourServletClass path=/test.json/
On 29 Nov., 14:54, Raphael André Bauer raphael.andre.ba...@gmail.com
wrote:
Hi folks,
I want to write a GWTTestcase that fetches a file from the server.
My setup is maven + headless htmlunit for
hi, u think the right way :-)
how did you define your RemoteService methods? have you defined them
to throw exceptions?
GWT RPC works the way that it tries to forward (serialize) caught
exception to the client, if it is able to. that means, that if you
throw a NPE from your service
no performance penalty, since all the requests are processed in
parallel, by single instance though.
On 24 Nov., 23:48, Ross McKinnon r.mckinno...@googlemail.com wrote:
Hi there,
Just a quick question regarding performance of Servlets...
My App is database driven and was wondering if
hi, is this one you're looking for?
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/c5d8b0d04d3ab946#
if so, maybe we can make an issue on that :)
elsewise, maybe a workaround would help:
write a JSNI method which takes generic eventhandler and a widget it
what do you mean by node? you can only give a focus to HTML elements
supporting it, i.e. an image cannot receive a focus but an anchor
(a) so in this case you can wrap the image in an anchor making it
focusable
On 24 Nov., 06:49, David Pinn dp...@byandlarge.net wrote:
The CellTree widget has a
hi, you might want to take a look at http://code.google.com/p/gwt-security/
or http://code.google.com/p/acris/
On 24 Nov., 11:56, Baloe nielsba...@gmail.com wrote:
Hi all,
I wonder what is the best way to put ACL in our GWT project. Is there
any mechanism in GWT build-in to grand users to
please recompile your application with code-generation: detailed and
run again, then you'll get at least meaningful stacktraces in your
exceptions, what running application in dev mode? did you try to
debug?
On 24 Nov., 14:28, pepgrifell pepgrif...@gmail.com wrote:
hi,
we have an application
you might think about moving the GWT client code (which contains
client and shared packages) into custom project to not mixup
classpaths during compile and runtime, after all GWT produces piece of
JS which is actually the one your project needs. so you dont need to
recompile everytime, rather
I also read another guy's post. He put GWT in seperate project. So two
projects, one for front end, one for back end.
it is indeed very common to do it this way, maven could also help you
here
It will be ideal whenever eclipse rebuilds the project, it compiles GWT as
you can do so, by
what jhulford meant is that you really have to make a new on every
widget class you add to any place.
On 22 Nov., 06:00, Paul daemo...@gmail.com wrote:
Sorry if this is somewhere else and I missed it, but I have a Custom
Widget that I need to be able to add multiple times to another custom
performance systems.
Stefan Bachert
http://gwtworld.de
On 19 Nov., 14:56, ep eplisc...@googlemail.com wrote:
actually, its concern of a client to chain the requests, as only it
knows in which order the requests are initiated. actually, your user
shall not be available
please clear cache of your browser and delete all the output dirs for
modules (that named after your module found under war folder)
On 17 Nov., 07:16, Hendrik Jan van Randen hjvanran...@gmail.com
wrote:
We're migrating our GWT 2.0.4 application to GWT 2.1.0.
I've therefore upgraded my Google
what about debugging? you can compile with no obfuscation (detailed
level would be best) and use browser's debugger to get the place where
the error arises, i.e. remove the throwable catch, compile detailed,
enable debugger in IE (or install firebug in FF) and let the error
appear. when clicking
actually, its concern of a client to chain the requests, as only it
knows in which order the requests are initiated. actually, your user
shall not be available to execute instructions in parallel, so your
button has to be disabled until previous calculation (server response)
has been returned.
before HTML5 its not possible in javascript to transform images, but
you can ask google, if found library you can simply use it within GWT.
Elsewise, just get your image uploaded - and transform it on the
server
On 19 Nov., 15:35, Ice13ill andrei.fifi...@gmail.com wrote:
Well, I was thinking
i guess jquery would be best for drupal / wordpress to achieve web2.0
effects. I mean GWT can be used just as a cross compiler, i.e. if you
want to build complex OOP driven masterpiece with no widgets and dont
want to pseudo OOP on javascript. so its all about the problem to
solve
wud be good
btw: how do you use jQuery's plugins with GQuery? I didnt found an API
so had to integrate jQuery for its plugins, GQuery for better API on
effects and wrapped the plugins via JSNI, but maybe GQuery is / going
to support jQueries plugins?
On 19 Nov., 16:41, Christian Goudreau
Gretarsdottir unn...@google.com wrote:
Hi there - answers are inline...
On Wed, Nov 17, 2010 at 4:56 AM, ep eplisc...@googlemail.com wrote:
hello folks,
whats the difference between the:
set-property name=gwt.logging.logLevel value=OFF/
This will set the Level of the RootLogger to be OFF
not sure if this will work outofthe box, since in GWT RPC there is
always a client which is initiating an RPC request first. so you have
to do so in your server code, except for there is nor XHR on the
server, the rest should work fine, especially serialization of the
request command, which you
have some java beans (with simple fields -
string, integer, lists of those types...) and i want to
serialize/deserialize them without modifying them. (widhtoug adding
annotations, other methods, extending... or at least, very few
modifications)
On 17 November 2010 16:53, ep eplisc
batch them (the requests) from client and push them in same http
request :)
do you need them to execute also in the same order? meaning serially?
so that requests actually cannot be processed in parallel anymore?
then you may want to look at gwt-dispatch project, they recently have
added support
in the processing chain I've
missed?
Greg
On Nov 17, 8:53 am, ep eplisc...@googlemail.com wrote:
not sure if this will work outofthe box, since in GWT RPC there is
always a client which is initiating an RPC request first. so you have
to do so in your server code, except for there is nor XHR
hook in the processing chain I've
missed?
Greg
On Nov 17, 8:53 am, ep eplisc...@googlemail.com wrote:
not sure if this will work outofthe box, since in GWT RPC there is
always a client which is initiating an RPC request first. so you have
to do so in your server code, except
from the one point of view, it would be good to pass over any DOM atts
to its elements, maybe this could be accomplished by defining html
namespace, so as html:id=foo or html:onclick=wtf() would be bound
to the underlying element :) oh u see, it can get dirty. the most
important question yet is,
hello folks,
whats the difference between the:
set-property name=gwt.logging.logLevel value=OFF/
and
set-property name=gwt.logging.enabled value=FALSE/
?
I understand I can use LogConfiguration.loggingIsEnabled() to wrap the
code I want to optimize away during compilation, but I could also
you could compile your CLIENT classes with whatever java version you
want, at the end javascript comes out. for the server part you have to
compile binaries compatible to your server environment, you'd better
write compilation script in ant so you can choose different targets
for compilation
if your servlet generates an image, why do you want to get it saved on
the disk? I'd also do it the way Daniel suggested, so just keep your
image generating servlet as standalone, better yet allow extensions so
you can inquire an image not only like /imageGenerator but /
imageGenerator.jpg, then
why cant u use it? SuggestOracle allows async fetching of data, please
read java doc on this interface
com.google.gwt.user.client.ui.SuggestOracle.Suggestion
On 21 Okt., 09:09, Florian Rhomberg florian.rhomb...@nettania.at
wrote:
Hello!
I need to implement a suggest box. Therefor I found a
XMLSerializer is for serializing into XML format... if you want to
JSONize your object you can use overlay types in conjunction with
com.google.gwt.json.client.JSONObject
On 21 Okt., 09:49, Vibhuti Gupta guptavibh...@gmail.com wrote:
Hello
I need to create a json object in GWT. I was trying to
hi, there is already a similiar topic, read ideas on it
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e73ced6ba51c3def#
On 21 Okt., 11:22, Heidarzadeh heidarzad...@gmail.com wrote:
Thanks for your response.
But I think they can!
I want to deploy BOTH server and client
YES, with some workarounds due to XSS
On 21 Okt., 05:42, alexissua alesca...@gmail.com wrote:
Hello, Friends.
Im developing a web application, and i need access to the information
INSIDE a Web Site that it came as a result of a google search (this
information could be for example a text
(boolean bool) {
super(bool);
} ;
But still i got the same ClassCastException.
root is a MenuItem and root.getSubMenu() return a MenuBar
object.
On 19 Ott, 17:39, ep eplisc...@googlemail.com wrote:
where do you make new MyMenuBar() and how do you provide
can share a code snippet that might help me
for better understand.
And yes,we had thought of code splitting but we couldn't implemented it.
thanks.
--
Aditya
On Mon, Oct 18, 2010 at 5:28 PM, ep eplisc...@googlemail.com wrote:
ah ok got your point, well, if you write
look for BrowserInfo.java in google, the top second entry
(BrowserInfo.java - google-web-toolkit.googlecode.com) or find the
class in repository: com.google.gwt.dev.util.BrowserInfo, that is
under apache 2.0 license, I guess you can modify it to get it working
for detection
On 19 Okt., 22:08,
you can also implement a special servlet which derives from
RemoteServiceSevlet and delays execution, it would be pretty easy for
high latency simulation but a bit tricky for lowering bandwith
On 20 Okt., 00:11, Fernando Barbat fbar...@gmail.com wrote:
Are there any tools which allow us to test
the com.google.gwt.dom.client.Document class provides low level DOM
access, it returns an Element which corresponds to a DOM element, if
its not low-level enough you can also write native methods and access
DOM directly
On 19 Okt., 17:21, Dan ddum...@gmail.com wrote:
Does GWT have a supported
where do you make new MyMenuBar() and how do you provide it to the
root member? and what type is root actually?
On 19 Okt., 17:14, alexoffspring alessales...@gmail.com wrote:
I created a public class MyMenuBar just to use the getItems()
method, which is protected in MenuBar:
public
hi, a small question, do you open contents from same host (as parent
window) within your innerframe?
On 18 Okt., 09:26, Aditya 007aditya.b...@gmail.com wrote:
Hello Guys,
I am designing a web application using GWT which has one
inner frame which loads different modules whenever
of message passing between these two
modules but i m finding it little difficult to do it as both are
from different modules and so the objects in one module is not accessible to
the other.
--
Aditya
On Mon, Oct 18, 2010 at 2:03 PM, ep eplisc...@googlemail.com wrote:
hi, a small question, do
an alert but it doesn't work.
is this what u r suggesting ?
--
Aditya
On Mon, Oct 18, 2010 at 3:26 PM, ep eplisc...@googlemail.com wrote:
actually, you could be using HandlerManager as an event bus between
all your modules, but I guess you trying to treat each of your modules
as separate gwt
hi
its possible to tell the generator to create a destination catalog
file via @Generate, WHY its not possible to hint the generator to load
catalog file from custom location? I have a use-case where the catalog
file reside under different path is it not possible without patching
the
SOLVED
there is a patch on task 3540
On Oct 14, 11:36 am, ep eplisc...@googlemail.com wrote:
hi
its possible to tell the generator to create a destination catalog
file via @Generate, WHY its not possible to hint the generator to load
catalog file from custom location? I have a use-case
66 matches
Mail list logo