Maybe,
@Inject
class MainWidget(SubWidget subwidget)
.
.
@Inject
class SubWidget(SubWidgetPresenter presenter)
You can then inject eventBus into presenter and communicate with the
MainWidget/Rest of the app.
On Wed, Jun 15, 2011 at 12:58 PM, ricu marko.c...@gmail.com wrote:
Anybody? Maybe
So, still trying to fully understand the RequestFactory, I made myself
a small app to test having my persistence code in the entity itself.
(I have been previously working off the TurboManage
objectify+requestfactory sample, thanks David, its been very useful!)
I have an Entity called Parent,
the AutoBeanFrozen error with persistAndReturn in GWT 2.3.0 and
am looking into it. GWT 2.2.0 did not exhibit this behavior.
And yes, Request.fire() just calls RequestContext.fire(), so the effect is
identical.
/dmc
On Wed, Jun 29, 2011 at 1:55 PM, Aidan O'Kelly aida...@gmail.com wrote:
So, still
I'm using RequestFactory for a 'non-data-orientated' app and its works
very nicely.
Chained method invocation:
MyServiceRC serviceRequest = appRequestFactory.MyServiceRC();
serviceRequest.giveMeAString().to(stringReceiver);
if (needPojo == true)
serviceRequest.giveMeAPojo().to(pojoReceiver);
How can I increase the RPC timeout to infinite, so that it never
timesout.
FYI, 'Read Timeout' is being caused by the OS's TCP stack, so you
cannot/should not hope to increase this time-out from GWT client code,
you must use one of the methods suggested. (keep-alive's or polling
the server to
There is a google IO session which covers speeding up the compile
process during development, it is in the second half of a talk on the
compiler in general.
http://www.youtube.com/watch?v=qT6ZsQBM7kY
Also, if you are working on client side code, a lot of the time you
don't need to go through the
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NodeList;
.
.
.
NodeListElement elementList = Document.get().getElementsByTagName(input);
This will give you a list of all HTML 'input' elements on the page,
you can loop through
You need to use IntegerBox if you are editing an Integer field, I believe.
e:valuebox
g:IntegerBox /
/e:valuebox
On Tue, Jul 19, 2011 at 1:22 PM, Nachiket patel.nachike...@gmail.com wrote:
No response on this??
i am also facing similar problem
On May 26, 6:42 pm,
Is the ListEditor adapter suitable for editing a list that has a fixed size?
It's currently adding size + 1 widgets, to allow for additions to the
list, is there a way to disable this? Or perhaps a better technique
for editing a fixed size list in the Editor Framework?
--
You received this
Aha, ok, thanks for the clarification.
On Tue, Jul 19, 2011 at 5:06 PM, Thomas Broyer t.bro...@gmail.com wrote:
On Tuesday, July 19, 2011 5:23:22 PM UTC+2, Aidan OK wrote:
Is the ListEditor adapter suitable for editing a list that has a fixed
size?
Yes
It's currently adding size + 1
This doesn't seem possible as getHistoryToken() is a method of
RequestFactory, and no corresponding method in RequestFactoryServlet.
Can I do this somehow, (without patching RF source ! ) If not, worth
opening an issue/feature request?
I have some workarounds for my case, but it would be nicer
Ok, I've been trying to do a very simple form to edit a (user sized)
list of strings, using ListEditor.
ListEditor is declared like this:
ListEditorString, StringEditor notifyEmails = ListEditor.of(new
StringEditorSource);
StringEditor is actually just a TextBox.
public class
Ah, cheers Thomas, you're a godsend.
On Fri, Jul 29, 2011 at 12:54 AM, Thomas Broyer t.bro...@gmail.com wrote:
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6081
Will be fixed in 2.4, fix is not in RC1.
--
You received this message because you are subscribed to the Google
There is this,
http://claudiushauptmann.com/a-framework-for-gwt-multipage-applications.html
Which might be of interest to you.
On Fri, Jul 29, 2011 at 3:00 PM, dreamer venugopal.vasire...@gmail.com wrote:
Hi,
I want to start a new opensource project - GWT page flows - similar
to struts.
Well, if you've reached a point where you want to do stuff, that there
are no step-by-step tutorials for, you need to stop looking for
tutorials, and starting looking at reference material, ie, API
documentation, or documents/tutorials/papers on a specific technology.
You've touched upon it in
GwtFb does exactly this, provides a wrapper around the Facebook JS
SDK. Its a good place to start, and for me, it was a useful
little tutorial on using JSNI, as the source code under the sdk
package is very straightforward and easy to understand. (Just look at
FbCore.java )
On Tue, Aug 2, 2011 at
You can actually just change your UiBinder java class to inherit from
DialogBox, and call setWidget(uiBinder.createAndBind(this)) instead of
the regular, initWidget() method of Composite.
Your UiBinder template then just looks like this:
ui:UiBinder ...
g:HTMLPanel
Anyone have any tips on using polymorphic types within the editor framework?
I have some paths of my object graph that hold polymorphic types, and
their getters return the super type. How can I create the correct
editor for these paths?
Creating a ValueAwareEditorT where T is the super-type, and I
Actually I just found:
http://stackoverflow.com/questions/7043760/using-gwt-editors-with-a-complex-usecase
where bobv explains some ways to do it, so can ignore this question.
On Mon, Aug 22, 2011 at 6:35 PM, Aidan O'Kelly aida...@gmail.com wrote:
Anyone have any tips on using polymorphic types
Think you need to add 'with(payload) to your RF request in the
client side code..
RequestItemProxy req = this.itemRequestContext.saveAndReturn(item);
to
RequestItemProxy req =
this.itemRequestContext.saveAndReturn(item).with(payload);
On Sun, Sep 11, 2011 at 4:34 PM, Julian
CellTable does paging, check the showcase which has nice clean examples:
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable
On Tue, Sep 13, 2011 at 10:15 PM, Khvu Nguyen khvngu...@gmail.com wrote:
Is the incubator paging table available in GWT latest release 2.4?
Khv
--
You
On Fri, Sep 23, 2011 at 8:40 PM, Magno Machado magn...@gmail.com wrote:
And when the user press save, I would call a method on the service to
persist the whole entity in a single step, that is: There will be only one
service method call
Is this the right way of working with requestfactory?
(not related to OP)
Ah, good to know, so I'm guessing RequestFactory tracks which
relationships you originally retrieved for a given proxy, and only
send these back with subsequent requests.. ?
On Fri, Sep 23, 2011 at 10:37 PM, Thomas Broyer t.bro...@gmail.com wrote:
Note that the. with() only
On Sat, Sep 24, 2011 at 12:36 AM, Magno Machado magn...@gmail.com wrote:
But only foo got persisted, not it's bars
RequestFactory itself doesn't persist anything, it just synchronizes
the object graph between client server. How exactly you would
persist a Foo, a list of Bars, and the
Yeah, realized the diff mechanism takes care of what problems I was
thinking of shortly after posting, doh.
It does mean, you can set a relationship you never retrieved with
with(), but you can not un-set (null) a relationship unless you
retrieved it, of course, who cares..! (and I didn't check
On Fri, Sep 23, 2011 at 3:13 PM, magnum p.magnow...@gmail.com wrote:
view implementations ... but honestly I'd rather have a smart view /
presenter class that wires everything together. The processing is
delegated to event bus or other handler that processes the business
logic.
There's
Each section of a DockLayoutPanel may only contain one Widget, you
have two in your center, you'll need to put panel1 and panel2, inside
a container panel, and have that as the widget in center.
On Sat, Sep 24, 2011 at 12:37 PM, Brito britoscho...@gmail.com wrote:
I am having the problem when I
On Sat, Sep 24, 2011 at 4:53 PM, Thomas Broyer t.bro...@gmail.com wrote:
And BTW, MVP is a design pattern, and there's no one single way of
implementing it (the MVP articles in the GWT doc makes it kind of clear).
And the fact that Activities and Places (which people sometimes erroneously
You don't need to decide whether you call persist(), or remove(),
until the user decides to save or delete the entity, so you can use a
RequestContext to start editing, and later, depending on what the user
decides to do, call either persist() or remove() in that same
RequestContext.
Slightly
AFAIK, AsyncDataProvider is designed for requesting a small page of
data to be displayed from a potentially large dataset via RPC. In this
scenario you would usually want to pass the sort order(along with the
range) to the RPC service, so it can sort on the whole dataset, rather
than just the
On Sun, Oct 2, 2011 at 3:06 PM, benneq benjamin_ma...@lavabit.com wrote:
A working solution would be:
have a single presenter and a single view. And the presenter tells the
display using a boolean which UI to display. But I expect it to
produce very ugly code. Everywhere:
# if(loggedIn ==
You can't add suggestion objects directly, but you can override
the createSuggestion(String replacementString, String displayString) method.
It will be called with the original string, passed into add(), and a
displayString, which will have the search query terms highlighted with
strong tags. You
Starting with GWT 2.4, you need to follow the instructions here:
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
On Fri, Oct 7, 2011 at 2:41 AM, Brandon Donnelson
branflake2...@gmail.comwrote:
I see this in Expenses Example (in gwt sdk) do I have to run this
Well, its creating a table with a table for each row.. to end up with a
table structure...
If its a statically sized table, you can just write the table structure
yourself in UiBinder, and place Widgets/Text in each td.
On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene jchim...@gmail.com wrote:
control be a little
heavy handed in that it seems to be designed to handle widgets in its
cells.
A property table - or something like that - seems ideal (if it
existed).
On Oct 8, 8:30 am, Jeffrey Chimene jchim...@gmail.com wrote:
On 10/8/2011 7:29 AM, Aidan O'Kelly wrote:
Well, its
When rendering a Cell for a CellTree (for the Leaf Nodes), if I use a
SafeHtml Template, I get
com.google.gwt.core.client.JavaScriptException: (TypeError): elem is null
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at
Ok this was actually a problem with the template, generating incorrect HTML.
Simplifying the template to a simple div with some text gets everything
work ok.
On Sun, Oct 9, 2011 at 11:54 PM, Aidan O'Kelly aida...@gmail.com wrote:
When rendering a Cell for a CellTree (for the Leaf Nodes), if I
It's a bit like they ignore the standards they created with
Activities. 'Cause in theory it's possible to show as many activities
as you like in parallel... ;)
They are more like informal contracts rather than 'standards'. :) and in any
case, the activity will be stopped by the Activity
Is anyone using AutoBean in a JRE environment successfully? When trying a
very simple test I get a NPE when I try to use
AutoBeanCodex.encode(myAutoBean)
My Bean interfaces look like this:
public static interface Point {
Long getX();
Long getY();
void setX(Long x);
void setY(Long y);
}
public
Your question is not exactly clear, but I'm pretty sure you shouldn't need
to add click handlers to a Hyperlink object, or create entries in the
History object yourself. Just construct it with the Token you want to go
to:
Hyperlink h = new Hyperlink(Navigate to Chemical, thePlaceToken);
And you
parsing of token and findout the place based by token, since
entire parsing of the token will be done in Base Place class.
Please let me know with an example .
On Tue, Oct 18, 2011 at 12:24 AM, Aidan O'Kelly aida...@gmail.com wrote:
Your question is not exactly clear, but I'm pretty sure you
If you are using the Editor framework to edit (or display) the object,
RequestFactoryEditorDriver can build a list of paths based on the tree of
editors.
If your object graph is that complex, the Editor framework is probably worth
looking into!
One thing to note about with(), is it silently
On Tue, Oct 25, 2011 at 5:20 PM, opn open...@gmx.net wrote:
Hello,
To make it clear: I have to instantiate the UserEditor myself (via new
UserEditor( ) or injection) while UiBinder is able to create the child
editor of the UserEditor itself.
Why is that?
If you can create your UserEditor,
You have .gwt-Button in the .css file, but not in the style interface,
hence the compile error. It should be a clearer error (if you stop/start
dev mode it will probably give you the correct error, and it certainly will
if you GWT-compile the project)
In any case, to fix, you need to declare
A simplified version of a UiBinder view..:
g:LayoutPanel
g:layer
g:ScrollPanel
my:ResizeCompositeWidget/
/g:ScrollPanel
/g:layer
/g:LayoutPanel
Should this work? Once I add the ScrollPanel, the
ResizeCompositeWidget doesn't show anymore. Adding height/width=100%
to the
Doh, need more coffee.. I see why this can't work now.. The child
Widget of ScrollPanel needs an explicit size. Which kinda begs the
question, why does ScrollPanel implement ProvidesResize?!
On Thu, Nov 24, 2011 at 2:17 AM, Aidan O'Kelly aida...@gmail.com wrote:
A simplified version
On Wed, Dec 7, 2011 at 4:41 PM, Matt S schef...@gmail.com wrote:
You stated you could see why it won't work, but did you figure out a
suitable
solution? I have a similar deal - how can we allow a whole-screen scroll
with
ScrollPanel when you have a ResizeCompositeWidget inside?
In my case,
On Wed, Dec 7, 2011 at 4:41 PM, Matt S schef...@gmail.com wrote:
ScrollPanel when you have a ResizeCompositeWidget inside?
Also, just to add, if you want the whole page to grow vertically, your
content widget should not be ResizeComposites, as they require an explicit
size, whereas a regular
On Tue, Dec 13, 2011 at 10:42 AM, Amy huntm...@gmail.com wrote:
Service method 'public abstract java.lang.String
com.ericsson.authentication.client.AuthenticationService.authenticate(java.lang.
String,java.lang.String)' threw an unexpected exception:
java.lang.NoClassDefFoundError:
On Wed, Dec 21, 2011 at 6:07 PM, MagusDrk magus@googlemail.com wrote:
never reaches the server side. All error detail is a Server Error:
null (absolutelly nothing else)
RequestFactoryServlet by default catches all exceptions and returns them to
the client, without stack-traces or much
Give this a try:
Start in debug mode,
1 - Get the app ready to fire() your request,
*then*
2 - In eclipse, add Java Exception Breakpoint on
java.lang.NullPointerException - make sure 'caught exceptions' is ticked.
3 - Make your app fire() the request.
You should drop into debug mode when the NPE
Well, one thing to be aware of is, that RequestContext.edit(), returns a
new, mutable version of the proxy, rather than unlocking the one you pass
in, so instead of :
ctx.edit(gdp);
gdp.setName(xxx);
It should be,
gdp2 = ctx.edit(gdp);
gdp2.setName(xxx);
That still doesn't explain why you are
From the code you posted, it should work fine (even the original code). Is
it all executed in one function? It sounds like there's some paths of
execution which differ from it, and somehow end up calling setName() on a
frozen proxy.
--
You received this message because you are subscribed to the
time. If I click that button 5 times, I'll
end up with 5 entities in my data store.
On Dec 28, 10:09 am, Aidan O'Kelly aida...@gmail.com wrote:
From the code you posted, it should work fine (even the original code).
Is
it all executed in one function? It sounds like there's some paths
There's an issue with DefaultProxyStore that it doesn't always return
sequential Ids from its nextId() method, which can result in some odd
behaviour when serializing lists of ValueProxies, (all proxies point to the
same object).
Not sure if that's the issue here, but its worth giving a try as
Nothing, as you only have one getter, getStartDate(), and java.util.Date is
transportable.
But the type itself is not transportable unless you have a corresponding
ValueProxy interface defined in your shared code. Something like this:
@ProxyFor(JobHistoryPK.class)
public interface
getStartDate();
}
i've been trying to dig around in the deobfuscator code and
the domainToClientType map doesn't even show the ValueProxy entry.
On Tue, Jan 3, 2012 at 10:43 PM, Aidan O'Kelly aida...@gmail.com wrote:
Nothing, as you only have one getter, getStartDate(), and java.util.Date
Don't give the ScrollPanel an explicit height, as it will get it from the
layer. Generally you should be setting the top/height/etc attributes on the
g:layer rather than on the Widget it contains, this is what happens when
you call setWidgetTopHeight etc. Do give the 'filters' widget an explicit
On Thu, Jan 5, 2012 at 2:20 PM, Thad thad.humphr...@gmail.com wrote:
Here's a follow-up question: When using UiBuilder, how do I implement
a panel's onResize() method? I think the answer is to assign the
panels' ui:field's in FiltersViewImpl.ui.xml and call their onResize()
in my
On Thu, Jan 5, 2012 at 3:21 PM, Rob rob.nikan...@gmail.com wrote:
Hi,
Why does this not work? Header top appears, but nothing else. The
divs inside the dock layout have zero height. HeaderPanel calls
onResize for it's 'content' element. Is that not enough to work with
LayoutPanels? If I
Actually, just noticed..
ResizeLayoutPanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/ResizeLayoutPanel.html
looks
to do exactly what you want. It holds a LayoutPanel inside a regular Panel
and detects re-sizes, to provide onResize() events to it's one
There is GChart, written in GWT:
http://code.google.com/p/clientsidegchart/
There is also a GWT wrapper for the javascript library Highcharts (
http://www.highcharts.com/)
http://highcharts-gxt.sourceforge.net/wordpress/
On Sat, Jan 7, 2012 at 2:13 PM, John Methew john.bm...@gmail.com wrote:
Yes you can do it, using
RequestFactorySourcehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/web/bindery/requestfactory/vm/RequestFactorySource.html,
and an
No idea about desginer, but to get 2 ui:style elements, make sure you
include a 'field' attribute in any ui:style elements other than the
default.
ui:style .foo { } /ui:style
ui:style field=second .bar { } /ui:style
Then reference {style.foo}, {second.bar}
On Mon, Jan 9, 2012 at 10:07 PM, Thad
You need to call a persist() method or similar on your request context, for
it to actually save. This should map to a service method on the service
side that will persist the object to whatever data store you are using.
(Similar to the find()/findXXX method you wrote to retrieve entities)
On Tue,
Ok, this was actually just me not realizing eclipse will open multiple
'development' tabs for each tab/instance of the app you have running. Doh.
On Fri, Jan 20, 2012 at 5:50 PM, Aidan OK aida...@gmail.com wrote:
Recently, as I've started using the EventBus a lot more, I'm noticing it
seems
@ProxyFor(AProxy.class)
interface AProxy extends ...
A proxy that is mapping to itself ! This won't work, the @ProxyFor
annotation needs to map to a concrete class. If there is no concrete class
(ie, you re-using this interface for many different proxies) you don't need
a @ProxyFor annotation at
/google-web-toolkit/wiki/RequestFactory_2_4#Polymorphism_support
for
all the details !
On Mon, Mar 12, 2012 at 12:17 PM, Aidan O'Kelly aida...@gmail.com wrote:
@ProxyFor(AProxy.class)
interface AProxy extends ...
A proxy that is mapping to itself ! This won't work, the @ProxyFor
annotation
Yes, you just need to give them field names:
ui:style field=secondStyle /
'field' defaults to 'style' and that's why you access your css like
{style.someCss}
On Sun, Apr 15, 2012 at 8:52 PM, Nano Elefant nanof...@gmail.com wrote:
Hello,
right now I'm using the following to make a
You'll probably need:
with(parents, parents.childs)
getChilds() is not a method on your Callback object..
2012/4/16 Daniel Mauricio Patino León ceo.lion@gmail.com
Iam stuck here! any help would be appreciated. (sorry for duplicate the
post :
If I understand you correctly, using @Path with the dot syntax should work:
@Path(model.x.y.otherModels)
OtherModelListEditor otherModels;
On Tue, Apr 17, 2012 at 5:40 PM, Jens jens.nehlme...@gmail.com wrote:
Hi,
is it somehow possible to skip classes in a class hierarchy when using the
Depending on your needs, you could consider using css3 transitions (or even
css3 animations, though they are much less supported) to get smoother
animations. (they are generally hardware accelerated)
http://css3.bradshawenterprises.com/
Its not a very 'GWT way' of course, as it doesn't support
Dynamic positions work fine with transitions, how it works is you just say
(by setting the transition property) 'I want to animate any changes to
top,left,width,height' . You don't even need to specify the positions at
that time, but from that point on, any-time you set the
left/top/right/width,
I have not used this, but:
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.html#addWindowScrollHandler(com.google.gwt.user.client.Window.ScrollHandler)
Should help you track the users scrolling.
On Tue, Apr 17, 2012 at 11:08 PM, Deepak Singh
Have you seen ListEditor?
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/editor/client/adapters/ListEditor.html
some example code:
http://c.gwt-examples.com/home/ui/listeditor
On Thu, Apr 19, 2012 at 10:02 AM, Mark Trueman
markptrue...@googlemail.comwrote:
Hi
Ta for posting the work-around.. I missed the original reply the my
original thread (subscribed too many lists!) but for reference, there is a
bug entry in the issues list for this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6904
I'll add a comment with this extra info.
On Fri,
Is there a flag somewhere to build the deobfuscator builder without
obfuscating the type names?
--
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
Thanks.
On Mon, Apr 23, 2012 at 3:57 PM, Thomas Broyer t.bro...@gmail.com wrote:
On Monday, April 23, 2012 4:41:28 PM UTC+2, Aidan OK wrote:
Is there a flag somewhere to build the deobfuscator builder without
obfuscating the type names?
Er… no.
And it's not only the
78 matches
Mail list logo