like this?
public void edit() {
ProjectRequest request = commonRf.projectRequest();
ProjectProxy project = request.create(ProjectProxy.class);
request.save(project).to(new ReceiverVoid() {
...
});
ProjectEditor pe = view.getProjectEditor();
So.. do I have to update my gwt sdk version?
On 1 Set, 17:39, Thomas Broyer t.bro...@gmail.com wrote:
That's probably the reason behind this recent
change:http://code.google.com/p/google-web-toolkit/source/detail?r=10487
--
You received this message because you are subscribed to the Google
I wrote a small tutorial about writing plain JRE unit tests for
RequestFactory classes. The basic idea is to use the request factory
infrastructure for entity conversion, etc. and replace the transport layer
with a In memory transport. The backend service layer is mocked using
Mockito.
Beginner's luck.
leslie wrote:
A beautiful thing happens. The extra scroll bars go away and the
ListBox contains it's own vertical scroll bar which functions in the
expected and desired way.
Great stuff. Michael I thank you very much. This is a big help to
me.
--
You received this
Thanks for reply
In your provided code , you are calling TargetServlet from client.
I want to call targetServlet from BasicServiceImpl(GWT Servlet).
On Sep 1, 6:41 am, Abduxkur Ablimit sugar...@yahoo.com wrote:
you can call a servlet from client side like this (may be you want put these
This is great for testing the server-side code, but kind-of turns into an
integration test when what you want to exercise is client-side code (e.g. an
MVP presenter).
The complexity of having so much types (RequestFactory, RequestContext,
Request, and of course proxies) to mock (not to mention
Who can help me?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/u8CIejWxxV0J.
To post to this group, send email to
Hello again,
Sorry for annoying the group again, but really nobody else has
ever encountered this issue? It seems I get it every time I use GWT editors
with Hibernate lazy proxies... I can't just convert every lazy property to
eager, so I wonder how you people are doing.
Thank you!
On Tue, Aug
Set the size of north,center attribute of SplitLayoutPanel at Unit
PX in uibinder.xml file as follows.
g:SplitLayoutPanel ui:field=splitLayoutPanel
g:north size=600 unit=px
g:TabLayoutPanel ui:field=tabLayoutPanel
styleName={style.tabPanel} barUnit='PX' barHeight='3'
/g:TabLayoutPanel
/g:north
Hi, I had your same idea and I tried to write a function (looking at
the api v3 documentation) to integrate a StreetView custom panorama:
/**
* @param e: element to use for the Street View panorama
* @param path: image path
* @param heading: horizontal angle
Hi, I tried to write a function (looking at
the api v3 documentation) to integrate a StreetView custom panorama
with GWT:
/**
* @param e: element to use for the Street View panorama
* @param path: image path
* @param heading: horizontal angle
* @param
I want to be able to have the same object do client-specific behaviour
when on the client-side (UI etc.), and do some server-specific
behaviour when on the server-side (database etc.). So I want the same
object to hold both a Widget (unused/null on the server side) and a
server-specific Java
Hello,
I have an issue regarding the white outer box/border that appears
around menus popups from my menu bar. The issue can be visualised
here: http://imgur.com/mKpNe
I have experimented with the CSS for hours now and cannot get a
satisfactory soultion. Surely there is a way to simply disable
On Friday, September 2, 2011 12:18:36 PM UTC+2, Navigateur wrote:
I want to be able to have the same object do client-specific behaviour
when on the client-side (UI etc.), and do some server-specific
behaviour when on the server-side (database etc.). So I want the same
object to hold
Setting the height of the SplitLayoutPanel to 100% works, but he
problem of it not resizing when the browser is resized by dragging the
bottom border of the window. Corner and left/right dragging trigger a
layout just fine.
On 31 August 2011 21:31, James Horsley james.hors...@gmail.com wrote:
No,
because this will result in a mix of click and selection handling.
These are different functionalities for different usecases.
On 1 Sep., 14:46, Thomas Broyer t.bro...@gmail.com wrote:
Can't you simply respond to SelectionChangeEvent-s instead?
--
You received this message because you are
On Sep 2, 3:18 pm, Navigateur naveen.c...@gmail.com wrote:
I want to be able to have the same object do client-specific behaviour
when on the client-side (UI etc.), and do some server-specific
behaviour when on the server-side (database etc.). So I want the same
object to hold both a Widget
OK, then I'd say either use ClickableTextCell everywhere (or wrap each Cell
into something similar to a ClickableTextCell, for those cells that are not
text based), or try using a CellPreviewEvent.Handler (or
rather, DefaultSelectionEventManager and EventTranslator).
You could also probably
There is a compelling business case as well. The in-thing is private,
hybrid and public cloud ( whatever they mean ). With one application
in hand, you get a larger addressable audience.
J.Ganesan
www.DataStoreGwt.com
--
You received this message because you are subscribed to the Google Groups
Hi,
I have a scenario where I have 1 big GWT project (in eclipse). I
manage to split it into 3 projects (Client, Server, RPC) and on my
client project I have my ANT scripts that compile everything and
package it all into 1 war file. This works.
What I need is to have the Client, Server and RPC
HI,
I am using a RequestBuilder object from Gwt to send a innerHtml string
from a panel to generate a PDF report in the servlet
SomeWhat like this:
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,URL);
rb.sendRequestData (Some String);
So the servlet is some class which extends
Thanks Shawn and Stefan! This post helped a lot in designing this linker.
A linker based on the discussion above could be found here:
GWT HTML5 Offline Manifest Generation Linker
http://pastebin.com/JHi7NEuA
Thanks,
--
You received this message because you are subscribed to the Google Groups
You must also add this file in the same package as the above class for this
to work:
appcache.manifest.template
http://pastebin.com/ipWSVDS9
Thanks,
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Caching of services (which are mocks in such a scenario) is a problem
indeed. One easy solution on GWT side would be to have this cache
servlet-specific (i.e. ServiceLayer specific) and not as static field. I
worked around this by calling Mockito#reset() whenever the service
is acquired from
In the meantime you could create a map with the Column and with the database
name.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Even if I use new instances for the requestfactory interface, transport,
service layer and etc for each test, it would still share the services
between one test and another?
On Fri, Sep 2, 2011 at 11:02 AM, StefanR stefan.ro...@googlemail.comwrote:
Caching of services (which are mocks in such a
On Friday, September 2, 2011 4:11:19 PM UTC+2, Magno Machado wrote:
Even if I use new instances for the requestfactory interface, transport,
service layer and etc for each test, it would still share the services
between one test and another?
Yes, because the cache is done in 'static'
FireFox always reload XX.cache.html file. Chrome and IE work fine
*Request Headers*
Hostlocalhost:8181User-AgentMozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
rv:1.9.2.21) Gecko/20110830 Firefox/3.6.21Accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language
if you realy need to call http servlet, i think it will help you:
http://hc.apache.org/
Basic HTTP POST
examplehttp://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpPost.java
but if GWT SERVLET and SERVLET are located on one server, it is better to
Thanks for the reply, I tried that but when I do it this method sets
the height of the north panel to 600 and the rest of the window size
goes to the center panel. What I want is when the window is loaded,
40px goes to the center panel no matter what, then everything else
goes to the north panel.
On Friday, September 2, 2011 4:19:28 PM UTC+2, Thomas Broyer wrote:
serviceLayerCacheClass =
Class.forName(com.google.gwt.requestfactory.server.ServiceLayerCache);
Oh, sorry, I'm still working with an old version of GWT (r9848 –that's
between 2.2 and 2.3– with a handful of patches);
Thanks, that's what I was looking for.
By adding the linker code in I was able to serve the HTML file the
Servlet server, and the static JS stuff from a completely different
domain. Not really so intuitive, but I understand that ultimately this
isn't a GWT issue but more like a browser issue.
On
methodCacheField.set(null, null);
Why it has to be done twice? (before and after creating the service layer)
On Fri, Sep 2, 2011 at 11:22 AM, Thomas Broyer t.bro...@gmail.com wrote:
On Friday, September 2, 2011 4:19:28 PM UTC+2, Thomas Broyer wrote:
serviceLayerCacheClass =
I have tried to write this subclass RequestFactoryServlet to pass an
ExceptionHandler of your own:
package com.mydomain.myproject.server.servlet;
import com.google.web.bindery.requestfactory.server.RequestFactoryServlet;
@SuppressWarnings(serial)
public class RequestFactoryServletMihu extends
Well, the issue here is that Firefox doesn't even send a conditional
request. How did you capture this request?
How, and 2Mb is really big! How about using code splitting?
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html
BTW, it might also be wise to disable Etags:
see
It doesn't has to, but that way you're really, really sure that the cache
is local to the CachingServiceLayer instance (in case you forget to clear
the field in another test running in parallel, it might thus reuse the same
cache, so it might populate it with its own services before your test
Downloaded the project to google code.
https://code.google.com/p/ratesexchange/source/checkout
On 31 авг, 17:44, Thomas Broyer t.bro...@gmail.com wrote:
Can you show you code ? (RatesRequest, RateProxy, and associated server-side
classes –method declarations only–)
It can be as simple as a
On 9/1/2011 5:55 AM, jsg wrote:
Yes, the critical call which makes it work in your last example is the
dataProvider.setList() .
This seems to me to be unintuitive because the whole notion of a
provider and view is that when your model changes, the provider is
informed and updates the views
Thank you for your answers.
My solution now is, that i have copied the functionality from the
HTMLTable. There is a method: getCellFromEvent. This is exactly what
i'm looking for.
Kind regards.
On 2 Sep., 14:17, Thomas Broyer t.bro...@gmail.com wrote:
OK, then I'd say either use
I'd highly encourage you to use the pattern from the MVP - part 2
article
from the GWT doc, where the presenter itself implements an interface
that
the view calls back, rather than exposing the view through
HasXxxHandlers
and the like.
== Can you elaborate more on this? My only question here is
So you want to send some data to the servlet and want to display a PDF
(which is generated by the servlet based on the data sent) in the browser?
There are two ways of how to do it:
1.) Using RequestBuilder you could generate a AJAX call to your Servlet (as
you did it). However in the
Hi,
i use actually the MenuBar. In FF and IE everthing is fine. But no
i've tested it in Chrome and my style doesnt work.
In Chrome there is a transparent border with 1px around my submenu. So
my submenu is nor exactly next to my menubar.
here are my styles:
/* Menu bar */
.myMenuBar
{
i'm sorry, but is way too much, i'm trying to use SplitLayoutPanel,and
i've added a few buttons, after pressing save, the designer completely
hangs, i have no idea what's going on. i have 6 gb ram, i7 core, java 6 (64
bit, could this be it?)
--
You received this message because you are
As RF complains: you declare a findRate() InstanceRequestRateProxy,Void on
the RateRequest with no corresponding findRate() method on Rate. RF find the
static findRate(Long) method (same name) which is required in the absence of
a Locator, which it lists as possible match (same name) in the
Thanks! I didn't realize that you could issue a save before the proxy was
even edited. I guess the RequestContext is more like a queuing system than a
procedural list of instructions.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
I'm sorry I don't understand; the code from the article (and the Activities
and Places page from the documentation) speaks for itself.
interface Presenter: defines methods called by the view (generally in
response to user events)
interface View: defines methods called by the presenter to update
Yeah, for sure!
2011/9/1 Magno Machado magn...@gmail.com
I'm likely to go, but not sure yet
On Thu, Sep 1, 2011 at 9:45 PM, Alisson Prestes javalis...@gmail.comwrote:
Hi,
Is anybody from this list coming to Google Developer Day Brazil this
year?
Alisson Prestes
Good afternoon staff,
I am developing a system and adopted the gwt + smart for the
presentation layer and the back end I work with ejb3. The project is
all in maven and modularized.
My problem is that GWT can not make conversation with my ejb3, I use
the specification requestfactory, Could
Hi Thomas,
AHHA !! Thank you very much!! Finally I understood it!! I owe you
one.
I think I was getting confused with the term activity. You helped me
clear the doubt that my presenter can act itself as a presenter or
presenter + activity together.
Now I understood what you meant by mock
Thank you! I was really blind. I have removed the declaration from
the request. But still getting exceptions on firing requests and not
able to find the source of my problem.
Stack is:
19:51:52.743 [ERROR] [ratesexchange] Uncaught exception escaped
com.google.gwt.event.shared.UmbrellaException:
I get this exception when i deploy on my websphere server. It works
fine in tomcat. How is the encoding becoming null here?
Exception while dispatching incoming RPC call:
javax.servlet.ServletException: Character Encoding is '(null)'.
Expected 'UTF-8'
at
Awesome. Thanks.
On Aug 31, 6:34 am, Michael Vogt vmei...@googlemail.com wrote:
Hello.
Can you pass the path to download the plugin?
I got it from
here:http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/preb...
Greetings,
Michael
--
You received this message because you
Does anyone know when there will be a local update archive available
for installing the Google Plugin for Eclipse 3.7?
Currently the only option for Eclipse 3.7 appears to be via the
internet.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
It's been available for about two months now (since Eclipse 3.7 shipped)...
http://dl.google.com/eclipse/plugin/3.7/zips/gpe-e37-latest-updatesite.zip
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
I came with an thin abstraction layer over request factory. My presenter
declare an inner interface called DataService which exposes methods from RF
that are needed for that presenter. For exemple:
public class PesquisaPresenter {
public interface DataService {
void findById(long id,
http://dl.google.com/eclipse/plugin/3.7/zips/gpe-e37-latest-updatesite.zip
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/KxsuCzglZSMJ.
To post
I am trying to disable all the date in the DatePicker GWT component,
here is my sample of code :
datePicker.addShowRangeHandler(new ShowRangeHandler() {
public void onShowRange(ShowRangeEventDate event) {
System.out.println(First date : + event.getStart());
System.out.println(Last date : +
I'm using GWT 2.4.0-rc1 and have hit a possible JS bug (not 100% sure
as I don't have a simple reproducer) and thought it's worth
sharing.
I wrote some Antlr based validation of user input in GWT client and
everything worked fine in debug mode but the compiled JS code never
called the logic
Small typo correction. my fix was
someLogicThatDependyOnErrValue(abc,def,FALSE) and not
someLogicThatDependyOnErrValue(abc,def,TRUE)
On Sep 2, 11:52 am, vishalvish...@gmail.com
vishalvish...@gmail.com wrote:
I'm using GWT 2.4.0-rc1 and have hit a possible JS bug (not 100% sure
as I don't have
On Friday, September 2, 2011 7:59:31 PM UTC+2, Nik wrote:
Caused by: java.lang.RuntimeException: Server Error: null
Your server-side code is causing a NullPointerException. Set a breakpoint
into DefaultExceptionHandler to get the whole stack-trace.
--
You received this message because
Looks a bit
like http://code.google.com/p/google-web-toolkit/issues/detail?id=6375
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/czR-SV1hQOMJ.
Hi,
I am using mongodb via morphia, and the @Id of a collection/table in
the mapping class is a custom ObjectId class, not a primitive type. Is
is possible to use it in RequestFactory?
I tried using GWT 2.4 rc1, and I am getting the following error code
in
Caused by:
Thanks tom. It looks like the same issue. I've starred the issue. Hope
it's fixed soon.
--Vishal
On Sep 2, 12:11 pm, Thomas Broyer t.bro...@gmail.com wrote:
Looks a bit
likehttp://code.google.com/p/google-web-toolkit/issues/detail?id=6375
--
You received this message because you are
No idea based on your description. GWT Designer doesn't perform any actions
on save, but lots of Eclipse and/or GPE stuff kicks in at that point (like
various validations).
You say you have 6GB of RAM, but how much do you have assigned to running
Eclipse (and GWT)? What does your Eclipse Heap
I'm pretty new to RF but by reading through various posts regarding
the testing of RF i came up with the following solution that seems to
work well so far with spring
First an abstract test case that your unit test would extends
@TransactionConfiguration(defaultRollback = false)
For anybody else struggling to get the super-source keyword working
in gwt and eclipse, I suggest following the steps here:
http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html
(there's a small section relevant to super-source on that page, with
which I was finally able to
As with any related object, you have to explictly ask for it in the
.with() of your Request;
i.e. request.findEmployee(objectIdProxy).with(id).fire(...)
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web
To be clear: the id property (getId/setId on your proxy) has no special
treatment, it's just a property. The ID of the object (server-side) is only
used internally (within the stableId() of proxies).
--
You received this message because you are subscribed to the Google Groups
Google Web
Thanks for the responses. To clarify, I want to use GWT to build an
interface for an existing Java backend that is using Spring.
Integration using the STS isn't needed but I'll probably do it
anyways. Is there a way to do this without using hackish methods?
On Aug 18, 6:31 am, Giuseppe La Scaleia
Followed some instructions on getting dev mode to work on Glassfish
(http://groups.google.com/group/google-web-toolkit/browse_thread/
thread/43f62776e0b6f1eb). After running the app in dev mode under
Chrome a blank page appears, why does this occur?
I noticed in the project's WebContent directory
Don't see anything in Eclipse to indicate that there is an instance of
the app running in dev mode. Normally when an app is running under dev
mode there would be an app entry under the server entry in the
Development Mode tab for Eclipse. Chrome displays a GWT icon only if
the gwt.codesvr query
You are awesome! Many thanks Thomas for the kind help. :)
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
The Missing artifact com.google.gwt:gwt-servlet:jar:
2.4.0:runtime errors go away if you update gwtVersion in pom.xml to
this line:
gwtVersion2.4.0-rc1/gwtVersion
On Jul 19, 1:07 pm, Michel Jonker michel.jon...@e-office.com wrote:
Hi,
Thanks for the reply.
Are you suggesting that I fetch the
http://gwt-code-reviews.appspot.com/1380807/diff/50002/user/test/com/google/gwt/user/RPCSuite.java
File user/test/com/google/gwt/user/RPCSuite.java (right):
http://gwt-code-reviews.appspot.com/1380807/diff/50002/user/test/com/google/gwt/user/RPCSuite.java#newcode110
Revision: 10614
Author: gwt.mirror...@gmail.com
Date: Fri Sep 2 09:17:24 2011
Log: Add support for additional header styles for CellTable.
Review at http://gwt-code-reviews.appspot.com/1538803
Review by: jlaba...@google.com
http://gwt-code-reviews.appspot.com/1380807/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
Here is my take on putting the final field switch into the policy file:
https://github.com/stephenh/scalagwt-gwt/commit/35535b2f36cb196792a411430567a7a9aeb8adb1
Now final fields only go across the wire if the user opts in, and the
server-side behaves accordingly.
http://gwt-code-reviews.appspot.com/1536803/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
Kelly, can you take another look? Now sniffing on the Safari version
rather than the Webkit version, so that 5.0.6 isn't blocked.
http://gwt-code-reviews.appspot.com/1536803/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
ping, ready for review
On Thu Sep 01 15:08:29 GMT-700 2011, rj...@google.comgt wrote:
http://gwt-code-reviews.appspot.com/1537803/http://www.google.com/url?sa=Dq=http://gwt-code-reviews.appspot.com/1537803/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
I'd prefer this problem to be addressed in separate CL independent
from of our effort.
Here is a commit with just the name mangling. If there are any
volunteers from the GWT team to review it, I'll promote it to
an issue.
http://gwt-code-reviews.appspot.com/1520807/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
On 2011/09/02 20:37:51, rjrjr wrote:
Ah, what the hell. No failing tests so far when I make it toxic.
http://gwt-code-reviews.appspot.com/1520807/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
http://gwt-code-reviews.appspot.com/1520807/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
Thanks for the test.
Rafa, I've lost track of what to worry about wrt the ordering. Should we
be tossing a LazyPanel or something like that into his test to shake
things out?
http://gwt-code-reviews.appspot.com/1524803/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
http://gwt-code-reviews.appspot.com/1380807/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
On 2011/09/03 01:04:50, zhuyi wrote:
Integrated Stephen's change on SerializationPolicy. Individual test
cases works fine, but test cases were broken when they were put together
(e.g. run RPCSuite.java). That is caused by the caches in
SerializabilityUtil.java. I've temporary disabled two caches
caused by the caches in SerializabilityUtil.java
Huh, good catch.
Any good suggestion on the cache structure improvement?
Using a Pair seems to work:
https://github.com/stephenh/scalagwt-gwt/commit/9dd82d23d6bdf904e92af5502a3eba450c615c63
http://gwt-code-reviews.appspot.com/1380807/
--
88 matches
Mail list logo