CellTree styling on Closed Node vs. Leaf Node

2012-05-31 Thread Eric Andresen
Is there any way in a CellTree to apply different styles to a Leaf node vs. a Closed non-leaf node? I see separate styles for open nodes, but no way to tell between the other two. So far the best I've come up with are: * Use a CSS sibling selector such as: .cellTreeItemImage +

Re: eclipse 4.2 juno

2012-05-15 Thread Eric Andresen
Agreed, with Juno RC1 scheduled for next week, i'm surprised we haven't seen any mention of a plugin update yet. On Monday, April 30, 2012 11:51:44 AM UTC-5, Sagi Bernstein wrote: hi, the release is in less then 2 months, is there work to support juno? it should be backwards compatible for

Re: Chrome not properly rendering HeaderPanel as of yesterday's update?

2012-03-13 Thread Eric Andresen
On Thursday, March 8, 2012 2:53:30 PM UTC-6, Eric Andresen wrote: My application has a HeaderPanel that has suddenly stopped working in Chrome (32-bit XP version 19.0.1061.1). The GWT code hasn't changed, and IE8 and FireFox both still work. The symptom is that the header and footer appear

Chrome not properly rendering HeaderPanel as of yesterday's update?

2012-03-08 Thread Eric Andresen
My application has a HeaderPanel that has suddenly stopped working in Chrome (32-bit XP version 19.0.1061.1). The GWT code hasn't changed, and IE8 and FireFox both still work. The symptom is that the header and footer appear properly, but the content has its height set to 0px so it doesn't

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-13 Thread Eric Andresen
I guess tricky is a relative term. My primary editor references SubObjectC using a LeafValueEditorSubObjectCProxy, and in this scenario my LeafValueEditor is changing to a different SubObjectC instance that wasn't included in the original object. What I see in the server trace is that in

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-13 Thread Eric Andresen
Yes, your simplification is correct. I'm doing it inside the Editor with getValue/setValue, but I think the result should be the same. I have logged the issue as http://code.google.com/p/google-web-toolkit/issues/detail?id=7189 . -- You received this message because you are subscribed to the

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-09 Thread Eric Andresen
Thanks for the information. I updated all my locators and no longer have the flushing problem. It still seems like the behavior I'm seeing in the RF Servlet is differing from what is documented at http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts#Flow where it says:

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-07 Thread Eric Andresen
Thomas, here is the trace of what is going on : The changes involved in this update are: Change PrimaryObject.alias to TEMPLATE Change PrimaryObject.field1 to 10 Change PrimaryObject.field2 to 0 Change PrimaryObject.subObjectC from SubObjectC(ID 2) to SubObjectC(ID 1) Browser request:

Re: Creating new objects inside a CompositeEditor causing failure in checkStreamsNotCrossed

2012-02-07 Thread Eric Andresen
HasRequestContext) { ((HasRequestContextT) editor).setRequestContext(context); } } }); } --- Eric Andresen On Tue, Feb 7, 2012 at 9:46 AM, Brandon Donnelson branflake2...@gmail.comwrote

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-07 Thread Eric Andresen
and asked them this question a few months ago, but they recommended against changing the FlushMode. They instead suggested either maintaining a strict order of operations or working with detached objects. Thanks, Eric --- Eric Andresen On Tue, Feb 7

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-07 Thread Eric Andresen
--- Eric Andresen On Tue, Feb 7, 2012 at 12:15 PM, Jesse Hutton jesse.hut...@gmail.comwrote: Eric, By flush you mean the primary object has it's values rest to the persistent state in the db? What does your Locator#find() method look like? When using Hibernate with RequestFactory, you

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-07 Thread Eric Andresen
Jesse, I switched my locator to use the EntityManager.find() interface, and it no longer flushes the session, even when it does query the database. Thanks for the suggestion! I admit I'm a bit of a n00b with Hibernate, do you know what the difference is between letting the

Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-06 Thread Eric Andresen
I have a domain object that has references to several other domain objects, and also uses Hibernate and hibernate validation annotations. I'm running into an issue where the order of the RF Servlet's loadDomainObject and setProperty calls is causing Hibernate to flush the entity before it is

Re: App with hundreds of code splits won't finish compiling

2011-12-22 Thread Eric Andresen
Granted, it is a pretty big project, it has about 800 activities, 150 EntityProxy types, 100 Request objects, and uses all the goodness of the RequestFactory and UiBinder for all of it. (There is a ton of inheritance so most of those activities are only 50-100 lines of code. Only the

Re: App with hundreds of code splits won't finish compiling

2011-12-21 Thread Eric Andresen
Hi Aaron, Did you ever find a way to make this work? I'm running in to the same problem. I have an app that currently compiles to about 12mb of javascript, but that single large file is killing my load times on IE. I tried splitting it at my most logical spots, which causes about 100

Re: Is it possible to flush the sub-editor of a CompositeEditor ?

2011-10-03 Thread Eric Andresen
the technical problems. Thanks again everyone! --- Eric Andresen On Sat, Oct 1, 2011 at 8:41 PM, Jesse Hutton jesse.hut...@gmail.com wrote: If you have flushed the changes from the editor from your dialog form to your ChildObjProxy, you should just

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-10-03 Thread Eric Andresen
. The different versions of the Maven integration plugins were fighting with each other. I don't know if that will help your problem or not, but it might help out anyone who sees this error on a SpringSource STS + GWT + Maven project. --- Eric Andresen

Re: Is it possible to flush the sub-editor of a CompositeEditor ?

2011-09-28 Thread Eric Andresen
Thanks for the idea. I took a quick look at that interface, but I didn't want my sub-editors to have to report every single change as they happened, I wanted the updates all at once as a single object (since my CellTable takes objects). The route I'm currently looking down involves passing

Re: Is it possible to flush the sub-editor of a CompositeEditor ?

2011-09-28 Thread Eric Andresen
Hi Thomas, You are right that the ListEditor (or HasDataEditor) is the behavior I wanted to use, but my Proxies at the time were related with a Set interface based on the server-side requirements. Essentially what I did was re-write the ListEditor as a SetEditor. Recently we had to

Re: The code of constructor MyRequestFactoryDeobfuscatorBuilder() is exceeding the 65535 bytes limit

2011-09-21 Thread Eric Andresen
Well, I seem to be talking to myself here, but here's my fix in case anyone else runs into this problem in the future. It's still a hack, but it compiles a lot better than 1500 inner classes. I updated the DeobfuscatorBuilder.java in requestfactory-apt-2.4.0.jar with the following changes

Re: The code of constructor MyRequestFactoryDeobfuscatorBuilder() is exceeding the 65535 bytes limit

2011-09-21 Thread Eric Andresen
Thanks, I have logged the issue as #6818 : http://code.google.com/p/google-web-toolkit/issues/detail?id=6818 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

The code of constructor MyRequestFactoryDeobfuscatorBuilder() is exceeding the 65535 bytes limit

2011-09-20 Thread Eric Andresen
Are there any tricks or tips to reduce the size of the 2.4 RequestFactory's generated DeobfuscatorBuilder class? My compiler is choking with the following error: The code of constructor MyRequestFactoryDeobfuscatorBuilder() is exceeding the 65535 bytes limit The generated file is a single

Re: The code of constructor MyRequestFactoryDeobfuscatorBuilder() is exceeding the 65535 bytes limit

2011-09-20 Thread Eric Andresen
I should note that my RequestFactory references about 120 Request objects, each of which has between 5 and 20 methods. Would inheriting the Requests off of a common base interface that defined the common methods work in the RF? I'm not sure of the limitations of 2.4's RF inheritance. -- You

Re: The code of constructor MyRequestFactoryDeobfuscatorBuilder() is exceeding the 65535 bytes limit

2011-09-20 Thread Eric Andresen
I was able to somewhat unblock my testing using a sleazy workaround: I re-compiled requestfactory-apt with a different DeobfuscatorBuilder that generated the code as follows: abstract class Command { public abstract void execute(); } (new Command(){@Override public void execute()

The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-15 Thread Eric Andresen
I just upgraded to 2.4, and am seeing the following problem when I try to run my server: SEVERE: Unexpected error java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the XX RequestFactory type at

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-15 Thread Eric Andresen
I'm using M2E and Indigo, so it looks like I might be running into this problem. I don't see the *DeobfuscatorBuilder in my WAR anywhere. I'll take a look through Jeff's link below and see if that helps me at all. Thanks, Eric -- You received this message because you are subscribed to the

Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?

2011-09-06 Thread Eric Andresen
Kevin, My solution was to make copies of both RequestFactoryServlet and SimpleRequestProcessor in a com.google.web.bindery.requestfactory.server package in my environment, and then inside MySimpleRequestProcessor.process(), add the following change: . . . assert

Is it possible to flush the sub-editor of a CompositeEditor ?

2011-08-31 Thread Eric Andresen
I have a CompositeEditor that displays a list of sub-objects and allows me to add/delete/edit the objects in that list with sub-editors. I am seeing a problem where I edit one of my objects inside the sub-editor, and then try to refresh the list once the edit is complete. The issue I see is

Re: showRelativeTo doesn't work the first time

2011-08-03 Thread Eric Andresen
I've also seen similar problems with showRelativeTo. I've noticed that if I show a popup dialog that has dynamic sizing (i.e. the widget is a FlowPanel), the first time it pops up it shows as very wide and goes off the screen. If I close and re-open it, the second time it correctly wraps its

Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?

2011-08-01 Thread Eric Andresen
It looks like the onFailure case only unfreezes the context in the case of onTransportFailure or response.getGeneralFailure, not in the case of an invocation failure. I tested this, and the context is still locked and the beans still frozen when my onFailure callback is called. I guess I'll

Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?

2011-07-29 Thread Eric Andresen
Hmm, I tried going down the onViolation / onFailure paths, but ran in to other problems with those. For onFailure, is there a way to send a valueProxy back inside the exception payload? It looks like the default behavior is just to extract the message out of any thrown exception. I'd like to

Re: Purpose of JSR-BeanValidation in RequestFactory

2011-07-29 Thread Eric Andresen
I am having the same issue. I need to do some pre-processing of my beans on the server before I fire validation, but the framework doesn't allow that. It only fires validation on the beans as soon as they are decoded off the wire. As far as I can tell, the RequestFactory also doesn't give

Re-firing a failed/rejected server call in RequestFactory, is this possible?

2011-07-28 Thread Eric Andresen
Does anyone know of a way to perform the following scenario? 1. Retrieve an EntityProxy 2. Edit the proxy in an editor 3. Submit the changes using a Request Context 4. The server call is rejected due to a server-side validation failure 5. Make some more changes to the proxy 6.

Re: Precision problem for ValueBoxBaseLong ?

2011-06-22 Thread Eric Andresen
renderer/parser instead of the default one. --- Eric Andresen On Wed, Jun 22, 2011 at 1:35 PM, Kishan balakisha...@gmail.com wrote: I am also facing the same problem. If you got any solution, please share. Thanks in Advance On Feb 17, 12:24 pm

Re: Aw: Re: GWT 2.3 RequestFactory problem

2011-06-03 Thread Eric Andresen
Just glad to be able to give a little something back after all the help this forum has given 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

Re: Refactored 2.3 RequestFactory creates frozen proxies

2011-05-19 Thread Eric Andresen
I'm seeing a similar symptom, I'm creating a proxy and assigning its relationship to another proxy, and persisting it. On success, the server returns a copy of the proxy back. In the process of decoding the network callback back into an AutoBean, the setter of one of the relationships is

Re: Απ: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Eric Andresen
I've noticed a pretty significant jump as well. My app used to be around 65 seconds, and it's up to around 135 seconds now, sometimes spiking up to 3-4 minutes. I had just chalked it up to installing the full WindowBuilder and GAE plugins that I had skipped in the past, but maybe it is the

Re: Problem passing a SetValueProxy as a parameter in RequestFactory?

2011-05-13 Thread Eric Andresen
It looks like I'm running into the problem inside EntityCodex.decode() : In the red code below, I see it iterate over all three items in my collection, but each time the element that comes out of the decode call has the same hashCode, so the HashSet ignores it. The hashCode always seems to

Re: Problem passing a SetValueProxy as a parameter in RequestFactory?

2011-05-13 Thread Eric Andresen
the same problem, if that helps you at all. -- Brian On Thu, May 12, 2011 at 4:19 PM, Eric Andresen ericandre...@gmail.com wrote: I have an application that creates a SetMyClassProxy (a ValueProxy), and sends that set across the wire using the RequestFactory. When I add 3 distinct

Problem passing a SetValueProxy as a parameter in RequestFactory?

2011-05-12 Thread Eric Andresen
I have an application that creates a SetMyClassProxy (a ValueProxy), and sends that set across the wire using the RequestFactory. When I add 3 distinct elements into the set and fire the context, I only get one item in the set on the server side. What is interesting is that I can see my

Creating new objects inside a CompositeEditor causing failure in checkStreamsNotCrossed

2011-05-10 Thread Eric Andresen
Can anyone take a look at this and let me know if this flow seems sane? I'm seeing an error: Caused by: java.lang.AssertionError: Unfrozen bean with null RequestContext at

Re: GWT 2.3 RequestFactory problem

2011-05-09 Thread Eric Andresen
I saw this same problem in my environment. In my case I had upgraded all of the RequestFactory references in my Java classes to the new package, but forgot to switch the RequestFactoryServlet class in my web.xml file: servlet servlet-namerequestFactoryServlet/servlet-name

Re: Creating a DockLayoutPanel with non-fixed sizes ?

2011-04-15 Thread Eric Andresen
Thanks, Thomas! You guys always seem to be one step (or release) ahead of me! --- Eric Andresen On Fri, Apr 15, 2011 at 5:02 AM, Thomas Broyer t.bro...@gmail.com wrote: GWT 2.3 will come with a HeaderPanel for this exact purpose: http

Creating a DockLayoutPanel with non-fixed sizes ?

2011-04-14 Thread Eric Andresen
Does anyone know if it is possible to create a layout panel that behaves like a dock layout panel, but allows the outer panels to size to their natural sizes? What I'm trying to accomplish is a panel with a north and a center. I want the North panel to size to the natural height of its

Re: GWT and HTML5 Client-side Storage

2011-04-05 Thread Eric Andresen
I agree, this would be nice functionality to have. For the time being, you can hack it in using JSNI, but it may not work on all browsers: public static native String getFromStorage(String keyName) /*-{ return localStorage.getItem(keyName); }-*/; public static native

Re: RequestFactory calling find method for every item in a list

2011-03-10 Thread Eric Andresen
I've seen this as well. My suspicion based on some debugging and breakpoint work is that the RequestFactory is properly retrieving the related objects using the relation, but then immediately querying them all again to verify their version numbers match the ones from the DB. I worked around

Re: Precision problem for ValueBoxBaseLong ?

2011-02-17 Thread Eric Andresen
--- Eric Andresen On Wed, Feb 16, 2011 at 4:11 PM, Eric Andresen ericandre...@gmail.com wrote: I have an editor that uses a ValueBoxBaseLong to store a very large number.  The box is read-only, but it my number gets changed between setValue() and getValue(). Basically, when I set value

Precision problem for ValueBoxBaseLong ?

2011-02-16 Thread Eric Andresen
I have an editor that uses a ValueBoxBaseLong to store a very large number. The box is read-only, but it my number gets changed between setValue() and getValue(). Basically, when I set value 6920835985627925836 and then immediately get the value, it returns 6920835985627925504 . The value

Re: Are overload methods allowed in service class using RequestFactory?

2011-02-08 Thread Eric Andresen
I see the same error message when inheriting from a generic class or implementing an interface that uses generics. I don't see any documentation forbidding that either. In the example below it works just fine if I comment out the implements ObjectWithExceptionMyObject code, but throws an

Re: Issue 5752: ListEditor.setValue fails once the underlying AutoBean has been frozen

2011-02-04 Thread Eric Andresen
We are seeing this issue as well. Colin, did you try changing the AbstractEditorDelegate, and if so did you have any luck? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Must getters and setters in an EntityProxy be a matched set?

2011-01-27 Thread Eric Andresen
. Thanks again, Eric --- Eric Andresen On Thu, Jan 27, 2011 at 4:47 AM, Thomas Broyer t.bro...@gmail.com wrote: On Thursday, January 27, 2011 1:55:11 AM UTC+1, Eric Andresen wrote: I guess a better wording for my question is, are either

Re: Must getters and setters in an EntityProxy be a matched set?

2011-01-26 Thread Eric Andresen
I guess a better wording for my question is, are either of the following flows allowed? The goal is to create an object on the server side without persisting it, display its default values and edit them on the client side, and then persist it back to the server side. 1) Create Request

Re: Way to use a ServiceLocator to find a Locator in 2.1.1 RequestFactory?

2011-01-07 Thread Eric Andresen
Thanks for your insight on the matter. I was able to accomplish something close to the desired behavior by placing a bridge between GWT and my service class. Doing this in conjunction with the SpringServiceLocator, I was able to only cache this singleton class (kind of anyway, the

Way to use a ServiceLocator to find a Locator in 2.1.1 RequestFactory?

2011-01-06 Thread Eric Andresen
I'm using the 2.1.1 RequestFactory in a Spring environment. I would like to use my Spring Service class to provide both my Entity Locator and my RequestContext methods. I can define my object's requestContext as: @Service(value=MyObjectService.class,locator=SpringServiceLocator.class) public